Package app.media
Class PenStroke
java.lang.Object
app.media.Media
app.media.PenStroke
- All Implemented Interfaces:
Serializable
Entity class for a pen stroke.
A pen stroke is defined by a starting position, a thickness, a colour, and a list of ending positions for the line segments which make up the stroke.
- See Also:
-
Property Summary
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
Data for a single line segment in a stroke. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
double
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, toString, widthProperty, xProperty, yProperty, zIndexProperty
-
Constructor Details
-
PenStroke
-
-
Method Details
-
addSegment
-
getSegments
-
getThickness
public double getThickness() -
getColour
-