org.jgraph.graph

Interface Edge.Routing

public static interface Edge.Routing extends Serializable

Field Summary
static intNO_PREFERENCE
Method Summary
intgetPreferredLineStyle(EdgeView edge)
Returns the preferred line style for this routing.
Listroute(GraphLayoutCache cache, EdgeView edge)
Returns the points to be used for the edge.

Field Detail

NO_PREFERENCE

public static final int NO_PREFERENCE

Method Detail

getPreferredLineStyle

public int getPreferredLineStyle(EdgeView edge)
Returns the preferred line style for this routing. A return value of NO_PREFERENCE means no preference.

route

public List route(GraphLayoutCache cache, EdgeView edge)
Returns the points to be used for the edge.

Parameters: cache TODO edge The edge view to route the points for.

Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.