|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.view.AbstractCustomNodePainter
y.view.GeneralPathNodePainter
public class GeneralPathNodePainter
This class represents a custom painter and ContainsTest implementation for GenericNodeRealizer that
can be used with any kind of GeneralPath.
![]() |
![]() |
| Constructor Summary | |
|---|---|
GeneralPathNodePainter(GeneralPath path)
|
|
| Method Summary | |
|---|---|
boolean |
contains(NodeRealizer context,
double x,
double y)
Used as a callback for the GenericNodeRealizer.contains(double, double) method. |
protected Color |
getFillColor(NodeRealizer context,
boolean selected)
Overrides the default fill color to be the same as the unselected fill color. |
protected void |
paintNode(NodeRealizer context,
Graphics2D graphics,
boolean sloppy)
Callback method to be overwritten by subclasses called by AbstractCustomNodePainter.paint(NodeRealizer, Graphics2D). |
| Methods inherited from class y.view.AbstractCustomNodePainter |
|---|
backupGraphics, createSelectionColor, getFillColor2, getFillPaint, getLineColor, getLinePaint, getLineStroke, initializeFill, initializeLine, paint, paintSloppy, restoreGraphics |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GeneralPathNodePainter(GeneralPath path)
| Method Detail |
|---|
protected void paintNode(NodeRealizer context,
Graphics2D graphics,
boolean sloppy)
AbstractCustomNodePainterAbstractCustomNodePainter.paint(NodeRealizer, Graphics2D).
This method is responsible for drawing the actual node only - neither
the hotspots, nor the labels, should be painted by this method.
paintNode in class AbstractCustomNodePaintercontext - the context nodegraphics - the graphics context to usesloppy - whether to draw the node sloppilyAbstractCustomNodePainter.initializeLine(NodeRealizer, Graphics2D),
AbstractCustomNodePainter.initializeFill(NodeRealizer, Graphics2D)
protected Color getFillColor(NodeRealizer context,
boolean selected)
getFillColor in class AbstractCustomNodePaintercontext - the context nodeselected - whether the node is currently selected
null
public boolean contains(NodeRealizer context,
double x,
double y)
GenericNodeRealizer.ContainsTestGenericNodeRealizer.contains(double, double) method.
contains in interface GenericNodeRealizer.ContainsTest
|
© Copyright 2000-2008, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||