|
||||||||||
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 com.yworks.yfiles.bpmn.view.BpmnMarkerDecorator
Decorates an AbstractBpmnPainter
instance to paint marker icons on the bottom center of its shape.
MarkerTypeEnum
,
BpmnRealizerFactory.setMarkers(y.view.NodeRealizer, MarkerTypeEnum[])
Field Summary |
Fields inherited from class com.yworks.yfiles.bpmn.view.AbstractBpmnPainter |
ICON_FILL_COLOR, ICON_FILL_COLOR2, ICON_LINE_COLOR |
Constructor Summary | |
BpmnMarkerDecorator(AbstractBpmnPainter delegate)
Initializes a new BpmnMarkerDecorator instance. |
Method Summary | |
MouseInputEditor |
findMouseInputEditor(NodeRealizer context,
Graph2DView view,
double x,
double y,
HitInfo hitInfo)
Returns an editor to handle mouse events for group/folder nodes that are configured to use this BpmnMarkerDecorator instance as their
GenericNodeRealizer.GenericMouseInputEditorProvider .
|
protected Rectangle2D |
getIconBoundingBox(NodeRealizer context,
Rectangle2D availableRegion)
|
protected BpmnIconPainter |
getIconPainter(NodeRealizer context)
Returns a painter painting all marker icons for the specified node. |
protected BpmnIconPainter |
getMarkerIconPainter(MarkerTypeEnum type)
Retrieves an icon painter for the specified marker type. |
YDimension |
getMaximumSize(NodeRealizer context)
|
YDimension |
getMinimumSize(NodeRealizer context)
|
protected boolean |
isStateIconHit(NodeRealizer context,
double x,
double y)
Checks whether or not the specified coordinates lie inside the specified node's group state icon. |
Methods inherited from class com.yworks.yfiles.bpmn.view.BpmnIconDecorator |
getIconBoundingBox, getPainterDelegate, getPaintIconThreshold, paintNode, setPaintIconThreshold |
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 |
public BpmnMarkerDecorator(AbstractBpmnPainter delegate)
BpmnMarkerDecorator
instance.
delegate
- the decorated painter.Method Detail |
protected Rectangle2D getIconBoundingBox(NodeRealizer context, Rectangle2D availableRegion)
BpmnIconDecorator
BpmnIconDecorator.getIconBoundingBox(y.view.NodeRealizer)
.
getIconBoundingBox
in class BpmnIconDecorator
context
- the visual representation of the node being painted.availableRegion
- the region in which the icon bounds should lie.
protected BpmnIconPainter getIconPainter(NodeRealizer context)
getIconPainter
in class BpmnIconDecorator
context
- the visual representation of the node to paint.
protected BpmnIconPainter getMarkerIconPainter(MarkerTypeEnum type)
type
- the marker type.
null
if there is no painter for the specified type.public MouseInputEditor findMouseInputEditor(NodeRealizer context, Graph2DView view, double x, double y, HitInfo hitInfo)
BpmnMarkerDecorator
instance as their
GenericNodeRealizer.GenericMouseInputEditorProvider
.
By default, a GroupNodePainter.GroupStateEditor
instance is returned that closes groups/opens folders when the node's group
state icon is clicked.
findMouseInputEditor
in interface GenericNodeRealizer.GenericMouseInputEditorProvider
context
- the node context.view
- the component that received the mouse event.x
- the x-component of the world (graph) coordinate of the event.y
- the y-component of the world (graph) coordinate of the event.hitInfo
- the elements of the specified view's graph at the event
location.
MouseInputEditor
instance that handles mouse events
at the given coordinates or null
if events at the given
coordinates are ignored.isStateIconHit(y.view.NodeRealizer, double, double)
,
GroupNodePainter.GroupStateEditor
protected boolean isStateIconHit(NodeRealizer context, double x, double y)
MarkerTypeEnum.OPEN
or MarkerTypeEnum.CLOSED
.
context
- the visual representation of the node to check.x
- the x-coordinate to check.y
- the y-coordinate to check.
true
if the specified coordinates lie inside a group
state icon; false
otherwise.getMarkerIconPainter(MarkerTypeEnum)
public YDimension getMaximumSize(NodeRealizer context)
getMaximumSize
in interface GenericNodeRealizer.GenericSizeConstraintProvider
public YDimension getMinimumSize(NodeRealizer context)
getMinimumSize
in interface GenericNodeRealizer.GenericSizeConstraintProvider
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |