Inheritance diagram for org.jgraph.graph.EdgeView:
Public Member Functions | |
EdgeView () | |
EdgeView (Object cell) | |
void | refresh (GraphModel model, CellMapper mapper, boolean createDependentViews) |
void | update () |
Shape | getShape () |
Rectangle2D | getLabelBounds () |
Rectangle2D | getExtraLabelBounds (int index) |
boolean | intersects (JGraph graph, Rectangle2D rect) |
Rectangle2D | getBounds () |
CellViewRenderer | getRenderer () |
CellHandle | getHandle (GraphContext context) |
CellView | getSource () |
CellView | getSourceParentView () |
void | setSource (CellView sourceView) |
CellView | getTarget () |
CellView | getTargetParentView () |
void | setTarget (CellView targetView) |
Point2D | getExtraLabelPosition (int index) |
Point2D | getLabelPosition () |
void | setLabelPosition (Point2D pos) |
void | setExtraLabelPosition (int index, Point2D pos) |
boolean | isLoop () |
List | getPoints () |
int | getPointCount () |
Point2D | getPoint (int index) |
void | setPoint (int index, Point2D p) |
void | addPoint (int index, Point2D p) |
void | removePoint (int index) |
void | addExtraLabel (Point2D location, Object label) |
void | removeExtraLabel (int index) |
Point2D | getLabelVector () |
Point2D | getPerimeterPoint (EdgeView edge, Point2D source, Point2D p) |
Static Public Member Functions | |
static double | getLength (CellView view) |
Public Attributes | |
transient Shape | beginShape |
transient Shape | endShape |
transient Shape | lineShape |
transient GeneralPath | sharedPath = null |
Static Public Attributes | |
static transient EdgeRenderer | renderer = new EdgeRenderer() |
Protected Member Functions | |
CellView | getVisibleParent (GraphModel model, CellMapper mapper, Object port) |
void | checkDefaultLabelPosition () |
void | invalidate () |
Point2D | getNearestPoint (boolean source) |
Point2D | getPointLocation (int index) |
Protected Attributes | |
List | points |
CellView | source |
CellView | target |
CellView | sourceParentView |
CellView | targetParentView |
Point2D | labelPosition |
Point2D[] | extraLabelPositions |
transient Rectangle2D | cachedLabelBounds = null |
transient Rectangle2D[] | cachedExtraLabelBounds = null |
transient Point2D | labelVector = null |
transient Rectangle2D | cachedBounds = null |
Package Functions | |
EdgeRenderer | getEdgeRenderer () |
Classes | |
class | EdgeHandle |
|
Constructs an empty edge view. |
|
Constructs an edge view for the specified model object.
|
|
Adds an extra label. |
|
Adds |
|
Hook for subclassers to avoid default label positions. |
|
Returns the location for this edgeview. Reimplemented from org.jgraph.graph.AbstractCellView. |
|
Returns the local renderer. Do not access the renderer field directly. Use this method instead. Note: This method is package private. |
|
Returns the bounds of label according to the last rendering state |
|
Returns a point that describes the position of the label. |
|
Returns a cell handle for the view. Implements org.jgraph.graph.AbstractCellView. |
|
Returns the bounds of label according to the last rendering state |
|
Returns a point that describes the position of the label. |
|
Hook to return the vector that is taken as the base vector to compute relative label positions. Normally, the vector goes from the first to the last point on the edge, unless these points are equal, in which case the average distance of all points to the source point is used. |
|
|
|
Returns the nearest point wrt to the source or target. This method returns the next or previous point or port in the points list, eg. if source is true it returns the location of the point or port at index 1 without calling the getLocation method on any ports. |
|
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. Reimplemented from org.jgraph.graph.AbstractCellView. |
|
Returns the cached points for this edge. |
|
Returns the number of point for this edge. |
|
Returns the point of |
|
Returns the points.
|
|
Returns a renderer for the class. Implements org.jgraph.graph.AbstractCellView. |
|
Returns the shape of the view according to the last rendering state |
|
Returns the CellView that represents the source of the edge. |
|
|
|
Returns the CellView that represents the target of the edge. |
|
|
|
|
|
Returns true if this view intersects the given rectangle. Reimplemented from org.jgraph.graph.AbstractCellView. |
|
Resets the cached values of the edge view |
|
Returns true if the edge is a loop. |
|
Overrides the parent method to udpate the cached points, source and target port. If the source or target is removed, a point is inserted into the array of points. Reimplemented from org.jgraph.graph.AbstractCellView. |
|
Removes the point at position |
|
Removes the point at position |
|
Sets the description of the label position. |
|
Sets the description of the label position. |
|
Sets the point at |
|
Sets the |
|
Sets the |
|
Update attributes and recurse children. Reimplemented from org.jgraph.graph.AbstractCellView. |
|
Drawing attributes that are created on the fly |
|
|
|
|
|
|
|
|
|
|
|
Cached label position of the edge. |
|
|
|
|
|
List of points of the edge. May contain ports. |
|
Renderer for the class. |
|
Shared-path tune-up. |
|
Cached source and target portview of the edge. |
|
|
|
|
|
|