Rectangle

A rectangle parallel to the x and y axes.

Features

XML Element XML Type Java Class
primitive rectangle uk.ac.ic.doc.scenebeans.Rectangle

Properties

Name Type Default Value Getter Method Setter Method Description
filled boolean true isFilled setFilled Whether the rectangle is drawn filled (true) or only as an outline (false).
x double 0.0 getX setX The x coordinate of the rectangle's top-left corner.
y double 0.0 getY setY The y coordinate of the rectangle's top-left corner.
width double 1.0 getWidth setWidth The width of the rectangle.
height double 1.0 getHeight setHeight The height of the rectangle.