com.threerings.tudey.shape.config
Class ShapeConfig.Rectangle
java.lang.Object
com.threerings.util.DeepObject
com.threerings.tudey.shape.config.ShapeConfig
com.threerings.tudey.shape.config.ShapeConfig.Rectangle
- All Implemented Interfaces:
- Exportable, Streamable, Copyable, Cloneable
- Enclosing class:
- ShapeConfig
public static class ShapeConfig.Rectangle
- extends ShapeConfig
A rectangle.
| Nested classes/interfaces inherited from class com.threerings.tudey.shape.config.ShapeConfig |
ShapeConfig.Capsule, ShapeConfig.Circle, ShapeConfig.Compound, ShapeConfig.Global, ShapeConfig.None, ShapeConfig.Point, ShapeConfig.Polygon, ShapeConfig.Rectangle, ShapeConfig.Segment, ShapeConfig.TransformedShape, ShapeConfig.Vertex |
|
Field Summary |
float |
height
The height of the rectangle. |
float |
width
The width of the rectangle. |
|
Method Summary |
protected Shape |
createShape()
Creates the untransformed shape corresponding to this config. |
protected void |
draw(boolean outline)
Draws this shape in immediate mode. |
width
@Editable(min=0.0,
step=0.01,
hgroup="r")
public float width
- The width of the rectangle.
height
@Editable(min=0.0,
step=0.01,
hgroup="r")
public float height
- The height of the rectangle.
ShapeConfig.Rectangle
public ShapeConfig.Rectangle()
createShape
protected Shape createShape()
- Description copied from class:
ShapeConfig
- Creates the untransformed shape corresponding to this config.
- Specified by:
createShape in class ShapeConfig
draw
protected void draw(boolean outline)
- Description copied from class:
ShapeConfig
- Draws this shape in immediate mode.
- Specified by:
draw in class ShapeConfig
- Parameters:
outline - if true, draw the outline of the shape; otherwise, draw the solid form.