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, shapebounds, element, highlighterBARBELL_SIZE, CLICK_DISTANCE| Constructor and Description |
|---|
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, syncBoundsgetBounds, getContainer, getDrawing, getElement, getGraphics, getHighlighter, getParentView, hitTest, paintHighlighter, repaint, setElement, setHighlighterprotected java.awt.Stroke arrowStroke
protected Arrow arrow1
protected Arrow arrow2
protected PicVector arrow1Dir
protected PicVector arrow2Dir
protected PicPoint arrow1Loc
protected PicPoint arrow2Loc
public 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.LeafElementViewpublic void paint(java.awt.Graphics2D g,
java.awt.geom.Rectangle2D a)
paint in interface Viewpaint in class DefaultViewFactory.LeafElementViewa - the current graphic clipSubmit a bug : syd@jpicedt.org