|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.powerml.structures.styles.SpatialStyle
This class is used to specify a shape's 3D properties.
| Field Summary | |
static byte |
INTENSITY_BRIGHT
Bright light source |
static byte |
INTENSITY_DIM
Dim light source |
static byte |
INTENSITY_NORMAL
Normal light source |
| Method Summary | |
void |
addXml(org.dom4j.Element parent,
int roundPrecision)
Transforms current instance to XML and adds it to a parent element. |
RGBColor |
getColor()
Returns the 3D color. |
int |
getDepth()
Returns the 3D depth. |
double |
getDiffuseAmount()
Returns the diffuse light amount. |
byte |
getLightIntensity()
Returns the light source intensity. |
Point |
getLightPosition()
Returns the position of the light source relative to the shape. |
double |
getSpecularAmount()
Returns the specular light amount. |
Point |
getViewpoint()
Returns the position of the viewpoint relative to the shape. |
int |
getXRotationAngle()
Returns the rotation angle around the x axis (up/down tilt). |
int |
getYRotationAngle()
Returns the rotation angle around the y axis (left/right tilt). |
boolean |
isActive()
Checks if the shape has 3D properties. |
boolean |
isPerspective()
Checks if perspective projection is active. |
boolean |
isWireframe()
Checks whether the resulting 3D shape is shown as a wireframe. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final byte INTENSITY_BRIGHT
public static final byte INTENSITY_DIM
public static final byte INTENSITY_NORMAL
| Method Detail |
public void addXml(org.dom4j.Element parent,
int roundPrecision)
parent - parent elementroundPrecision - rounding precisionpublic RGBColor getColor()
public int getDepth()
public double getDiffuseAmount()
public byte getLightIntensity()
public Point getLightPosition()
public double getSpecularAmount()
public Point getViewpoint()
public int getXRotationAngle()
public int getYRotationAngle()
public boolean isActive()
public boolean isPerspective()
public boolean isWireframe()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||