Class LineStringRenderer
java.lang.Object
com.kheops.jmap.client.graphics2D.LineStringRenderer
- All Implemented Interfaces:
Shape
A class used to render line strings as an AWT shape.
-
Constructor Summary
ConstructorDescriptionLineStringRenderer
(K2DTransform transform) Creates a new line string renderer using the specified transformation matrix. -
Method Summary
Modifier and TypeMethodDescriptionboolean
contains
(double x, double y) boolean
contains
(double x, double y, double w, double h) boolean
boolean
getPathIterator
(AffineTransform at, double flatness) boolean
intersects
(double x, double y, double w, double h) boolean
void
setLineString
(LineString lineString) Sets the line string to be rendered.
-
Constructor Details
-
LineStringRenderer
Creates a new line string renderer using the specified transformation matrix.- Parameters:
transform
- the transformation matrix to use.
-
-
Method Details
-
setLineString
Sets the line string to be rendered.- Parameters:
lineString
- the line string to be rendered.
-
contains
public boolean contains(double x, double y) -
contains
public boolean contains(double x, double y, double w, double h) -
intersects
public boolean intersects(double x, double y, double w, double h) - Specified by:
intersects
in interfaceShape
-
getBounds
-
contains
-
getBounds2D
- Specified by:
getBounds2D
in interfaceShape
-
contains
-
intersects
- Specified by:
intersects
in interfaceShape
-
getPathIterator
- Specified by:
getPathIterator
in interfaceShape
-
getPathIterator
- Specified by:
getPathIterator
in interfaceShape
-