org.jgraph.graph.CellView Interface Reference

Inheritance diagram for org.jgraph.graph.CellView:

org.jgraph.graph.AbstractCellView manas.GGates.MyView org.jgraph.graph.EdgeView org.jgraph.graph.PortView org.jgraph.graph.VertexView List of all members.

Public Member Functions

Object getCell ()
void refresh (GraphModel model, CellMapper mapper, boolean createDependentViews)
void update ()
void childUpdated ()
CellView getParentView ()
CellView[] getChildViews ()
void removeFromParent ()
boolean isLeaf ()
Rectangle2D getBounds ()
boolean intersects (JGraph g, Rectangle2D rect)
Point2D getPerimeterPoint (EdgeView edge, Point2D source, Point2D p)
Map changeAttributes (Map map)
AttributeMap getAttributes ()
AttributeMap getAllAttributes ()
Component getRendererComponent (JGraph graph, boolean selected, boolean focus, boolean preview)
CellHandle getHandle (GraphContext context)
GraphCellEditor getEditor ()

Detailed Description

Defines the requirements for an object that represents a view for a model cell.

Version:
1.0 1/1/02
Author:
Gaudenz Alder


Member Function Documentation

Map org.jgraph.graph.CellView.changeAttributes Map  map  ) 
 

Apply the specified map of attributes on the view.

Implemented in org.jgraph.graph.AbstractCellView.

void org.jgraph.graph.CellView.childUpdated  ) 
 

Implemented in org.jgraph.graph.AbstractCellView.

AttributeMap org.jgraph.graph.CellView.getAllAttributes  ) 
 

Implemented in org.jgraph.graph.AbstractCellView.

AttributeMap org.jgraph.graph.CellView.getAttributes  ) 
 

Returns all attributes of the view as a map.

Implemented in org.jgraph.graph.AbstractCellView.

Rectangle2D org.jgraph.graph.CellView.getBounds  ) 
 

Returns the bounds for the view.

Implemented in org.jgraph.graph.AbstractCellView, org.jgraph.graph.EdgeView, org.jgraph.graph.PortView, and org.jgraph.graph.VertexView.

Object org.jgraph.graph.CellView.getCell  ) 
 

Returns the model object that this view represents.

Implemented in org.jgraph.graph.AbstractCellView.

CellView [] org.jgraph.graph.CellView.getChildViews  ) 
 

Returns the child views of this view.

Implemented in org.jgraph.graph.AbstractCellView.

GraphCellEditor org.jgraph.graph.CellView.getEditor  ) 
 

Returns a cell editor for the view.

Implemented in org.jgraph.graph.AbstractCellView.

CellHandle org.jgraph.graph.CellView.getHandle GraphContext  context  ) 
 

Returns a cell handle for the view.

Implemented in manas.GGates.MyView, org.jgraph.graph.AbstractCellView, org.jgraph.graph.EdgeView, org.jgraph.graph.PortView, and org.jgraph.graph.VertexView.

CellView org.jgraph.graph.CellView.getParentView  ) 
 

Returns the parent of view of this view.

Implemented in org.jgraph.graph.AbstractCellView, and org.jgraph.graph.PortView.

Point2D org.jgraph.graph.CellView.getPerimeterPoint EdgeView  edge,
Point2D  source,
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.

Implemented in manas.GGates.MyView, org.jgraph.graph.AbstractCellView, org.jgraph.graph.EdgeView, and org.jgraph.graph.VertexView.

Component org.jgraph.graph.CellView.getRendererComponent JGraph  graph,
boolean  selected,
boolean  focus,
boolean  preview
 

Returns a renderer component, configured for the view.

Implemented in org.jgraph.graph.AbstractCellView.

boolean org.jgraph.graph.CellView.intersects JGraph  g,
Rectangle2D  rect
 

Returns true if the view intersects the given rectangle.

Implemented in org.jgraph.graph.AbstractCellView, and org.jgraph.graph.EdgeView.

boolean org.jgraph.graph.CellView.isLeaf  ) 
 

Returns true if the view is a leaf.

Implemented in org.jgraph.graph.AbstractCellView.

void org.jgraph.graph.CellView.refresh GraphModel  model,
CellMapper  mapper,
boolean  createDependentViews
 

Refresh this view based on the model cell. This is messaged when the model cell has changed.

Implemented in org.jgraph.graph.AbstractCellView, and org.jgraph.graph.EdgeView.

void org.jgraph.graph.CellView.removeFromParent  ) 
 

Removes this view from the list of childs of the parent.

Implemented in org.jgraph.graph.AbstractCellView.

void org.jgraph.graph.CellView.update  ) 
 

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.

Implemented in org.jgraph.graph.AbstractCellView, org.jgraph.graph.EdgeView, and org.jgraph.graph.VertexView.


The documentation for this interface was generated from the following file:
Generated on Sun May 28 19:13:13 2006 for Digimod by  doxygen 1.4.6-NO