public abstract class AbstractElementSVGUI extends java.lang.Object implements ElementSVGUI
Modifier and Type | Field and Description |
---|---|
protected AbstractElement |
element |
protected TSVGNetwork |
network |
Constructor and Description |
---|
AbstractElementSVGUI(TSVGNetwork network,
AbstractElement element) |
Modifier and Type | Method and Description |
---|---|
protected void |
appendCustomerSVGAfterBody(java.lang.StringBuffer sb,
SVGContext context) |
protected void |
appendCustomerSVGBeforeBody(java.lang.StringBuffer sb,
SVGContext context) |
protected void |
appendElementBodyProperties(java.lang.StringBuffer sb,
SVGContext context) |
protected java.awt.Rectangle |
getBounds(SVGStruct struct,
java.awt.Rectangle bounds) |
Element |
getElement()
Get the element.
|
protected java.lang.Object |
getFillObject(SVGContext context,
java.awt.Color color)
Gets svgelement's fillobject.
|
protected java.lang.String |
getGradientID(SVGContext context,
int type,
java.awt.Color gradientColor,
java.awt.Color fillColor)
Gets the gradient ID of the element.
|
TSVGNetwork |
getNetwork()
Get which network component this ui painting for.
|
protected java.awt.Color |
getPaintBodyColor(java.awt.Color naturalBodyColor)
Gets the print body color of the element by the natural body color.
|
protected float |
getRenderAlpha()
Gets the renderer alpha of the element.
|
protected java.awt.Color |
getStateOutlineColor()
Gets the state outline color of the element.
|
protected void |
prepareElementSVGHeader(SVGContext context,
java.lang.StringBuffer head) |
protected SVGStruct |
toAlarmAttachmentSVG(SVGContext context)
Gets the svg struct of the element's alarm attachment.
|
protected SVGStruct |
toAttachmentSVG(SVGContext context)
Gets the svg struct of the element's attribute.
|
protected java.lang.String |
toAttributesSVG(SVGContext context)
Gets the element's attribute string.
|
protected SVGStruct |
toBodySVG(SVGContext context)
Gets the svg struct of elements's body.
|
protected SVGStruct |
toBorderSVG(SVGContext context)
Gets the svg struct of the element's border.
|
protected SVGStruct |
toIconAttachmentSVG(SVGContext context)
Gets the svg struct of the element's icon attachment.
|
protected SVGStruct |
toLabelAttachmentSVG(SVGContext context)
Gets the svg struct of the element's label attachment.
|
protected SVGStruct |
toMessageAttachmentSVG(SVGContext context)
Gets the svg struct of the element's message attachment.
|
SVGStruct |
toSVG(SVGContext context)
Export the element svgui's svg struct by the svg context.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHotspot
protected TSVGNetwork network
protected AbstractElement element
public AbstractElementSVGUI(TSVGNetwork network, AbstractElement element)
public Element getElement()
ElementSVGUI
getElement
in interface ElementSVGUI
public TSVGNetwork getNetwork()
ElementSVGUI
getNetwork
in interface ElementSVGUI
public SVGStruct toSVG(SVGContext context)
toSVG
in interface ElementSVGUI
context
- protected void prepareElementSVGHeader(SVGContext context, java.lang.StringBuffer head)
protected void appendCustomerSVGBeforeBody(java.lang.StringBuffer sb, SVGContext context)
protected void appendElementBodyProperties(java.lang.StringBuffer sb, SVGContext context)
protected void appendCustomerSVGAfterBody(java.lang.StringBuffer sb, SVGContext context)
protected java.awt.Rectangle getBounds(SVGStruct struct, java.awt.Rectangle bounds)
protected java.lang.String toAttributesSVG(SVGContext context)
context
- protected SVGStruct toBodySVG(SVGContext context)
context
- protected SVGStruct toBorderSVG(SVGContext context)
context
- protected SVGStruct toAttachmentSVG(SVGContext context)
context
- protected SVGStruct toAlarmAttachmentSVG(SVGContext context)
context
- protected SVGStruct toMessageAttachmentSVG(SVGContext context)
context
- protected SVGStruct toLabelAttachmentSVG(SVGContext context)
context
- protected SVGStruct toIconAttachmentSVG(SVGContext context)
context
- protected java.lang.String getGradientID(SVGContext context, int type, java.awt.Color gradientColor, java.awt.Color fillColor)
context
- type
- gradientColor
- fillColor
- protected java.lang.Object getFillObject(SVGContext context, java.awt.Color color)
context
- color
- protected java.awt.Color getPaintBodyColor(java.awt.Color naturalBodyColor)
naturalBodyColor
- protected java.awt.Color getStateOutlineColor()
protected float getRenderAlpha()
Copyright © 2002 - 2010 Serva Software. All Rights Reserved.