|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectprocessing.core.PShape
processing.candy.BaseObject
public class BaseObject
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
BaseObject(BaseObject parent,
XMLElement properties)
|
|
| Method Summary | |
|---|---|
void |
drawImpl(PGraphics g)
Draws the SVG document. |
PShape |
getChild(java.lang.String name)
Get a particular element based on its SVG ID. |
void |
ignoreStyles()
Overrides SVG-set styles and uses PGraphics styles and colors. |
void |
ignoreStyles(boolean state)
Enables or disables style information (fill and stroke) set in the file. |
void |
print()
Prints out the SVG document useful for parsing |
| Methods inherited from class processing.core.PShape |
|---|
addChild, applyMatrix, applyMatrix, draw, draw, draw, drawMode, findChild, getChild, getChildCount, getHeight, getName, getWidth, isVisible, post, resetMatrix, rotate, rotate, rotateX, rotateY, rotateZ, scale, scale, scale, setName, setVisible, translate, translate |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BaseObject(BaseObject parent,
XMLElement properties)
| Method Detail |
|---|
public void ignoreStyles()
public void ignoreStyles(boolean state)
state - true to use user-specified stroke/fill, false for svg versionpublic void drawImpl(PGraphics g)
PShape
drawImpl in class PShapepublic PShape getChild(java.lang.String name)
// This code grabs "Layer 3" and the shapes beneath it.
SVG layer3 = svg.get("Layer 3");
getChild in class PShapepublic void print()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||