Class AwtShapeElement
java.lang.Object
com.ardor3d.extension.terrain.providers.awt.AbstractAwtElement
com.ardor3d.extension.terrain.providers.awt.AwtShapeElement
-
Field Summary
Modifier and TypeFieldDescriptionprotected Color
protected boolean
protected Vector4
protected Color
protected boolean
protected Shape
protected final Map
<Integer, BasicStroke> protected float
Fields inherited from class com.ardor3d.extension.terrain.providers.awt.AbstractAwtElement
_awtBounds, _compositeOverride, _listener, _transform, hints
-
Constructor Summary
ConstructorDescriptionAwtShapeElement
(Shape shape) AwtShapeElement
(Shape shape, ReadOnlyTransform transform) AwtShapeElement
(Shape shape, ReadOnlyTransform transform, Composite compositeOverride) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
drawTo
(BufferedImage image, ReadOnlyTransform localTransform, int clipmapLevel) getShape()
float
boolean
isFilled()
boolean
void
setFillColor
(Color color) void
setFilled
(boolean filled) void
setMargin
(double outline) void
setMargin
(double left, double right, double top, double bottom) void
void
setOutlineColor
(Color color) void
setOutlined
(boolean outlined) void
void
setStrokeWidth
(float width) void
Methods inherited from class com.ardor3d.extension.terrain.providers.awt.AbstractAwtElement
getBounds, getCompositeOverride, getHints, getTransform, makeAlphaComposite, setCompositeOverride, setTransform, setUpdateListener, updateBounds
-
Field Details
-
_shape
-
_filled
protected boolean _filled -
_fillColor
-
_outlined
protected boolean _outlined -
_outlineColor
-
_strokeWidth
protected float _strokeWidth -
_margin
-
_strokes
-
-
Constructor Details
-
AwtShapeElement
-
AwtShapeElement
-
AwtShapeElement
-
-
Method Details
-
getShape
-
setShape
-
isFilled
public boolean isFilled() -
setFilled
public void setFilled(boolean filled) -
getFillColor
-
setFillColor
-
isOutlined
public boolean isOutlined() -
setOutlined
public void setOutlined(boolean outlined) -
getOutlineColor
-
setOutlineColor
-
updateBoundsFromElement
public void updateBoundsFromElement()- Specified by:
updateBoundsFromElement
in classAbstractAwtElement
-
drawTo
- Specified by:
drawTo
in classAbstractAwtElement
-
getMargin
-
setMargin
-
setMargin
public void setMargin(double left, double right, double top, double bottom) -
setMargin
public void setMargin(double outline) -
setStrokeWidth
public void setStrokeWidth(float width) -
getStrokeWidth
public float getStrokeWidth() -
clearStrokes
protected void clearStrokes()
-