Interface CellView

    • Method Detail

      • getCell

        java.lang.Object getCell()
        Returns the model object that this view represents.
      • refresh

        void refresh​(GraphLayoutCache cache,
                     CellMapper mapper,
                     boolean createDependentViews)
        Refresh this view based on the model cell. This is messaged when the model cell has changed.
      • update

        void update​(GraphLayoutCache cache)
        Update this view's attributes. This is messaged whenever refresh is messaged, and additionally when the context of the cell has changed, and during live-preview changes to the view.
        Parameters:
        cache - TODO
      • childUpdated

        void childUpdated()
      • getParentView

        CellView getParentView()
        Returns the parent of view of this view.
      • getChildViews

        CellView[] getChildViews()
        Returns the child views of this view.
      • removeFromParent

        void removeFromParent()
        Removes this view from the list of childs of the parent.
      • isLeaf

        boolean isLeaf()
        Returns true if the view is a leaf.
      • getBounds

        java.awt.geom.Rectangle2D getBounds()
        Returns the bounds for the view.
      • intersects

        boolean intersects​(JGraph g,
                           java.awt.geom.Rectangle2D rect)
        Returns true if the view intersects the given rectangle.
      • getPerimeterPoint

        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.
      • changeAttributes

        java.util.Map changeAttributes​(GraphLayoutCache cache,
                                       java.util.Map map)
        Apply the specified map of attributes on the view.
      • getAttributes

        AttributeMap getAttributes()
        Returns all attributes of the view as a map.
      • getRendererComponent

        java.awt.Component getRendererComponent​(JGraph graph,
                                                boolean selected,
                                                boolean focus,
                                                boolean preview)
        Returns a renderer component, configured for the view.
      • getEditor

        GraphCellEditor getEditor()
        Returns a cell editor for the view.