public class LinkSVGUI extends AbstractElementSVGUI
Modifier and Type | Field and Description |
---|---|
protected java.awt.Rectangle |
fromBounds |
protected java.awt.Point |
fromPoint |
protected Link |
link |
protected java.awt.Rectangle |
toBounds |
protected java.awt.Point |
toPoint |
element, network
Constructor and Description |
---|
LinkSVGUI(TSVGNetwork network,
Link link)
Create a link svg ui with the given network and the link
|
Modifier and Type | Method and Description |
---|---|
protected void |
appendClassName(java.lang.StringBuffer head) |
protected java.awt.geom.GeneralPath |
createLinkPath(SVGContext context) |
double |
getAngle(SVGContext context) |
twaver.base.obfuscate.svg.FlexionSVGStruct |
getFlexionStruct(SVGContext context) |
java.awt.Rectangle |
getFromBounds(SVGContext context,
Node fromAgent) |
java.awt.Point |
getFromInflexion(SVGContext context) |
java.awt.Point |
getHotspot(SVGContext context)
Gets the hotspot point of the svgui.
|
java.awt.Rectangle |
getToBounds(SVGContext context,
Node toAgent) |
java.awt.Point |
getToInflexion(SVGContext context) |
protected void |
prepareElementSVGHeader(SVGContext context,
java.lang.StringBuffer head) |
protected void |
toArrowSVG(SVGContext context,
java.lang.StringBuffer sb,
java.awt.geom.GeneralPath path) |
protected SVGStruct |
toAttachmentSVG(SVGContext context)
Gets the svg struct of the element's attribute.
|
protected SVGStruct |
toBodySVG(SVGContext context)
Gets the svg struct of elements's body.
|
protected void |
toLinkFlowingSVG(SVGContext context,
java.lang.StringBuffer sb,
java.lang.String id) |
protected void |
toLinkPathSVG(SVGContext context,
java.lang.StringBuffer sb,
java.lang.String id,
java.awt.Color bodyColor) |
SVGStruct |
toSVG(SVGContext context)
Export the element svgui's svg struct by the svg context.
|
appendCustomerSVGAfterBody, appendCustomerSVGBeforeBody, appendElementBodyProperties, getBounds, getElement, getFillObject, getGradientID, getNetwork, getPaintBodyColor, getRenderAlpha, getStateOutlineColor, toAlarmAttachmentSVG, toAttributesSVG, toBorderSVG, toIconAttachmentSVG, toLabelAttachmentSVG, toMessageAttachmentSVG
protected Link link
protected java.awt.Point fromPoint
protected java.awt.Point toPoint
protected java.awt.Rectangle fromBounds
protected java.awt.Rectangle toBounds
public LinkSVGUI(TSVGNetwork network, Link link)
public SVGStruct toSVG(SVGContext context)
toSVG
in interface ElementSVGUI
toSVG
in class AbstractElementSVGUI
context
- protected void prepareElementSVGHeader(SVGContext context, java.lang.StringBuffer head)
prepareElementSVGHeader
in class AbstractElementSVGUI
protected void appendClassName(java.lang.StringBuffer head)
public java.awt.Point getHotspot(SVGContext context)
context
- protected SVGStruct toBodySVG(SVGContext context)
AbstractElementSVGUI
toBodySVG
in class AbstractElementSVGUI
protected void toLinkFlowingSVG(SVGContext context, java.lang.StringBuffer sb, java.lang.String id)
protected void toLinkPathSVG(SVGContext context, java.lang.StringBuffer sb, java.lang.String id, java.awt.Color bodyColor)
protected void toArrowSVG(SVGContext context, java.lang.StringBuffer sb, java.awt.geom.GeneralPath path)
public java.awt.Rectangle getFromBounds(SVGContext context, Node fromAgent)
public java.awt.Rectangle getToBounds(SVGContext context, Node toAgent)
protected java.awt.geom.GeneralPath createLinkPath(SVGContext context)
protected SVGStruct toAttachmentSVG(SVGContext context)
AbstractElementSVGUI
toAttachmentSVG
in class AbstractElementSVGUI
public double getAngle(SVGContext context)
public java.awt.Point getFromInflexion(SVGContext context)
public java.awt.Point getToInflexion(SVGContext context)
public twaver.base.obfuscate.svg.FlexionSVGStruct getFlexionStruct(SVGContext context)
Copyright © 2002 - 2010 Serva Software. All Rights Reserved.