Package app.media
Class RectangleShape
java.lang.Object
app.media.Media
app.media.GenericShape
app.media.RectangleShape
- All Implemented Interfaces:
Serializable
An implementation of GenericShape representing a rectangle
- See Also:
-
Property Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionRectangleShape
(javafx.geometry.Point2D p1, javafx.geometry.Point2D p2, String colour) Initializes a rectangle with the following settings -
Method Summary
Methods inherited from class app.media.GenericShape
getColour, getP1, getP2, setColour, setP1, setP2
Methods inherited from class app.media.Media
angleProperty, getAngle, getHeight, getID, getName, getTags, getWidth, getX, getY, getZindex, heightProperty, isWithin, nameProperty, setAngle, setHeight, setID, setName, setTags, setWidth, setX, setY, setZindex, widthProperty, xProperty, yProperty, zIndexProperty
-
Constructor Details
-
RectangleShape
Initializes a rectangle with the following settings- Parameters:
p1
- First corner of the rectanglep2
- Opposite corner of the rectanglecolour
- The shape's color
-
-
Method Details