Class DockingVisualVertex

    • Constructor Detail

      • DockingVisualVertex

        public DockingVisualVertex​(java.lang.String name)
    • Method Detail

      • isGrabbable

        public boolean isGrabbable​(java.awt.Component c)
        Description copied from interface: VisualVertex
        Returns true if the given component of this vertex is grabbable, which means that mouse drags on that component will move the vertex.

        This is used to differentiate components within a vertex that should receive mouse events versus those components that will not be given mouse events.

        Specified by:
        isGrabbable in interface VisualVertex
        isGrabbable in class AbstractVisualVertex
        c - the component
        true if the component is grabbable
      • getComponent

        public javax.swing.JComponent getComponent()
        Description copied from interface: VisualVertex
        Returns the component of this vertex. This is used for rendering and interaction with the user.
        the component of this vertex
      • getTextArea

        public javax.swing.JTextArea getTextArea()
      • getText

        public java.lang.String getText()
      • getName

        public java.lang.String getName()
      • setMaxWidth

        public void setMaxWidth​(int width)
      • setFocused

        public void setFocused​(boolean focused)
        Description copied from interface: VisualVertex
        Sets this vertex to be focused. This differs from being selected in that multiple vertices in a graph can be selected, but only one can be the focused vertex.
        Specified by:
        setFocused in interface VisualVertex
        setFocused in class AbstractVisualVertex
        focused - true to focus; false to be marked as not focused
      • dispose

        public void dispose()
        Description copied from interface: VisualVertex
        A dispose method that should be called when a vertex is reclaimed, never again to be used in a graph or display
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        equals in class java.lang.Object