public interface CellView
Modifier and Type | Method and Description |
---|---|
java.util.Map |
changeAttributes(GraphLayoutCache cache,
java.util.Map map)
Apply the specified map of attributes on the view.
|
void |
childUpdated() |
AttributeMap |
getAllAttributes() |
AttributeMap |
getAttributes()
Returns all attributes of the view as a map.
|
java.awt.geom.Rectangle2D |
getBounds()
Returns the bounds for the view.
|
java.lang.Object |
getCell()
Returns the model object that this view represents.
|
CellView[] |
getChildViews()
Returns the child views of this view.
|
GraphCellEditor |
getEditor()
Returns a cell editor for the view.
|
CellHandle |
getHandle(GraphContext context)
Returns a cell handle for the view.
|
CellView |
getParentView()
Returns the parent of view of this view.
|
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.
|
java.awt.Component |
getRendererComponent(JGraph graph,
boolean selected,
boolean focus,
boolean preview)
Returns a renderer component, configured for the view.
|
boolean |
intersects(JGraph g,
java.awt.geom.Rectangle2D rect)
Returns true if the view intersects the given rectangle.
|
boolean |
isLeaf()
Returns true if the view is a leaf.
|
void |
refresh(GraphLayoutCache cache,
CellMapper mapper,
boolean createDependentViews)
Refresh this view based on the model cell.
|
void |
removeFromParent()
Removes this view from the list of childs of the parent.
|
void |
update(GraphLayoutCache cache)
Update this view's attributes.
|
java.lang.Object getCell()
void refresh(GraphLayoutCache cache, CellMapper mapper, boolean createDependentViews)
void update(GraphLayoutCache cache)
cache
- TODOvoid childUpdated()
CellView getParentView()
CellView[] getChildViews()
void removeFromParent()
boolean isLeaf()
java.awt.geom.Rectangle2D getBounds()
boolean intersects(JGraph g, java.awt.geom.Rectangle2D rect)
java.awt.geom.Point2D getPerimeterPoint(EdgeView edge, java.awt.geom.Point2D source, java.awt.geom.Point2D p)
java.util.Map changeAttributes(GraphLayoutCache cache, java.util.Map map)
AttributeMap getAttributes()
AttributeMap getAllAttributes()
java.awt.Component getRendererComponent(JGraph graph, boolean selected, boolean focus, boolean preview)
CellHandle getHandle(GraphContext context)
GraphCellEditor getEditor()
Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.