|
||||||||||
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 com.yworks.yfiles.bpmn.view.BpmnIconDecorator
Decorates an AbstractBpmnPainter
to paint an icon on its shape.
Field Summary |
Fields inherited from class com.yworks.yfiles.bpmn.view.AbstractBpmnPainter |
ICON_FILL_COLOR, ICON_FILL_COLOR2, ICON_LINE_COLOR |
Constructor Summary | |
protected |
BpmnIconDecorator(AbstractBpmnPainter painterDelegate)
Initializes a new BpmnIconDecorator instance. |
Method Summary | |
protected Rectangle2D |
getIconBoundingBox(NodeRealizer context)
Determines the bounds of the icon that is painted by this decorator. |
protected abstract Rectangle2D |
getIconBoundingBox(NodeRealizer context,
Rectangle2D availableRegion)
Determines the bounds of the icon that is painted by this decorator. |
protected abstract BpmnIconPainter |
getIconPainter(NodeRealizer context)
Returns the icon that is painted by this decorator. |
protected AbstractBpmnPainter |
getPainterDelegate()
Returns the decorated painter. |
double |
getPaintIconThreshold()
Delegates to AbstractBpmnPainter.getPaintIconThreshold() . |
protected void |
paintNode(NodeRealizer context,
Graphics2D graphics,
boolean sloppy)
Paints the delegate and the icon returned by getIconPainter(y.view.NodeRealizer) .
|
void |
setPaintIconThreshold(double threshold)
Delegates to AbstractBpmnPainter.setPaintIconThreshold(double) . |
Methods inherited from class com.yworks.yfiles.bpmn.view.AbstractBpmnPainter |
contains, getFillPaint |
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 |
Constructor Detail |
protected BpmnIconDecorator(AbstractBpmnPainter painterDelegate)
BpmnIconDecorator
instance.
painterDelegate
- the decorated painter.getPainterDelegate()
Method Detail |
protected AbstractBpmnPainter getPainterDelegate()
public double getPaintIconThreshold()
AbstractBpmnPainter.getPaintIconThreshold()
.
getPaintIconThreshold
in class AbstractBpmnPainter
setPaintIconThreshold(double)
public void setPaintIconThreshold(double threshold)
AbstractBpmnPainter.setPaintIconThreshold(double)
.
setPaintIconThreshold
in class AbstractBpmnPainter
threshold
- the size threshold for displaying the inner icon of this painter.getPaintIconThreshold()
protected void paintNode(NodeRealizer context, Graphics2D graphics, boolean sloppy)
getIconPainter(y.view.NodeRealizer)
.
The size and location of the icon is determined by
getIconBoundingBox(y.view.NodeRealizer)
.
paintNode
in class AbstractBpmnPainter
context
- the visual representation of the node being painted.graphics
- the graphics context to paint upon.sloppy
- true
if a low-detail version of the node
should be painted; false
if a high-detail version of the node
should be painted.protected Rectangle2D getIconBoundingBox(NodeRealizer context)
getIconBoundingBox(y.view.NodeRealizer, java.awt.geom.Rectangle2D)
.
context
- the visual representation of the node being painted.
protected abstract Rectangle2D getIconBoundingBox(NodeRealizer context, Rectangle2D availableRegion)
getIconBoundingBox(y.view.NodeRealizer)
.
context
- the visual representation of the node being painted.availableRegion
- the region in which the icon bounds should lie.
protected abstract BpmnIconPainter getIconPainter(NodeRealizer context)
paintNode(y.view.NodeRealizer, java.awt.Graphics2D, boolean)
.
context
- the visual representation of the node being painted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |