Class VertexView

    • Field Detail

      • renderer

        public static transient VertexRenderer renderer
        Renderer for the class.
      • defaultBounds

        public static final java.awt.geom.Rectangle2D defaultBounds
      • bounds

        protected java.awt.geom.Rectangle2D bounds
        Reference to the bounds attribute
      • defaultCursors

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

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

        public static transient int[] yCursors
        Array that holds the cursors for the different control points.
    • Constructor Detail

      • VertexView

        public VertexView()
        Constructs an empty vertex view.
      • VertexView

        public VertexView​(java.lang.Object cell)
        Constructs a vertex view for the specified model object and the specified child views.
        Parameters:
        cell - reference to the model object
    • Method Detail

      • getCachedBounds

        public java.awt.geom.Rectangle2D getCachedBounds()
      • setCachedBounds

        public void setCachedBounds​(java.awt.geom.Rectangle2D bounds)
      • getHandle

        public CellHandle getHandle​(GraphContext context)
        Returns a cell handle for the view, if the graph and the view are sizeable.
        Specified by:
        getHandle in interface CellView
        Specified by:
        getHandle in class AbstractCellView
        Parameters:
        context - the context of this cell view (cells indirectly affected by it)
        Returns:
        the cell handle for this view
      • getPerimeterPoint

        public java.awt.geom.Point2D getPerimeterPoint​(EdgeView edge,
                                                       java.awt.geom.Point2D source,
                                                       java.awt.geom.Point2D p)
        Returns the intersection of the bounding rectangle and the straight line between the source and the specified point p. The specified point is expected not to intersect the bounds. Note: You must override this method if you use a different renderer. This is because this method relies on the VertexRenderer interface, which can not be safely assumed for subclassers.
        Specified by:
        getPerimeterPoint in interface CellView
        Overrides:
        getPerimeterPoint in class AbstractCellView