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) |
Color |
getInteriorColor()
Indicates the color and opacity of shape interiors.
|
ImageSource |
getInteriorImageSource()
Indicates the image source applied to shape interiors.
|
Color |
getOutlineColor()
Indicates the color and opacity of shape outlines.
|
ImageSource |
getOutlineImageSource()
Indicates the image source applied to shape outlines.
|
float |
getOutlineWidth()
Indicates the width of shape outlines.
|
int |
hashCode() |
boolean |
isDepthTest()
Indicates whether shape depth-testing is enabled.
|
boolean |
isDrawInterior()
Indicates whether shape interiors are enabled.
|
boolean |
isDrawOutline()
Indicates whether shape outlines are enabled.
|
boolean |
isDrawVerticals()
Indicates whether shape vertical outlines are enabled.
|
boolean |
isEnableLighting()
Sets whether shape lighting is enabled.
|
ShapeAttributes |
set(ShapeAttributes attributes) |
ShapeAttributes |
setDepthTest(boolean enable)
Sets whether to enable shape depth-testing.
|
ShapeAttributes |
setDrawInterior(boolean enable)
Sets whether to enable shape interiors.
|
ShapeAttributes |
setDrawOutline(boolean enable)
Sets whether to enable shape outlines.
|
ShapeAttributes |
setDrawVerticals(boolean enable)
Sets whether to enable shape vertical outlines.
|
ShapeAttributes |
setEnableLighting(boolean enable)
Sets whether to enable shape lighting.
|
ShapeAttributes |
setInteriorColor(Color color)
Sets shape interior color and opacity.
|
ShapeAttributes |
setInteriorImageSource(ImageSource imageSource)
Sets the image source to apply to shape interiors.
|
ShapeAttributes |
setOutlineColor(Color color)
Sets shape outline color and opacity.
|
ShapeAttributes |
setOutlineImageSource(ImageSource imageSource)
Sets the image source to apply to shape outlines.
|
ShapeAttributes |
setOutlineWidth(float lineWidth)
Sets shape outline width.
|
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 enable)
enable
- true to enable shape interiors, and false otherwisepublic boolean isDrawOutline()
public ShapeAttributes setDrawOutline(boolean enable)
enable
- true to enable shape outlines, and false otherwisepublic boolean isDrawVerticals()
public ShapeAttributes setDrawVerticals(boolean enable)
enable
- true to enable shape vertical outlines, and false otherwisepublic boolean isDepthTest()
public ShapeAttributes setDepthTest(boolean enable)
enable
- true to enable shape depth-testing, and false otherwisepublic boolean isEnableLighting()
public ShapeAttributes setEnableLighting(boolean enable)
enable
- true to enable shape lighting, and false otherwisepublic Color getInteriorColor()
public ShapeAttributes setInteriorColor(Color color)
color
- the new RGBA color to use for shape interiorsjava.lang.IllegalArgumentException
- If the color is nullpublic Color getOutlineColor()
public ShapeAttributes setOutlineColor(Color color)
color
- the new RGBA color to use for shape outlinesjava.lang.IllegalArgumentException
- If the color is nullpublic float getOutlineWidth()
public ShapeAttributes setOutlineWidth(float lineWidth)
lineWidth
- the new line width, in screen pixelspublic ImageSource getInteriorImageSource()
public ShapeAttributes setInteriorImageSource(ImageSource imageSource)
imageSource
- a reference to the new interior image source; may be nullpublic ImageSource getOutlineImageSource()
public ShapeAttributes setOutlineImageSource(ImageSource imageSource)
ImageSource.fromLineStipple(int, short)
.imageSource
- a reference to the new outline image source; may be null