|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.kitfox.svg.SVGDiagram
public class SVGDiagram
Top level structure in an SVG tree.
Field Summary | |
---|---|
protected boolean |
ignoreClipHeuristic
If true, no attempt will be made to discard geometry based on it being out of bounds. |
Constructor Summary | |
---|---|
SVGDiagram(java.net.URI xmlBase,
SVGUniverse universe)
Creates a new instance of SVGDiagram |
Method Summary | |
---|---|
SVGElement |
getElement(java.lang.String name)
|
float |
getHeight()
|
SVGRoot |
getRoot()
|
SVGUniverse |
getUniverse()
|
java.awt.geom.Rectangle2D |
getViewRect()
|
java.awt.geom.Rectangle2D |
getViewRect(java.awt.geom.Rectangle2D rect)
Returns the viewing rectangle of this diagram in device coordinates. |
float |
getWidth()
|
java.net.URI |
getXMLBase()
|
boolean |
ignoringClipHeuristic()
|
java.util.Vector |
pick(java.awt.geom.Point2D point,
java.util.Vector retVec)
Searches thorough the scene graph for all RenderableElements that have shapes that contain the passed point. |
void |
render(java.awt.Graphics2D g)
Draws this diagram to the passed graphics context |
void |
setElement(java.lang.String name,
SVGElement node)
|
void |
setIgnoringClipHeuristic(boolean ignoreClipHeuristic)
|
void |
setRoot(SVGRoot root)
|
void |
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 |
---|
protected boolean ignoreClipHeuristic
Constructor Detail |
---|
public SVGDiagram(java.net.URI xmlBase, SVGUniverse universe)
Method Detail |
---|
public void render(java.awt.Graphics2D g) throws SVGException
SVGException
public java.util.Vector pick(java.awt.geom.Point2D point, java.util.Vector retVec) throws SVGException
SVGException
public SVGUniverse getUniverse()
public java.net.URI getXMLBase()
public float getWidth()
public float getHeight()
public java.awt.geom.Rectangle2D getViewRect(java.awt.geom.Rectangle2D rect)
public java.awt.geom.Rectangle2D getViewRect()
public SVGElement getElement(java.lang.String name)
public void setElement(java.lang.String name, SVGElement node)
public SVGRoot getRoot()
public void setRoot(SVGRoot root)
public boolean ignoringClipHeuristic()
public void setIgnoringClipHeuristic(boolean ignoreClipHeuristic)
public void updateTime(double curTime) throws SVGException
SVGException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |