public class ShapeAttributes
extends java.lang.Object
Constructor and Description |
---|
ShapeAttributes() |
ShapeAttributes(ShapeAttributes attributes) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.Object |
getImageSource()
Indicates the associated shape's image source.
|
Color |
getInteriorColor()
Indicates the associated shape's interior color and opacity.
|
Color |
getOutlineColor()
Indicates the associated shape's outline color and opacity.
|
int |
getOutlineStippleFactor()
Indicates the associated shape's outline stipple factor.
|
short |
getOutlineStipplePattern()
Indicates the associated shape's outline stipple pattern.
|
float |
getOutlineWidth()
Indicates the associated shape's outline color and opacity.
|
int |
hashCode() |
boolean |
isDepthTest()
Indicates whether the shape should be depth-tested against other objects in the scene.
|
boolean |
isDrawInterior()
Indicates whether the interior of the associated shape is drawn.
|
boolean |
isDrawOutline()
Indicates whether the outline of the associated shape is drawn
|
boolean |
isDrawVerticals()
Indicates whether this shape should draw vertical lines extending from its specified positions to the ground.
|
boolean |
isEnableLighting()
Indicates whether lighting is applied to the associated shape.
|
ShapeAttributes |
set(ShapeAttributes attributes) |
ShapeAttributes |
setDepthTest(boolean enable)
Indicates whether the shape should be depth-tested against other objects in the scene.
|
ShapeAttributes |
setDrawInterior(boolean draw)
Indicates whether the interior of the associated shape is drawn.
|
ShapeAttributes |
setDrawOutline(boolean enable)
Indicates whether the outline of the associated shape is drawn
|
ShapeAttributes |
setDrawVerticals(boolean enable)
Indicates whether this shape should draw vertical lines extending from its specified positions to the ground.
|
ShapeAttributes |
setEnableLighting(boolean enable)
Indicates whether lighting is applied to the associated shape.
|
ShapeAttributes |
setImageSource(ImageSource imageSource)
Indicates the associated shape's image source.
|
ShapeAttributes |
setInteriorColor(Color color)
Indicates the associated shape's interior color and opacity.
|
ShapeAttributes |
setOutlineColor(Color color)
Indicates the associated shape's outline color and opacity.
|
ShapeAttributes |
setOutlineStippleFactor(int stippleFactor)
Indicates the associated shape's outline stipple factor.
|
ShapeAttributes |
setOutlineStipplePattern(short stipplePattern)
Indicates the associated shape's outline stipple pattern.
|
ShapeAttributes |
setOutlineWidth(float lineWidth)
Indicates the associated shape's outline color and opacity.
|
public ShapeAttributes()
public ShapeAttributes(ShapeAttributes attributes)
public ShapeAttributes set(ShapeAttributes attributes)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean isDrawInterior()
public ShapeAttributes setDrawInterior(boolean draw)
public boolean isDrawOutline()
public ShapeAttributes setDrawOutline(boolean enable)
public boolean isDrawVerticals()
public ShapeAttributes setDrawVerticals(boolean enable)
public boolean isDepthTest()
public ShapeAttributes setDepthTest(boolean enable)
public boolean isEnableLighting()
public ShapeAttributes setEnableLighting(boolean enable)
public Color getInteriorColor()
public ShapeAttributes setInteriorColor(Color color)
public Color getOutlineColor()
public ShapeAttributes setOutlineColor(Color color)
public float getOutlineWidth()
public ShapeAttributes setOutlineWidth(float lineWidth)
public int getOutlineStippleFactor()
public ShapeAttributes setOutlineStippleFactor(int stippleFactor)
public short getOutlineStipplePattern()
outlineStippleFactor
. For example, if the outline stipple factor is 3, each bit in the stipple
pattern is repeated three times before using the next bit.
To disable outline stippling, either specify a stipple factor of 0 or specify a stipple pattern of all 1 bits, i.e., 0xFFFF.
public ShapeAttributes setOutlineStipplePattern(short stipplePattern)
outlineStippleFactor
. For example, if the outline stipple factor is 3, each bit in the stipple
pattern is repeated three times before using the next bit.
To disable outline stippling, either specify a stipple factor of 0 or specify a stipple pattern of all 1 bits, i.e., 0xFFFF.
public java.lang.Object getImageSource()
public ShapeAttributes setImageSource(ImageSource imageSource)