com.alee.graphics.shapes
Class StarPolygon

java.lang.Object
  extended by java.awt.Polygon
      extended by com.alee.graphics.shapes.StarPolygon
All Implemented Interfaces:
java.awt.Shape, java.io.Serializable

public class StarPolygon
extends java.awt.Polygon

User: mgarin Date: 17.06.11 Time: 16:17

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.awt.Polygon
bounds, npoints, xpoints, ypoints
 
Constructor Summary
StarPolygon(int x, int y, int r, int innerR, int vertexCount)
           
StarPolygon(int x, int y, int r, int innerR, int vertexCount, double startAngle)
           
 
Method Summary
protected static int[] getXCoordinates(int x, int y, int r, int innerR, int vertexCount, double startAngle)
           
protected static int[] getYCoordinates(int x, int y, int r, int innerR, int vertexCount, double startAngle)
           
 
Methods inherited from class java.awt.Polygon
addPoint, contains, contains, contains, contains, contains, contains, getBoundingBox, getBounds, getBounds2D, getPathIterator, getPathIterator, inside, intersects, intersects, invalidate, reset, translate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StarPolygon

public StarPolygon(int x,
                   int y,
                   int r,
                   int innerR,
                   int vertexCount)

StarPolygon

public StarPolygon(int x,
                   int y,
                   int r,
                   int innerR,
                   int vertexCount,
                   double startAngle)
Method Detail

getXCoordinates

protected static int[] getXCoordinates(int x,
                                       int y,
                                       int r,
                                       int innerR,
                                       int vertexCount,
                                       double startAngle)

getYCoordinates

protected static int[] getYCoordinates(int x,
                                       int y,
                                       int r,
                                       int innerR,
                                       int vertexCount,
                                       double startAngle)