|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.view.AbstractCustomNodePainter com.yworks.yfiles.bpmn.view.AbstractBpmnPainter
Base class for BPMN painter/contains test implementations. The following "well-known" style properties may be used to adjust the painter's color scheme:
ICON_LINE_COLOR
ICON_FILL_COLOR
ICON_FILL_COLOR2
Field Summary | |
static String |
ICON_FILL_COLOR
Style property key for fill color of BPMN icons. |
static String |
ICON_FILL_COLOR2
Style property key for second fill color of BPMN icons. |
static String |
ICON_LINE_COLOR
Style property key for line color of BPMN icons. |
Method Summary | |
boolean |
contains(NodeRealizer context,
double x,
double y)
Checks whether or not the visualization produced by this painter for the specified realizer contains the specified point. |
protected Paint |
getFillPaint(NodeRealizer context,
boolean selected)
|
double |
getPaintIconThreshold()
Returns the size threshold for displaying the inner icon of this painter. |
protected void |
paintNode(NodeRealizer context,
Graphics2D graphics,
boolean sloppy)
Paints the node represented by the specified context realizer. |
void |
setPaintIconThreshold(double threshold)
Specifies the size threshold for displaying the inner icon of this painter. |
Methods inherited from class y.view.AbstractCustomNodePainter |
backupGraphics, createSelectionColor, getFillColor, getFillColor2, getLineColor, getLinePaint, getLineStroke, initializeFill, initializeLine, paint, paintHotSpots, paintPorts, paintSloppy, paintText, restoreGraphics |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String ICON_LINE_COLOR
public static final String ICON_FILL_COLOR
public static final String ICON_FILL_COLOR2
Method Detail |
public double getPaintIconThreshold()
setPaintIconThreshold(double)
public void setPaintIconThreshold(double threshold)
threshold
- the size threshold for displaying the inner icon of this painter.getPaintIconThreshold()
protected void paintNode(NodeRealizer context, Graphics2D graphics, boolean sloppy)
public boolean contains(NodeRealizer context, double x, double y)
contains
in interface GenericNodeRealizer.ContainsTest
protected Paint getFillPaint(NodeRealizer context, boolean selected)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |