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 voidaddPoint(double x, double y)voidclear()booleancontains(double x, double y)double[]getPoints()intgetSize()doublegetX(int i)doublegetY(int i)voidremoveLastPoint()
-
-
-
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:
containsin interfaceGenericShape
-
getSize
public int getSize()
-
getX
public double getX(int i)
-
getY
public double getY(int i)
-
getPoints
public double[] getPoints()
-
-