Drawing Ellipses

Published

The following sections cover the constructor and functions of the EllipsePrinter class.

Links

EllipsePrinter()

This constructor creates a new, reusable EllipsePrinter.

The following example shows that you do not need to create a new instance of the EllipsePrinter class for every ellipse that you print.

setWidth()

This function sets the width, in tiles, of the ellipse that the EllipsePrinter will print.

setHeight()

This function sets the height, in tiles, of the ellipse that the EllipsePrinter will print.

print(TileGrid, Point)

This function prints an ellipse on a TileGrid. The point given is the center point/tile of the ellipse.

printFilled(TileGrid, Point)

This function prints a filled ellipse on a TileGrid. The point given is the center point/tile of the ellipse.

setPrintChar(int)

This function sets the character to display on the tiles when printing an ellipse.