|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjewl.canvas.DrawingObject
jewl.canvas.OvalObject
jewl.canvas.CircleObject
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.
| 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 |
public CircleObject(int centreX,
int centreY,
int radius,
java.awt.Color colour)
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.Color,
Colour
public CircleObject(java.awt.Point centre,
int radius,
java.awt.Color colour)
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.Color,
Colour,
Point
public CircleObject(int centreX,
int centreY,
int radius)
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.
public CircleObject(java.awt.Point centre,
int radius)
centre - the centre point of the circle.radius - the radius of the circle.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||