public class PolyShape extends java.lang.Object implements IPolyShape
Constructor and Description |
---|
PolyShape()
Instantiates a new
PolyShape instance. |
PolyShape(IPolyShape original)
Instantiates a new
PolyShape instance by copying from the specified original. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object anObject)
Tests for equality between two polylines.
|
java.util.List<java.awt.geom.Point2D> |
getAbsolutePoints(double x,
double y) |
java.util.List<java.awt.geom.Point2D> |
getAbsolutePoints(java.awt.geom.Point2D origin) |
java.util.List<java.awt.geom.Point2D> |
getPoints()
Gets all points of a polyline.
|
int |
hashCode()
Computes a hash code for this polyline.
|
public PolyShape()
PolyShape
instance.public PolyShape(IPolyShape original)
PolyShape
instance by copying from the specified original.original
- The poly line to be copied.public java.util.List<java.awt.geom.Point2D> getPoints()
IPolyShape
IMapObject
.
To get a Path2D
object, you should use Map
getPoints
in interface IPolyShape
public java.util.List<java.awt.geom.Point2D> getAbsolutePoints(double x, double y)
getAbsolutePoints
in interface IPolyShape
public java.util.List<java.awt.geom.Point2D> getAbsolutePoints(java.awt.geom.Point2D origin)
getAbsolutePoints
in interface IPolyShape
public boolean equals(java.lang.Object anObject)
IPolyShape
equals
in interface IPolyShape
equals
in class java.lang.Object
anObject
- The polyline to test equality forfalse
if anObject
is not a polylinepublic int hashCode()
IPolyShape
hashCode
in interface IPolyShape
hashCode
in class java.lang.Object