MetaDone
|
Public Member Functions | |
boolean | shouldLayoutWidget (Widget w) |
Protected Member Functions | |
MyGraphVizLayout () | |
boolean | ignoreChild (Widget ch) |
Collection< Pair< Widget, Widget > > | getEdges (Collection< Widget > widgets) |
void | updatePosition (Widget widget, Point location) |
void | performLayout (final Widget widget) throws DelayLayout |
boolean | clearControlPoints (Widget widget) |
void | updateControlPoints (Widget source, Widget target, List< Point > controlPoints) |
Private Member Functions | |
Widget | getRelatedWidget (Anchor anchor, Collection< Widget > widgets) |
metadone.client.grasyla2.visuallibrary.GrasylaScene.MyGraphVizLayout.MyGraphVizLayout | ( | ) | [protected] |
boolean metadone.client.grasyla2.visuallibrary.GrasylaScene.MyGraphVizLayout.clearControlPoints | ( | Widget | widget | ) | [protected] |
Removes all the control points.
widget | The widget being laid out |
true
iff updating the control points for the widget is supported Reimplemented from metadone.client.grasyla2.visuallibrary.GraphVizLayout.
References metadone.util.Objects.cast(), metadone.client.grasyla2.visuallibrary.GrasylaScene.getConnectionLayer(), metadone.client.grasyla2.visuallibrary.GrasylaScene.MyGraphVizLayout.getRelatedWidget(), and metadone.client.grasyla2.visuallibrary.GrasylaScene.saveWidgetControlPoints().
Collection<Pair<Widget, Widget> > metadone.client.grasyla2.visuallibrary.GrasylaScene.MyGraphVizLayout.getEdges | ( | Collection< Widget > | widgets | ) | [protected, virtual] |
Gets the edges for a collection of widgets.
widgets | The widgets |
Implements metadone.client.grasyla2.visuallibrary.GraphVizLayout.
References metadone.util.Objects.cast(), metadone.client.grasyla2.visuallibrary.GrasylaScene.getConnectionLayer(), and metadone.client.grasyla2.visuallibrary.GrasylaScene.MyGraphVizLayout.getRelatedWidget().
Widget metadone.client.grasyla2.visuallibrary.GrasylaScene.MyGraphVizLayout.getRelatedWidget | ( | Anchor | anchor, |
Collection< Widget > | widgets | ||
) | [private] |
boolean metadone.client.grasyla2.visuallibrary.GrasylaScene.MyGraphVizLayout.ignoreChild | ( | Widget | ch | ) | [protected] |
Called to check if the widget should be laid out as a node.
ch | The widget the check |
true
if the ch should be ignored as a node Reimplemented from metadone.client.grasyla2.visuallibrary.GraphVizLayout.
References metadone.util.Objects.equal(), metadone.client.grasyla2.visuallibrary.widgets.NearGroup.getReference(), and metadone.client.grasyla2.visuallibrary.widgets.NearGroup.setReference().
void metadone.client.grasyla2.visuallibrary.GrasylaScene.MyGraphVizLayout.performLayout | ( | final Widget | widget | ) | throws DelayLayout [protected] |
boolean metadone.client.grasyla2.visuallibrary.GrasylaScene.MyGraphVizLayout.shouldLayoutWidget | ( | Widget | w | ) | [virtual] |
Checks whether a widget children should be laid out.
w | The widget to check |
true
if the children should be laid out Implements metadone.client.grasyla2.visuallibrary.GraphVizLayout.
References metadone.client.grasyla2.visuallibrary.GrasylaScene.getEngineFromWidget().
void metadone.client.grasyla2.visuallibrary.GrasylaScene.MyGraphVizLayout.updateControlPoints | ( | Widget | source, |
Widget | target, | ||
List< Point > | controlPoints | ||
) | [protected] |
Updates the control points for an edge.
The default implementation just logs a failure trace.
source | The source widget |
target | The target widget |
controlPoints | The control points |
Reimplemented from metadone.client.grasyla2.visuallibrary.GraphVizLayout.
References metadone.util.Objects.cast(), metadone.util.Objects.equal(), metadone.client.grasyla2.visuallibrary.GrasylaScene.getConnectionLayer(), metadone.client.grasyla2.visuallibrary.GrasylaScene.MyGraphVizLayout.getRelatedWidget(), metadone.client.grasyla2.visuallibrary.GraphVizLayout.removeLinearParts(), and metadone.client.grasyla2.visuallibrary.GrasylaScene.saveWidgetControlPoints().
void metadone.client.grasyla2.visuallibrary.GrasylaScene.MyGraphVizLayout.updatePosition | ( | Widget | widget, |
Point | location | ||
) | [protected] |
Updates the position of a widget after the algorithm has found a position.
widget | The widget |
location | The found location |
Reimplemented from metadone.client.grasyla2.visuallibrary.GraphVizLayout.
References metadone.client.grasyla2.visuallibrary.GrasylaScene.saveWidgetPosition().