|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.yworks.yfiles.bpmn.view.BpmnConnectionPainter
Painter implementation for BPN connections that support bridge rendering.
BpmnRealizerFactory.createConnection(BpmnTypeEnum)
,
BridgeCalculator
,
DefaultGraph2DRenderer.setBridgeCalculator(y.view.BridgeCalculator)
Constructor Summary | |
BpmnConnectionPainter()
Initializes a new BpmnConnectionPainter instance.
|
|
BpmnConnectionPainter(GenericEdgeRealizer.Painter painterDelegate)
Initializes a new BpmnConnectionPainter instance. |
Method Summary | |
protected BridgeCalculator |
getBridgeCalculator(EdgeRealizer context,
Graphics2D gfx)
Retrieves the the currently used BridgeCalculator instance
for the specified edge realizer and graphics context.
|
GenericEdgeRealizer.Painter |
getPainterDelegate()
Returns the decorated painter. |
void |
paint(EdgeRealizer context,
BendList bends,
GeneralPath path,
Graphics2D gfx,
boolean selected)
Handles high-detail rendering for the given edge, |
void |
paintSloppy(EdgeRealizer context,
BendList bends,
GeneralPath path,
Graphics2D gfx,
boolean selected)
Handles low-detail rendering for the given edge, |
void |
registerObstacles(EdgeRealizer context,
BendList bends,
GeneralPath path,
BridgeCalculator calculator)
Registers appropriate obstacles using the specified bridge calculator. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BpmnConnectionPainter()
BpmnConnectionPainter
instance.
A GenericEdgePainter
instance is used as painter delegate.
public BpmnConnectionPainter(GenericEdgeRealizer.Painter painterDelegate)
BpmnConnectionPainter
instance.
painterDelegate
- the decorated painter.Method Detail |
public GenericEdgeRealizer.Painter getPainterDelegate()
public void paint(EdgeRealizer context, BendList bends, GeneralPath path, Graphics2D gfx, boolean selected)
paint
in interface GenericEdgeRealizer.Painter
context
- the EdgeRealizer
context that is used for the
painting.bends
- the list of bends that the current context holds.path
- the GeneralPath
instance that is associated with
the current context.selected
- whether the edge should be painted in selected state.public void paintSloppy(EdgeRealizer context, BendList bends, GeneralPath path, Graphics2D gfx, boolean selected)
paintSloppy
in interface GenericEdgeRealizer.Painter
context
- the EdgeRealizer
context that is used for the
painting.bends
- the list of bends that the current context holds.path
- the GeneralPath
instance that is associated with
the current context.selected
- whether the edge should be painted in selected state.public void registerObstacles(EdgeRealizer context, BendList bends, GeneralPath path, BridgeCalculator calculator)
registerObstacles
in interface GenericEdgeRealizer.BridgeCalculatorHandler
context
- the EdgeRealizer
context that is used for the
painting.bends
- the list of bends that the current context holdspath
- the GeneralPath
instance that is associated with
the current context.calculator
- the calculator instance to register the obstacles withprotected BridgeCalculator getBridgeCalculator(EdgeRealizer context, Graphics2D gfx)
BridgeCalculator
instance
for the specified edge realizer and graphics context.
Called from paint(y.view.EdgeRealizer, y.view.BendList, java.awt.geom.GeneralPath, java.awt.Graphics2D, boolean)
.
context
- the visualization of the edge that should display bridges.gfx
- the graphics context that will be used to render the edge.
BridgeCalculator
instance or
null
if there is no calculator.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |