org.minueto.image
Class MinuetoCircle
java.lang.Object
org.minueto.image.MinuetoImage
org.minueto.image.MinuetoCircle
- All Implemented Interfaces:
- java.lang.Cloneable, MinuetoDrawingSurface
public class MinuetoCircle
- extends MinuetoImage
The MinuetoCircle class allows you to build the image of a circle or an ellipse.
Since MinuetoCircle extends MinuetoImage, all the
important image manipulation fonctionnality (such as draw, drop, scale, etc)
are available.
- Since:
- Minueto 0.4
- See Also:
MinuetoImage
|
Constructor Summary |
MinuetoCircle(int sizeX,
int sizeY,
MinuetoColor color,
boolean fill)
Creates a MinuetoCircle image of a circle (or an ellipse) of the specified
color and size. |
MinuetoCircle(int radius,
MinuetoColor color,
boolean fill)
Creates a MinuetoCircle image of a circle (or an ellipse) of the specified
color and radius. |
| Methods inherited from class org.minueto.image.MinuetoImage |
clear, clear, clone, crop, draw, drawCircle, drawLine, drawPolygon, drawRectangle, flip, getHeight, getPixel, getWidth, mask, rotate, save, scale, setPixel |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MinuetoCircle
public MinuetoCircle(int sizeX,
int sizeY,
MinuetoColor color,
boolean fill)
- Creates a
MinuetoCircle image of a circle (or an ellipse) of the specified
color and size.
- Parameters:
sizeX - int denoting the width of the circle.sizeY - int denoting the height of the circle.color - MinuetoColor denoting the color of the circle.fill - boolean denoting if the circle should be full (true) or
transparent (false).
- Throws:
MinuetoZeroNegativeException - if the supplied circle size is invalid.
MinuetoCircle
public MinuetoCircle(int radius,
MinuetoColor color,
boolean fill)
- Creates a
MinuetoCircle image of a circle (or an ellipse) of the specified
color and radius.
- Parameters:
radius - int denoting the radius of the circle.color - MinuetoColor denoting the color of the circle.fill - boolean denothing if the circle should be full (true) or
transparent (false).
- Throws:
MinuetoZeroNegativeException - if the supplied radius is invalid.