Class GenericPolygon
- java.lang.Object
-
- com.actelion.research.gui.generic.GenericPolygon
-
- All Implemented Interfaces:
GenericShape
public class GenericPolygon extends java.lang.Object implements GenericShape
-
-
Constructor Summary
Constructors Constructor Description GenericPolygon()
GenericPolygon(int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPoint(double x, double y)
void
clear()
boolean
contains(double x, double y)
double[]
getPoints()
int
getSize()
double
getX(int i)
double
getY(int i)
void
removeLastPoint()
-
-
-
Method Detail
-
addPoint
public void addPoint(double x, double y)
-
removeLastPoint
public void removeLastPoint()
-
clear
public void clear()
-
contains
public boolean contains(double x, double y)
- Specified by:
contains
in interfaceGenericShape
-
getSize
public int getSize()
-
getX
public double getX(int i)
-
getY
public double getY(int i)
-
getPoints
public double[] getPoints()
-
-