public class DefaultGraphLookAndFeel extends Object implements GraphLookAndFeel
Adaptable.getAdaptor(Class) method,
passing in the Component class. It will wrap the returned component
in a ComponentWidget instance.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
drawArcLabels |
protected boolean |
drawSelfArcs |
static DefaultGraphLookAndFeel |
INSTANCE |
| Constructor and Description |
|---|
DefaultGraphLookAndFeel(boolean drawSelfArcs,
boolean drawArcLabels) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
drawArcLabels(Arc arc)
Controls if arc labels should be drawn.
|
boolean |
drawSelfArcs(Arc arc)
Controls if self arcs should be drawn.
|
org.netbeans.api.visual.widget.Widget |
newWidget(Node node,
SarasvatiGraphScene scene)
Returns a new Widget to represent the given node.
|
public static final DefaultGraphLookAndFeel INSTANCE
protected boolean drawSelfArcs
protected boolean drawArcLabels
public DefaultGraphLookAndFeel(boolean drawSelfArcs,
boolean drawArcLabels)
public boolean drawArcLabels(Arc arc)
GraphLookAndFeeldrawArcLabels in interface GraphLookAndFeelpublic boolean drawSelfArcs(Arc arc)
GraphLookAndFeeldrawSelfArcs in interface GraphLookAndFeelpublic org.netbeans.api.visual.widget.Widget newWidget(Node node, SarasvatiGraphScene scene)
GraphLookAndFeelnewWidget in interface GraphLookAndFeelnode - The node we need a widget forscene - The scene the widget is created inCopyright © 2012. All Rights Reserved.