| java.lang.Object abbot.tester.ComponentLocation abbot.tester.extensions.JGraphLocation
JGraphLocation | public class JGraphLocation extends ComponentLocation (Code) | | Provides encapsulation of the location of vertices and edges in a
JGraph (a coordinate or item index).
This class provides an example of a
ComponentLocation extension.
Note that all bounds information must be converted to screen coordinates
with
JGraph.toScreen(Point2D) or
JGraph.toScreen(Rectangle2D) before use in actions.
|
JGraphLocation | public JGraphLocation()(Code) | | |
JGraphLocation | public JGraphLocation(int index)(Code) | | |
getBounds | public Rectangle getBounds(Component c)(Code) | | Return the bounds of this location. If the location refers to a cell,
returns the cell's bounding box.
|
getCellBounds | protected Rectangle getCellBounds(JGraph graph, Object o)(Code) | | Return the bounds of the cell in screen coordinates.
|
indexToPoint | protected Point indexToPoint(JGraph graph, int index)(Code) | | Convert the given object index into a screen coordinate.
|
toScreen | protected Point toScreen(JGraph graph, int x, int y)(Code) | | |
|
|