| |
|
| com.jgraph.pad.graph.JGraphpadEdgeView
JGraphpadEdgeView | public class JGraphpadEdgeView extends EdgeView (Code) | | 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
JGraphpadEdgeView.getNearestPoint(boolean) .
|
Inner Class :public static class JGraphpadEdgeHandle extends EdgeHandle | |
Method Summary | |
public GraphCellEditor | getEditor() Returns
JGraphpadEdgeView.editor if the user object of the cell is a rich text
value or
JGraphpadEdgeView.redirector if the user object is a component. | public CellHandle | getHandle(GraphContext ctx) Overrides the parent's implementation to return a custom handle.
Parameters: ctx - The context to use for the handle. | protected Point2D | getNearestPoint(boolean isSource) Overrides the parent's implementation to return the moveable port
position for this edge.
Parameters: isSource - Whether to return the nearest point for the source or target. | public CellViewRenderer | getRenderer() Returns the
JGraphpadEdgeView.renderer . |
renderer | public static EdgeRenderer renderer(Code) | | Holds the static renderer for views of this kind.
|
JGraphpadEdgeView | public JGraphpadEdgeView()(Code) | | Empty constructor for persistence.
|
JGraphpadEdgeView | public JGraphpadEdgeView(Object cell)(Code) | | Constructs a new edge view for the specified cell.
Parameters: cell - The cell to constructs the edge view for. |
getHandle | public CellHandle getHandle(GraphContext ctx)(Code) | | Overrides the parent's implementation to return a custom handle.
Parameters: ctx - The context to use for the handle. Returns a custom handle. |
getNearestPoint | protected Point2D getNearestPoint(boolean isSource)(Code) | | Overrides the parent's implementation to return the moveable port
position for this edge.
Parameters: isSource - Whether to return the nearest point for the source or target. Returns the moveable port position for this edge. |
|
|
|