|
kitfox-svg-core 1.0.0-build001 / 2012-04-07T15:40:49.711-0500 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kitfox.svg.SVGElement
public abstract class SVGElement
| Field Summary | |
|---|---|
protected ArrayList |
children
|
protected String |
cssClass
CSS class. |
protected SVGDiagram |
diagram
The diagram this element belongs to |
protected String |
id
|
protected static Set |
ignorePresAttrib
A list of presentation attributes to not include in the presentation attribute set. |
protected HashMap |
inlineStyles
Styles defined for this elemnt via the style attribute. |
protected SVGElement |
parent
|
protected HashMap |
presAttribs
Presentation attributes set for this element. |
static long |
serialVersionUID
|
static String |
SVG_NS
|
protected TrackManager |
trackManager
Link to the universe we reside in |
protected URI |
xmlBase
This element may override the URI we resolve against with an xml:base attribute. |
| Constructor Summary | |
|---|---|
SVGElement()
Creates a new instance of SVGElement |
|
SVGElement(String id,
String cssClass,
SVGElement parent)
|
|
SVGElement(String id,
SVGElement parent)
|
|
| Method Summary | |
|---|---|
void |
addAttribute(String name,
int attribType,
String value)
|
protected void |
build()
Called by internal processes to rebuild the geometry of this node from it's presentation attributes, style attributes and animated tracks. |
protected static GeneralPath |
buildPath(String text,
int windingRule)
|
SVGElement |
getChild(int i)
|
SVGElement |
getChild(String id)
|
List |
getChildren(List retVec)
|
String |
getId()
|
Set |
getInlineAttributes()
|
int |
getNumChildren()
|
SVGElement |
getParent()
|
protected SVGElement |
getParentContext()
|
List |
getPath(List retVec)
|
boolean |
getPres(StyleAttribute attrib)
Copies the presentation attribute into the passed one. |
StyleAttribute |
getPresAbsolute(String styName)
|
Set |
getPresentationAttributes()
|
boolean |
getStyle(StyleAttribute attrib)
|
boolean |
getStyle(StyleAttribute attrib,
boolean recursive)
Copies the current style into the passed style attribute. |
StyleAttribute |
getStyleAbsolute(String styName)
|
URI |
getXMLBase()
|
boolean |
hasAttribute(String name,
int attribType)
|
int |
indexOfChild(SVGElement child)
Searches children for given element. |
void |
loaderAddChild(SVGLoaderHelper helper,
SVGElement child)
Called after the start element but before the end element to indicate each child tag that has been processed |
void |
loaderAddText(SVGLoaderHelper helper,
String text)
Called during load process to add text scanned within a tag |
void |
loaderEndElement(SVGLoaderHelper helper)
Called to indicate that this tag and the tags it contains have been completely processed, and that it should finish any load processes. |
void |
loaderStartElement(SVGLoaderHelper helper,
Attributes attrs,
SVGElement parent)
Called during SAX load process to notify that this tag has begun the process of being loaded |
protected static float |
nextFloat(LinkedList l)
|
protected static PathCommand[] |
parsePathList(String list)
|
static AffineTransform |
parseSingleTransform(String val)
|
protected static AffineTransform |
parseTransform(String val)
|
protected SVGElement |
popParentContext()
|
protected void |
pushParentContext(SVGElement context)
Hack to allow nodes to temporarily change their parents. |
void |
removeAttribute(String name,
int attribType)
|
void |
removeChild(SVGElement child)
|
void |
setAttribute(String name,
int attribType,
String value)
|
protected void |
setDiagram(SVGDiagram diagram)
|
void |
swapChildren(int i,
int j)
Swaps 2 elements in children. |
abstract boolean |
updateTime(double curTime)
Updates all attributes in this diagram associated with a time event. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final long serialVersionUID
public static final String SVG_NS
protected SVGElement parent
protected final ArrayList children
protected String id
protected String cssClass
protected final HashMap inlineStyles
protected final HashMap presAttribs
protected static final Set ignorePresAttrib
protected URI xmlBase
protected SVGDiagram diagram
protected final TrackManager trackManager
| Constructor Detail |
|---|
public SVGElement()
public SVGElement(String id,
SVGElement parent)
public SVGElement(String id,
String cssClass,
SVGElement parent)
| Method Detail |
|---|
public SVGElement getParent()
public List getPath(List retVec)
public List getChildren(List retVec)
retVec - - A list to add all children to. If null, a new list is
created and children of this group are added.
public SVGElement getChild(String id)
id - - Id of svg element to return
public int indexOfChild(SVGElement child)
public void swapChildren(int i,
int j)
throws SVGException
SVGException
public void loaderStartElement(SVGLoaderHelper helper,
Attributes attrs,
SVGElement parent)
throws SAXException
attrs - - Attributes of this taghelper - - An object passed to all SVG elements involved in this build
process to aid in sharing information.
SAXException
public void removeAttribute(String name,
int attribType)
public void addAttribute(String name,
int attribType,
String value)
throws SVGElementException
SVGElementException
public boolean hasAttribute(String name,
int attribType)
throws SVGElementException
SVGElementExceptionpublic Set getInlineAttributes()
public Set getPresentationAttributes()
public void loaderAddChild(SVGLoaderHelper helper,
SVGElement child)
throws SVGElementException
SVGElementExceptionprotected void setDiagram(SVGDiagram diagram)
public void removeChild(SVGElement child)
throws SVGElementException
SVGElementException
public void loaderAddText(SVGLoaderHelper helper,
String text)
public void loaderEndElement(SVGLoaderHelper helper)
throws SVGParseException
SVGParseException
protected void build()
throws SVGException
SVGExceptionpublic URI getXMLBase()
public String getId()
protected void pushParentContext(SVGElement context)
protected SVGElement popParentContext()
protected SVGElement getParentContext()
public boolean getStyle(StyleAttribute attrib)
throws SVGException
SVGException
public void setAttribute(String name,
int attribType,
String value)
throws SVGElementException
SVGElementException
public boolean getStyle(StyleAttribute attrib,
boolean recursive)
throws SVGException
attrib - - Attribute to write style data to. Must have it's name
set to the name of the style being queried.recursive - - If true and this object does not contain the
named style attribute, checks attributes of parents abck to root until
one found.
SVGExceptionpublic StyleAttribute getStyleAbsolute(String styName)
public boolean getPres(StyleAttribute attrib)
throws SVGException
SVGExceptionpublic StyleAttribute getPresAbsolute(String styName)
protected static AffineTransform parseTransform(String val)
throws SVGException
SVGException
public static AffineTransform parseSingleTransform(String val)
throws SVGException
SVGExceptionprotected static float nextFloat(LinkedList l)
protected static PathCommand[] parsePathList(String list)
protected static GeneralPath buildPath(String text,
int windingRule)
public abstract boolean updateTime(double curTime)
throws SVGException
SVGExceptionpublic int getNumChildren()
public SVGElement getChild(int i)
|
kitfox-svg-core 1.0.0-build001 / 2012-04-07T15:40:49.711-0500 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||