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

org.rr0.is.presentation.view.report.applet.draw.DrawShape
  |
  +--org.rr0.is.presentation.view.report.applet.draw.OvalShape
Direct Known Subclasses:
CircleShape

public class OvalShape
extends DrawShape

Author:
Jerôme Beau
Version: 22 sept. 2003 21:49:45

Field Summary
 private intcenterX
           
 private intcenterY
           
 private PolygonShapepolygonVersion
           

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

Constructor Summary
OvalShape(Component component)
           

Method Summary
 private voidcircle(Graphics g, int r)
          Bresenham circle algorithm.
 private voidcirclePoint(Graphics g, int dx, int dy)
           
 protected voidcompute()
           
 intgetCenterX()
           
 intgetCenterY()
           
 protected StringgetType()
           
 voidpaint(Graphics g, Color someColor, Rectangle bounds)
           
 private voidpoint(Graphics g, int x, int y)
           
 voidsetCenterX(int centerX)
           
 voidsetCenterY(int centerY)
           
 voidsetHeight(int height)
           
 voidsetWidth(int width)
           
 voidsetX(int x)
           
 voidsetY(int y)
           
 StringtoString()
           

Methods inherited from class org.rr0.is.presentation.view.report.applet.draw.DrawShape
clone, getBounds, getColor, getHeight, getSize, getTransparency, getWidth, getX, getY, isSelected, paint, paint, paintSelection, scale, scaleHeight, scaleWidth, setAngle, setColor, setHaloScale, setLocation, setSelected, setTransparency, toUUDF

Field Detail

centerX

private int centerX

centerY

private int centerY

polygonVersion

private PolygonShape polygonVersion
Constructor Detail

OvalShape

public OvalShape(Component component)
Method Detail

circle

private void circle(Graphics g, int r)
Bresenham circle algorithm.
Parameters:
g
r

circlePoint

private void circlePoint(Graphics g, int dx, int dy)

compute

protected void compute()

getCenterX

public int getCenterX()

getCenterY

public int getCenterY()

getType

protected String getType()

paint

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

point

private void point(Graphics g, int x, int y)

setCenterX

public void setCenterX(int centerX)

setCenterY

public void setCenterY(int centerY)

setHeight

public void setHeight(int height)

setWidth

public void setWidth(int width)

setX

public void setX(int x)

setY

public void setY(int y)

toString

public String toString()

Association Links

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