|
JGraph |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines the requirements for an object that represents a view for a model cell.
Method Summary | |
Map |
changeAttributes(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. |
Rectangle2D |
getBounds()
Returns the bounds for the view. |
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. |
Component |
getRendererComponent(JGraph graph,
boolean selected,
boolean focus,
boolean preview)
Returns a renderer component, configured for the view. |
boolean |
intersects(JGraph g,
Rectangle2D rect)
Returns true if the view intersects the given rectangle. |
boolean |
isLeaf()
Returns true if the view is a leaf. |
void |
refresh(GraphModel model,
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()
Update this view's attributes. |
Method Detail |
public Object getCell()
public void refresh(GraphModel model, CellMapper mapper, boolean createDependentViews)
public void update()
public void childUpdated()
public CellView getParentView()
public CellView[] getChildViews()
public void removeFromParent()
public boolean isLeaf()
public Rectangle2D getBounds()
public boolean intersects(JGraph g, Rectangle2D rect)
public Map changeAttributes(Map map)
public AttributeMap getAttributes()
public AttributeMap getAllAttributes()
public Component getRendererComponent(JGraph graph, boolean selected, boolean focus, boolean preview)
public CellHandle getHandle(GraphContext context)
public GraphCellEditor getEditor()
|
JGraph |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |