Modifier and Type | Field and Description |
---|---|
protected java.util.Map |
blinkingSegmentMap |
protected java.util.Map |
colorSegmentMap |
protected PolyLine |
polyLine |
antialias, blinkColor, bundleExpand, bundleIndex, bundleSize, centerPoint, color, containShape, defaultBorder, extend, flowing, flowingColor, flowingWidth, fromArrow, fromPosition, fromXOffset, fromYOffset, hollow, is3d, isFlowingConverse, labelRotatable, linkAngle, linkBlinking, linkWidth, outlineColor, outlineWidth, path, proportion, shape, splitValue, styleFactory, toArrow, toPosition, toXOffset, toYOffset
alarmAttachment, attachmentOrientation, attachmentPosition, attachments, attachmentXGap, attachmentXOffset, attachmentYGap, attachmentYOffset, borderInsets, element, labelAttachment, network, renderAlpha, stateOutlineInsets, textureFactory
Constructor and Description |
---|
PolyLineUI(TNetwork network,
PolyLine polyLine) |
Modifier and Type | Method and Description |
---|---|
int |
getBundleIndex()
Get this link's bundle index.
|
java.awt.geom.GeneralPath |
getPath()
Get the link ui's backbone path.
|
Segment |
getSegmentLogicalAt(int x,
int y) |
Segment |
getSegmentPhysicalAt(int x,
int y) |
java.awt.Shape |
getShape()
Overrides to avoid slowing down when create Area instance
|
java.awt.Rectangle |
getUIBounds()
Get the ui bounds.
|
void |
installAttachments()
install the default attachments for this UI.
|
void |
invalidateShape()
Invalidate this link's path.
|
boolean |
isBundleAgent()
Whether this link ui is the bundle agent.
|
boolean |
isBundledHidden() |
boolean |
isBundleExpand()
Determine whether this this bundle is expanded.
|
void |
paint(java.awt.Graphics2D g2d)
Paint the whole link on specified graphics.
|
protected void |
paintArrows(java.awt.Graphics2D g2d)
Paint link arrows.
|
void |
paintBody(java.awt.Graphics2D g2d)
Paint the link body by specified shape.
|
void |
paintBorder(java.awt.Graphics2D g2d)
Paint specified element object border on specified graphics.
|
void |
performAction(int gesture,
java.awt.event.MouseEvent e)
Called when user do some interaction on me.
|
void |
reverseExpand(boolean informOthers) |
void |
setBundleExpand(boolean bundleExpand,
boolean informOthers) |
contains, flowForward, getAngle, getBorder, getBundleSize, getCenterPoint, getContainShape, getDashPhase, getExtend, getFlexionStruct, getFlowingColor, getFlowingWidth, getFromAgentBounds, getFromAnchorPoint, getFromArrow, getFromInflexion, getFromPoint, getFromPosition, getFromXOffset, getFromYOffset, getHotspot, getLink, getLinkColor, getLinkWidth, getOrthogonalPoint, getOutlineColor, getOutlineWidth, getProportion, getSplitValue, getStroke, getToAgentBounds, getToAnchorPoint, getToArrow, getToInflexion, getToPoint, getToPosition, getToXOffset, getToYOffset, invalidateRelatedLinkShapes, is3D, isFlowing, isFlowingConverse, isFromArrow, isHollow, isLabelRotatable, isLinkBlinking, isToArrow, reverseExpand, setPath, updateClientProperty
addAttachment, attachments, containInAttachments, elementPropertyChange, getAlarmAttachment, getAttachementsArea, getAttachementsBounds, getAttachmentAt, getAttachmentOrientation, getAttachmentPosition, getAttachmentXGap, getAttachmentXOffset, getAttachmentYGap, getAttachmentYOffset, getBlinkStruct, getBorderShape, getDefaultBorderInset, getElement, getLabelAttachment, getNetwork, getPaintBodyColor, getSeletableAttachementsArea, getStateOutlineColor, isBodyDark, isOutlineDark, mouseClicked, paintAttachments, removeAttachment, setBodyPaint, setLabelAttachment, setStateOutline
protected java.util.Map colorSegmentMap
protected java.util.Map blinkingSegmentMap
protected PolyLine polyLine
public void paint(java.awt.Graphics2D g2d)
LinkUI
public void paintBody(java.awt.Graphics2D g2d)
public void invalidateShape()
LinkUI
invalidateShape
in class LinkUI
public java.awt.Rectangle getUIBounds()
LinkUI
getUIBounds
in interface ElementUI
getUIBounds
in class LinkUI
public java.awt.Shape getShape()
public Segment getSegmentLogicalAt(int x, int y)
public Segment getSegmentPhysicalAt(int x, int y)
public java.awt.geom.GeneralPath getPath()
LinkUI
public void paintBorder(java.awt.Graphics2D g2d)
AbstractElementUI
paintBorder
in class AbstractElementUI
public boolean isBundledHidden()
public void installAttachments()
AbstractElementUI
addAttachment
to add some new attachment.installAttachments
in class LinkUI
public void performAction(int gesture, java.awt.event.MouseEvent e)
AbstractElementUI
performAction
in interface ElementUI
performAction
in class LinkUI
e
- the gesture.protected void paintArrows(java.awt.Graphics2D g2d)
LinkUI
paintArrows
in class LinkUI
g2d
- the graphics objectpublic int getBundleIndex()
LinkUI
getBundleIndex
in class LinkUI
public boolean isBundleExpand()
LinkUI
isBundleExpand
in class LinkUI
public void reverseExpand(boolean informOthers)
public void setBundleExpand(boolean bundleExpand, boolean informOthers)
public boolean isBundleAgent()
LinkUI
isBundleAgent
in class LinkUI
Copyright © 2002 - 2010 Serva Software. All Rights Reserved.