|
JGraphpad Pro
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jgraph.graph.AbstractCellView
org.jgraph.graph.EdgeView
com.jgraph.pad.graph.JGraphpadEdgeView
Edge view that supports moveable ports. Note: The offset for the port depends
on the edge, and is therefore stored in the edge's attributes. It is not
required to provide a custom port view, as the port offset is returned from
within the overridden getNearestPoint(boolean).
| Nested Class Summary | |
static class |
JGraphpadEdgeView.JGraphpadEdgeHandle
Custom handle that implements moveable ports. |
| Nested classes inherited from class org.jgraph.graph.EdgeView |
org.jgraph.graph.EdgeView.EdgeHandle |
| Field Summary | |
static JGraphpadRichTextEditor |
editor
Holds the static editor for views of this kind. |
static JGraphpadRedirectingEditor |
redirector
Holds the static editor for views of this kind. |
static org.jgraph.graph.EdgeRenderer |
renderer
Holds the static renderer for views of this kind. |
| Fields inherited from class org.jgraph.graph.EdgeView |
beginShape, cachedBounds, endShape, extraLabelPositions, labelPosition, labelVector, lineShape, points, sharedPath, source, sourceParentView, target, targetParentView |
| Fields inherited from class org.jgraph.graph.AbstractCellView |
allAttributes, attributes, cell, cellEditor, childViews, groupBounds, parent |
| Constructor Summary | |
JGraphpadEdgeView()
Empty constructor for persistence. |
|
JGraphpadEdgeView(Object cell)
Constructs a new edge view for the specified cell. |
|
| Method Summary | |
org.jgraph.graph.GraphCellEditor |
getEditor()
Returns editor if the user object of the cell is a rich text
value or redirector if the user object is a component. |
org.jgraph.graph.CellHandle |
getHandle(org.jgraph.graph.GraphContext ctx)
Overrides the parent's implementation to return a custom handle. |
protected Point2D |
getNearestPoint(boolean isSource)
Overrides the parent's implementation to return the moveable port position for this edge. |
org.jgraph.graph.CellViewRenderer |
getRenderer()
Returns the renderer. |
| Methods inherited from class org.jgraph.graph.EdgeView |
addExtraLabel, addPoint, checkDefaultLabelPosition, convertRelativeLabelPositionToAbsolute, getAbsoluteExtraLabelPosition, getAbsoluteLabelPosition, getAbsoluteLabelPositionFromRelative, getBounds, getExtraLabelPosition, getLabelPosition, getLabelVector, getLength, getPerimeterPoint, getPoint, getPointCount, getPointLocation, getPoints, getShape, getSource, getSourceParentView, getTarget, getTargetParentView, getVisibleParent, intersects, invalidate, isLoop, refresh, removeExtraLabel, removePoint, setExtraLabelPosition, setLabelPosition, setPoint, setSource, setTarget, update |
| Methods inherited from class org.jgraph.graph.AbstractCellView |
changeAttributes, childUpdated, createAttributeMap, getAllAttributes, getAttributes, getBounds, getCell, getCellAttributes, getCenterPoint, getChildViews, getDescendantViews, getParentView, getRendererComponent, includeInGroupBounds, isLeaf, mergeAttributes, removeFromParent, scale, setAttributes, setBounds, setCell, translate, updateGroupBounds |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static JGraphpadRichTextEditor editor
public static JGraphpadRedirectingEditor redirector
public static org.jgraph.graph.EdgeRenderer renderer
| Constructor Detail |
public JGraphpadEdgeView()
public JGraphpadEdgeView(Object cell)
cell - The cell to constructs the edge view for.| Method Detail |
public org.jgraph.graph.CellHandle getHandle(org.jgraph.graph.GraphContext ctx)
ctx - The context to use for the handle.
protected Point2D getNearestPoint(boolean isSource)
isSource - Whether to return the nearest point for the source or target.
public org.jgraph.graph.GraphCellEditor getEditor()
editor if the user object of the cell is a rich text
value or redirector if the user object is a component.
public org.jgraph.graph.CellViewRenderer getRenderer()
renderer.
|
JGraphpad Pro
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||