jewl.canvas
Class CircleObject

java.lang.Object
  extended byjewl.canvas.DrawingObject
      extended byjewl.canvas.OvalObject
          extended byjewl.canvas.CircleObject
All Implemented Interfaces:
java.io.Serializable

public class CircleObject
extends OvalObject

A circle drawn on a canvas. The interior of the circle can be filled with a specified colour. The perimeter of the circle will be drawn using the current pen.

See Also:
Serialized Form

Constructor Summary
CircleObject(int centreX, int centreY, int radius)
          Construct a transparent circle from a centre and radius.
CircleObject(int centreX, int centreY, int radius, java.awt.Color colour)
          Construct a filled circle from a centre and radius.
CircleObject(java.awt.Point centre, int radius)
          Construct a transparent circle from a centre and radius.
CircleObject(java.awt.Point centre, int radius, java.awt.Color colour)
          Construct a filled circle from a centre and radius.
 
Methods inherited from class jewl.canvas.OvalObject
draw
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CircleObject

public CircleObject(int centreX,
                    int centreY,
                    int radius,
                    java.awt.Color colour)
Construct a filled circle from a centre and radius.

Parameters:
centreX - the X coordinate of the centre of the circle.
centreY - the Y coordinate of the centre of the circle.
radius - the radius of the circle.
colour - the colour to fill the oval with, or null if the oval should be left unfilled. Although this is specified as a java.awt.Color, you can use jewl.Color or jewl.Colour instead.
See Also:
Color, Colour

CircleObject

public CircleObject(java.awt.Point centre,
                    int radius,
                    java.awt.Color colour)
Construct a filled circle from a centre and radius.

Parameters:
centre - the centre point of the circle. Although this is specified as a java.awt.Point, you can use jewl.Point instead.
radius - the radius of the circle.
colour - the colour to fill the oval with, or null if the oval should be left unfilled. Although this is specified as a java.awt.Color, you can use jewl.Color or jewl.Colour instead.
See Also:
Color, Colour, Point

CircleObject

public CircleObject(int centreX,
                    int centreY,
                    int radius)
Construct a transparent circle from a centre and radius.

Parameters:
centreX - the X coordinate of the centre of the circle.
centreY - the Y coordinate of the centre of the circle.
radius - the radius of the circle.

CircleObject

public CircleObject(java.awt.Point centre,
                    int radius)
Construct a transparent circle from a centre and radius.

Parameters:
centre - the centre point of the circle.
radius - the radius of the circle.