org.rr0.is.presentation.view.report.applet.draw
Class PolygonShape

org.rr0.is.presentation.view.report.applet.draw.DrawShape
  |
  +--org.rr0.is.presentation.view.report.applet.draw.PolygonShape

public class PolygonShape
extends DrawShape

Author:
Jerôme Beau
Version: 24 oct. 2003 19:34:37

Field Summary
 protected intnPoints
           
 protected final static doubleTWO_PI
           
 protected int[]xPoints
           
 protected int[]yPoints
           

Fields inherited from class org.rr0.is.presentation.view.report.applet.draw.DrawShape
angle, bounds, component, CORNER_SIZE, HALF_CORNER_SIZE, selected

Constructor Summary
PolygonShape(Component component)
           

Method Summary
 Objectclone()
           
 protected voidcompute()
           
 voidpaint(Graphics g, Rectangle bounds)
           
 voidpaint(Graphics g, Color color, Rectangle bounds)
           
 voidscaleHeight(double heightFactor)
           
 voidscaleWidth(double widthRatio)
           
 voidsetAngle(double angle)
           
 voidsetnPoints(int nPoints)
           
 voidsetPoints(int[] xPoints, int[] yPoints)
           
 StringtoSVGPathData()
           
 StringtoUUDF()
           

Methods inherited from class org.rr0.is.presentation.view.report.applet.draw.DrawShape
getBounds, getColor, getHeight, getSize, getTransparency, getWidth, getX, getY, isSelected, paint, paintSelection, scale, setColor, setHaloScale, setHeight, setLocation, setSelected, setTransparency, setWidth, setX, setY

Field Detail

nPoints

protected int nPoints

TWO_PI

protected final static double TWO_PI

xPoints

protected int[] xPoints

yPoints

protected int[] yPoints
Constructor Detail

PolygonShape

public PolygonShape(Component component)
Method Detail

clone

public Object clone()
throws java.lang.CloneNotSupportedException

compute

protected void compute()

paint

public void paint(Graphics g, Rectangle bounds)

paint

public void paint(Graphics g, Color color, Rectangle bounds)

scaleHeight

public void scaleHeight(double heightFactor)

scaleWidth

public void scaleWidth(double widthRatio)

setAngle

public void setAngle(double angle)

setnPoints

public void setnPoints(int nPoints)

setPoints

public void setPoints(int[] xPoints, int[] yPoints)

toSVGPathData

public String toSVGPathData()

toUUDF

public String toUUDF()