Class VertexView.SizeHandle

  • All Implemented Interfaces:
    java.io.Serializable, CellHandle
    Enclosing class:
    VertexView

    public static class VertexView.SizeHandle
    extends java.lang.Object
    implements CellHandle, java.io.Serializable
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.awt.geom.Rectangle2D computeBounds​(java.awt.event.MouseEvent event)  
      protected void initOffscreen()  
      protected void invalidate()  
      boolean isConstrainedSizeEvent​(java.awt.event.MouseEvent e)  
      void mouseDragged​(java.awt.event.MouseEvent event)
      Process mouse dragged event.
      void mouseMoved​(java.awt.event.MouseEvent event)
      Invoked when the mouse pointer has been moved on a component (with no buttons down).
      void mousePressed​(java.awt.event.MouseEvent event)
      Process mouse pressed event.
      void mouseReleased​(java.awt.event.MouseEvent e)
      Messaged when the drag operation has terminated with a drop.
      void overlay​(java.awt.Graphics g)
      Paint the handle on the given graphics object during mouse operations.
      void paint​(java.awt.Graphics g)
      Paint the handle on the given graphics object once.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • offgraphics

        protected transient java.awt.Graphics offgraphics
        Reference to graph off screen graphics
      • firstDrag

        protected transient boolean firstDrag
      • graph

        protected transient JGraph graph
      • portViews

        protected transient CellView[] portViews
      • cachedBounds

        protected transient java.awt.geom.Rectangle2D cachedBounds
      • initialBounds

        protected transient java.awt.geom.Rectangle2D initialBounds
      • contextViews

        protected transient CellView[] contextViews
      • index

        protected transient int index
      • r

        protected transient java.awt.geom.Rectangle2D[] r
      • firstOverlayInvocation

        protected boolean firstOverlayInvocation
      • cursors

        public transient int[] cursors
        Array that holds the cursors for the different control points.
      • editing

        protected boolean editing
        True if the cell is being edited.
    • Method Detail

      • isConstrainedSizeEvent

        public boolean isConstrainedSizeEvent​(java.awt.event.MouseEvent e)
      • paint

        public void paint​(java.awt.Graphics g)
        Description copied from interface: CellHandle
        Paint the handle on the given graphics object once.
        Specified by:
        paint in interface CellHandle
        Parameters:
        g - the graphics object to paint the handle on
      • initOffscreen

        protected void initOffscreen()
      • overlay

        public void overlay​(java.awt.Graphics g)
        Description copied from interface: CellHandle
        Paint the handle on the given graphics object during mouse operations.
        Specified by:
        overlay in interface CellHandle
        Parameters:
        g - the graphics object to paint the handle on
      • mouseMoved

        public void mouseMoved​(java.awt.event.MouseEvent event)
        Invoked when the mouse pointer has been moved on a component (with no buttons down).
        Specified by:
        mouseMoved in interface CellHandle
        Parameters:
        event - the mouse event to be processed
      • mousePressed

        public void mousePressed​(java.awt.event.MouseEvent event)
        Process mouse pressed event.
        Specified by:
        mousePressed in interface CellHandle
        Parameters:
        event - the mouse event to be processed
      • mouseDragged

        public void mouseDragged​(java.awt.event.MouseEvent event)
        Process mouse dragged event.
        Specified by:
        mouseDragged in interface CellHandle
        Parameters:
        event - the drag event to be processed
      • computeBounds

        protected java.awt.geom.Rectangle2D computeBounds​(java.awt.event.MouseEvent event)
      • mouseReleased

        public void mouseReleased​(java.awt.event.MouseEvent e)
        Description copied from interface: CellHandle
        Messaged when the drag operation has terminated with a drop.
        Specified by:
        mouseReleased in interface CellHandle
        Parameters:
        e - the drop event to be processed
      • invalidate

        protected void invalidate()