public class DefaultViewFactory.PicNodeConnectionView extends DefaultViewFactory.LeafElementView
Modifier and Type | Field and Description |
---|---|
protected Arrow |
arrow1 |
protected PicVector |
arrow1Dir |
protected PicPoint |
arrow1Loc |
protected Arrow |
arrow2 |
protected PicVector |
arrow2Dir |
protected PicPoint |
arrow2Loc |
protected java.awt.Stroke |
arrowStroke |
interiorPaint, lineWidth, outlinePaint, outlineStroke, overStrikeWidth, shadowBounds, shape
bounds, element, highlighter
BARBELL_SIZE, CLICK_DISTANCE
Constructor and Description |
---|
DefaultViewFactory.PicNodeConnectionView(PicNodeConnection edge)
construct a new View for the given node connection
|
Modifier and Type | Method and Description |
---|---|
void |
paint(java.awt.Graphics2D g,
java.awt.geom.Rectangle2D a)
Render the View to the given graphic context.
|
protected void |
syncShape()
Synchronize the "shape" variable with the model.
|
changedUpdate, getViewFactory, hitTest, syncAttributes, syncBounds
getBounds, getContainer, getDrawing, getElement, getGraphics, getHighlighter, getParentView, hitTest, paintHighlighter, repaint, setElement, setHighlighter
protected java.awt.Stroke arrowStroke
protected Arrow arrow1
protected Arrow arrow2
protected PicVector arrow1Dir
protected PicVector arrow2Dir
protected PicPoint arrow1Loc
protected PicPoint arrow2Loc
public DefaultViewFactory.PicNodeConnectionView(PicNodeConnection edge)
protected void syncShape()
syncTangents
after having updated the shape
field. It is
up to subclasses to adapt their behaviour according to the underlying model, if only computing tangents
is different.syncShape
in class DefaultViewFactory.LeafElementView
public void paint(java.awt.Graphics2D g, java.awt.geom.Rectangle2D a)
paint
in interface View
paint
in class DefaultViewFactory.LeafElementView
a
- the current graphic clipSubmit a bug : syd@jpicedt.org