Interface TextureDrawingTools
-
- All Known Implementing Classes:
BufferedImageTextureDrawingTools
,G2DTextureDrawingTools
public interface TextureDrawingTools
Interface for the sprite drawing tools.- Author:
- Pierre Lando
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clear(Color color)
Clear the sprite with the given color.void
draw(javax.swing.Icon icon, int x, int y)
Draw the givenIcon
at the given position.void
draw(TextEntity textEntity, int x, int y)
Draw the given text at the given position with the given appearance.void
drawCircle(int x, int y, int diameter, Appearance appearance)
Draw a circle.void
drawPlus(int size, Appearance appearance)
Draw a plus.void
drawPolyline(int[] coordinates, Appearance appearance)
Draw a polyline.void
fillDisc(int x, int y, int diameter, Color color)
Fill a disc of given diameter, centered at (x, y) with the given appearance.void
fillPolygon(int[] coordinates, Appearance appearance)
Fill a polygon.
-
-
-
Method Detail
-
drawPlus
void drawPlus(int size, Appearance appearance)
Draw a plus.- Parameters:
size
- the plus size.appearance
- the used appearance.
-
drawPolyline
void drawPolyline(int[] coordinates, Appearance appearance)
Draw a polyline.- Parameters:
coordinates
- polyline's point coordinates.appearance
- the used appearance.
-
fillPolygon
void fillPolygon(int[] coordinates, Appearance appearance)
Fill a polygon.- Parameters:
coordinates
- polygon's point coordinates.appearance
- the used appearance.
-
drawCircle
void drawCircle(int x, int y, int diameter, Appearance appearance)
Draw a circle.- Parameters:
x
- the x coordinate of the circle center.y
- the y coordinate of the circle center.diameter
- the circle diameter.appearance
- the circle appearance.
-
fillDisc
void fillDisc(int x, int y, int diameter, Color color)
Fill a disc of given diameter, centered at (x, y) with the given appearance.- Parameters:
x
- the x coordinate of the disc center.y
- the y coordinate of the disc center.diameter
- the disc diameter.color
- the disc color.
-
draw
void draw(TextEntity textEntity, int x, int y)
Draw the given text at the given position with the given appearance.- Parameters:
textEntity
- the text entity to draw.x
- the x text position.y
- the y text position.
-
draw
void draw(javax.swing.Icon icon, int x, int y)
Draw the givenIcon
at the given position.- Parameters:
icon
- the given icon to paint.x
- the x text position.y
- the y text position.
-
clear
void clear(Color color)
Clear the sprite with the given color.- Parameters:
color
- the new background color.
-
-