|
ImageRepDrawer arrow(int x1, int y1, int x2, int y2) |
|
Parameters |
x1 |
The x-part of the first coordinate of the arrow.
|
y1 |
The y-part of the first coordinate of the arrow.
|
x2 |
The x-part of the second coordinate of the arrow.
|
y2 |
The y-part of the second coordinate of the arrow.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer arrow(int x1, int y1, int x2, int y2, int arrowStretch) |
|
Parameters |
x1 |
The x-part of the first coordinate of the arrow.
|
y1 |
The y-part of the first coordinate of the arrow.
|
x2 |
The x-part of the second coordinate of the arrow.
|
y2 |
The y-part of the second coordinate of the arrow.
|
arrowStretch |
The size of the arrow head.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer arrow(int x1, int y1, int x2, int y2, int arrowStretch, int strokeSize) |
|
Parameters |
x1 |
The x-part of the first coordinate of the arrow.
|
y1 |
The y-part of the first coordinate of the arrow.
|
x2 |
The x-part of the second coordinate of the arrow.
|
y2 |
The y-part of the second coordinate of the arrow.
|
arrowStretch |
The size of the arrow head.
|
strokeSize |
The size of the stroke.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer arrow(int x1, int y1, int x2, int y2, int arrowStretch, int strokeSize, Color strokeColor) |
|
Parameters |
x1 |
The x-part of the first coordinate of the arrow.
|
y1 |
The y-part of the first coordinate of the arrow.
|
x2 |
The x-part of the second coordinate of the arrow.
|
y2 |
The y-part of the second coordinate of the arrow.
|
arrowStretch |
The size of the arrow head.
|
strokeSize |
The size of the stroke.
|
strokeColor |
The stroke color.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer arrow(int x1, int y1, int x2, int y2, int arrowStretch, int strokeSize, int r, int g, int b) |
|
Parameters |
x1 |
The x-part of the first coordinate of the arrow.
|
y1 |
The y-part of the first coordinate of the arrow.
|
x2 |
The x-part of the second coordinate of the arrow.
|
y2 |
The y-part of the second coordinate of the arrow.
|
arrowStretch |
The size of the arrow head.
|
strokeSize |
The size of the stroke.
|
r |
The red part of the stroke color.
|
g |
The green part of the stroke color.
|
b |
The blue part of the stroke color.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer arrow(int x1, int y1, int x2, int y2, int arrowStretch, int strokeSize, int r, int g, int b, int a) |
|
Parameters |
x1 |
The x-part of the first coordinate of the arrow.
|
y1 |
The y-part of the first coordinate of the arrow.
|
x2 |
The x-part of the second coordinate of the arrow.
|
y2 |
The y-part of the second coordinate of the arrow.
|
arrowStretch |
The size of the arrow head.
|
strokeSize |
The size of the stroke.
|
r |
The red part of the stroke color.
|
g |
The green part of the stroke color.
|
b |
The blue part of the stroke color.
|
a |
The alpha part of the stroke color.
|
Returns | The ImageRepDrawer object for method concatination. |
|
BufferedImage asBufferedImage() |
|
Returns | This image as BufferedImage. |
|
ImageRepDrawer circle(int x, int y, int r) |
|
Parameters |
x |
The x-coordinate of the center of the circle.
|
y |
The y-coordinate of the center of the circle.
|
r |
The radius of the circle.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer circle(int x, int y, int r, Color color) |
|
Parameters |
x |
The x-coordinate of the center of the circle.
|
y |
The y-coordinate of the center of the circle.
|
r |
The radius of the circle.
|
color |
The color of the circle.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer cross(int x, int y) |
|
Parameters |
x |
The x-coordinate of the cross to draw.
|
y |
The y-coordinate of the cross to draw.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer cross(int x, int y, int size) |
|
Parameters |
x |
The x-coordinate of the cross to draw.
|
y |
The y-coordinate of the cross to draw.
|
size |
The size of the cross to draw.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer draw(Object drawFunction) |
|
Parameters |
drawFunction |
A lambda object. The lambda object takes a java.awt.Graphics2D object as input which can be used to draw onto the image.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer erase(int x, int y, int w, int h) |
|
Parameters |
x |
The x-coordinate of the area that should get erased.
|
y |
The y-coordinate of the area that should get erased.
|
w |
The width of the area that should get erased.
|
h |
The height of the area that should get erased.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer fillRectangle(int x, int y, int w, int h) |
|
Parameters |
x |
The x-coordinate of the rectangle to draw.
|
y |
The y-coordinate of the rectangle to draw.
|
w |
The width of the rectangle to draw.
|
h |
The height of the rectangle to draw.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer fillRectangle(int x, int y, int w, int h, Color color) |
|
Parameters |
x |
The x-coordinate of the rectangle to draw.
|
y |
The y-coordinate of the rectangle to draw.
|
w |
The width of the rectangle to draw.
|
h |
The height of the rectangle to draw.
|
color |
The color to use to fill the rectangle.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer image(ImageRep imgToDraw, int x, int y) |
|
Parameters |
imgToDraw |
The image to draw.
|
x |
The x-coordinate where the image should get drawn.
|
y |
The y-coordinate where the image should get drawn.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer image(Image img, int x, int y) |
|
Parameters |
img |
The image to draw.
|
x |
The x-coordinate where the image should get drawn.
|
y |
The y-coordinate where the image should get drawn.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer line(int x1, int y1, int x2, int y2) |
|
Parameters |
x1 |
The x-part of the first coordinate of the line to draw.
|
y1 |
The y-part of the first coordinate of the line to draw.
|
x2 |
The x-part of the second coordinate of the line to draw.
|
y2 |
The y-part of the second coordinate of the line to draw.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer line(int x1, int y1, int x2, int y2, Color strokeColor) |
|
Parameters |
x1 |
The x-part of the first coordinate of the line to draw.
|
y1 |
The y-part of the first coordinate of the line to draw.
|
x2 |
The x-part of the second coordinate of the line to draw.
|
y2 |
The y-part of the second coordinate of the line to draw.
|
strokeColor |
The color that should get used for stroke drawing.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer line(int x1, int y1, int x2, int y2, int strokeSize) |
|
Parameters |
x1 |
The x-part of the first coordinate of the line to draw.
|
y1 |
The y-part of the first coordinate of the line to draw.
|
x2 |
The x-part of the second coordinate of the line to draw.
|
y2 |
The y-part of the second coordinate of the line to draw.
|
strokeSize |
The stroke thickness.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer line(int x1, int y1, int x2, int y2, int strokeSize, Color strokeColor) |
|
Parameters |
x1 |
The x-part of the first coordinate of the line to draw.
|
y1 |
The y-part of the first coordinate of the line to draw.
|
x2 |
The x-part of the second coordinate of the line to draw.
|
y2 |
The y-part of the second coordinate of the line to draw.
|
strokeSize |
The line thickness of the line to draw.
|
strokeColor |
The color to use for line drawing.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer line(int x1, int y1, int x2, int y2, int r, int g, int b) |
|
Parameters |
x1 |
The x-part of the first coordinate of the line to draw.
|
y1 |
The y-part of the first coordinate of the line to draw.
|
x2 |
The x-part of the second coordinate of the line to draw.
|
y2 |
The y-part of the second coordinate of the line to draw.
|
r |
The red value of the color that should get used for stroke drawing.
|
g |
The green value of the color that should get used for stroke drawing.
|
b |
The blue value of the color that should get used for stroke drawing.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer line(int x1, int y1, int x2, int y2, int r, int g, int b, int a) |
|
Parameters |
x1 |
The x-part of the first coordinate of the line to draw.
|
y1 |
The y-part of the first coordinate of the line to draw.
|
x2 |
The x-part of the second coordinate of the line to draw.
|
y2 |
The y-part of the second coordinate of the line to draw.
|
r |
The red value of the color that should get used for stroke drawing.
|
g |
The green value of the color that should get used for stroke drawing.
|
b |
The blue value of the color that should get used for stroke drawing.
|
a |
The alpha value of the color that should get used for stroke drawing.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer line(int x1, int y1, int x2, int y2, int strokeSize, int r, int g, int b, int a) |
|
Parameters |
x1 |
The x-part of the first coordinate of the line to draw.
|
y1 |
The y-part of the first coordinate of the line to draw.
|
x2 |
The x-part of the second coordinate of the line to draw.
|
y2 |
The y-part of the second coordinate of the line to draw.
|
strokeSize |
The line thickness of the line to draw.
|
r |
The red value of the color to use for line drawing.
|
g |
The green value of the color to use for line drawing.
|
b |
The blue value of the color to use for line drawing.
|
a |
The alpha value of the color to use for line drawing.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer pixel(int x, int y) |
|
Parameters |
x |
The x-coordinate of the pixel that should get colored.
|
y |
The y-coordinate of the pixel that should get colored.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer pixel(int x, int y, java.awt.Color color) |
|
Parameters |
x |
The x-coordinate of the pixel that should get colored.
|
y |
The y-coordinate of the pixel that should get colored.
|
c |
The color object that should get used to color that particular pixel.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer pixel(int x, int y, int r, int g, int b) |
|
Parameters |
x |
The x-coordinate of the pixel that should get colored.
|
y |
The y-coordinate of the pixel that should get colored.
|
r |
The red value of the color that should get used to color a particular pixel.
|
g |
The green value of the color that should get used to color a particular pixel.
|
b |
The blue value of the color that should get used to color a particular pixel.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer pixel(int x, int y, int r, int g, int b, int a) |
|
Parameters |
x |
The x-coordinate of the pixel that should get colored.
|
y |
The y-coordinate of the pixel that should get colored.
|
r |
The red value of the color that should get used to color a particular pixel.
|
g |
The green value of the color that should get used to color a particular pixel.
|
b |
The blue value of the color that should get used to color a particular pixel.
|
a |
The alpha value of the color that should get used to color a particular pixel.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer rectangle(int x, int y, int w, int h) |
|
Parameters |
x |
The x-coordinate where the rectangle should get drawn.
|
y |
The y-coordinate where the rectangle should get drawn.
|
w |
The width of the rectangle that should get drawn.
|
h |
The height of the rectangle that should get drawn.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer rectangle(int x, int y, int w, int h, int b) |
|
Parameters |
x |
The x-coordinate where the rectangle should get drawn.
|
y |
The y-coordinate where the rectangle should get drawn.
|
w |
The width of the rectangle that should get drawn.
|
h |
The height of the rectangle that should get drawn.
|
b |
The width of the stroke of the rectangle.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer rectangle(int x, int y, int w, int h, int b, Color strokeColor) |
|
Parameters |
x |
The x-coordinate where the rectangle should get drawn.
|
y |
The y-coordinate where the rectangle should get drawn.
|
w |
The width of the rectangle that should get drawn.
|
h |
The height of the rectangle that should get drawn.
|
b |
The width of the stroke of the rectangle.
|
strokeColor |
The color to use for the rectangle strokes.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer rectangle(int x, int y, int w, int h, int b, Color strokeColor, Color fillColor) |
|
Parameters |
x |
The x-coordinate where the rectangle should get drawn.
|
y |
The y-coordinate where the rectangle should get drawn.
|
w |
The width of the rectangle that should get drawn.
|
h |
The height of the rectangle that should get drawn.
|
b |
The width of the stroke of the rectangle.
|
strokeColor |
The color to use for the rectangle strokes.
|
fillColor |
The color to use to fill the rectangle.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer rectangle(int x, int y, int w, int h, int b, int strokeCap, Color strokeColor) |
|
Parameters |
x |
The x-coordinate where the rectangle should get drawn.
|
y |
The y-coordinate where the rectangle should get drawn.
|
w |
The width of the rectangle that should get drawn.
|
h |
The height of the rectangle that should get drawn.
|
b |
The width of the stroke of the rectangle.
|
strokeCap |
The stroke caps to use.
|
strokeColor |
The color to use for the rectangle strokes.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer rectangle(int x, int y, int w, int h, int b, int strokeCap, Color strokeColor, Color fillColor) |
|
Parameters |
x |
The x-coordinate where the rectangle should get drawn.
|
y |
The y-coordinate where the rectangle should get drawn.
|
w |
The width of the rectangle that should get drawn.
|
h |
The height of the rectangle that should get drawn.
|
b |
The width of the stroke of the rectangle.
|
strokeCap |
The stroke cap to use for rectangle drawing.
|
strokeColor |
The stroke color to use for rectangle drawing.
|
fillColor |
The color to use to fill the rectangle.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer rectangle(int x, int y, int w, int h, int b, int strokeCap, int rstroke, int gstroke, int bstroke, int rfill, int gfill, int bfill) |
|
Parameters |
x |
The x-coordinate where the rectangle should get drawn.
|
y |
The y-coordinate where the rectangle should get drawn.
|
w |
The width of the rectangle that should get drawn.
|
h |
The height of the rectangle that should get drawn.
|
b |
The width of the stroke of the rectangle.
|
strokeCap |
The stroke cap to use for rectangle drawing.
|
rstroke |
The red value of the color to use for the rectangle strokes.
|
gstroke |
The green value of the color to use for the rectangle strokes.
|
bstroke |
The blue value of the color to use for the rectangle strokes.
|
rfill |
The red value of the color to use to fill the rectangle.
|
gfill |
The green value of the color to use to fill the rectangle.
|
bfill |
The blue value of the color to use to fill the rectangle.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer rectangle(int x, int y, int w, int h, int b, int strokeCap, int rstroke, int gstroke, int bstroke, int astroke, int rfill, int gfill, int bfill, int afill) |
|
Parameters |
x |
The x-coordinate where the rectangle should get drawn.
|
y |
The y-coordinate where the rectangle should get drawn.
|
w |
The width of the rectangle that should get drawn.
|
h |
The height of the rectangle that should get drawn.
|
b |
The width of the stroke of the rectangle.
|
strokeCap |
The stroke cap to use for rectangle drawing.
|
rstroke |
The red value of the color to use for the rectangle strokes.
|
gstroke |
The green value of the color to use for the rectangle strokes.
|
bstroke |
The blue value of the color to use for the rectangle strokes.
|
astroke |
The alpha value of the color to use for the rectangle strokes.
|
rfill |
The red value of the color to use to fill the rectangle.
|
gfill |
The green value of the color to use to fill the rectangle.
|
bfill |
The blue value of the color to use to fill the rectangle.
|
afill |
The alpha value of the color to use to fill the rectangle.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer setFillColor(java.awt.Color color) |
|
Parameters |
color |
The new fill color.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer setFillColor(int r, int g, int b) |
|
Parameters |
r |
The red component of the fill color.
|
g |
The green component of the fill color.
|
b |
The blue component of the fill color.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer setFillColor(int r, int g, int b, int a) |
|
Parameters |
r |
The red component of the fill color.
|
g |
The green component of the fill color.
|
b |
The blue component of the fill color.
|
a |
The alpha component of the fill color.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer setFont(java.awt.Font font) |
|
Parameters |
font |
The default font to use.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer setFont(String fontName) |
|
Parameters |
fontName |
Der Name of the default font to use.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer setFont(String fontName, int size) |
|
Parameters |
fontName |
The name of the default font to use.
|
size |
The size of the default font to use.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer setFont(String fontName, int size, int style) |
|
Parameters |
fontName |
The name of the default font to use.
|
size |
The size of the default font to use.
|
style |
The style of the default font to use.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer setStrokeCap(int cap) |
|
Parameters |
cap |
Can either be ImageRepDrawer.CAPS_SQUARED for strokes with squared caps or ImageRepDrawer.CAPS_ROUND for strokes with round caps.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer setStrokeColor(java.awt.Color color) |
|
Parameters |
color |
The new color.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer setStrokeColor(int r, int g, int b) |
|
Parameters |
r |
The red component of the stroke color.
|
g |
The green component of the stroke color.
|
b |
The blue component of the stroke color.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer setStrokeColor(int r, int g, int b, int a) |
|
Parameters |
r |
The red component of the stroke color.
|
g |
The green component of the stroke color.
|
b |
The blue component of the stroke color.
|
a |
The alpha component of the stroke color.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer setStrokeSize(int size) |
|
Parameters |
size |
The new default stroke thickness.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer text(int x, int y, String text) |
|
Parameters |
x |
The x-coordinate of the position where the text should get drawn.
|
y |
The y-coordinate of the position where the text should get drawn.
|
text |
The text that should get drawn.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer text(int x, int y, String text, Color textColor) |
|
Parameters |
x |
The x-coordinate of the Position where the text should get drawn.
|
y |
The y-coordinate of the Position where the text should get drawn.
|
text |
The text that should get drawn.
|
textColor |
The color that should get used.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer text(int x, int y, String text, String fontName) |
|
Parameters |
x |
The x-coordinate of the position where the text should get drawn.
|
y |
The y-coordinate of the position where the text should get drawn.
|
text |
The text that should get drawn.
|
fontName |
The name of the font to use.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer text(int x, int y, String text, Color textColor, Font font) |
|
Parameters |
x |
The x-coordinate of the Position where the text should get drawn.
|
y |
The y-coordinate of the Position where the text should get drawn.
|
text |
The text that should get drawn.
|
textColor |
The color that should get used.
|
font |
The font that should get used.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer text(int x, int y, String text, String fontName, int fontSize) |
|
Parameters |
x |
The x-coordinate of the position where the text should get drawn.
|
y |
The y-coordinate of the position where the text should get drawn.
|
text |
The text that should get drawn.
|
fontName |
The name of the font to use.
|
fontSize |
The font size to use.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer text(int x, int y, String text, int r, int g, int b) |
|
Parameters |
x |
The x-coordinate of the position where the text should get drawn.
|
y |
The y-coordinate of the position where the text should get drawn.
|
text |
The text that should get drawn.
|
r |
The red value of the color that should get used.
|
g |
The green value of the color that should get used.
|
b |
The blue value of the color that should get used.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer text(int x, int y, String text, String fontName, int fontSize, int fontStyle) |
|
Parameters |
x |
The x-coordinate of the position where the text should get drawn.
|
y |
The y-coordinate of the position where the text should get drawn.
|
text |
The text that should get drawn.
|
fontName |
The name of the font to use.
|
fontSize |
The font size to use.
|
fontStyle |
The font style to use.
|
Returns | The ImageRepDrawer object for method concatination. |
|
ImageRepDrawer text(int x, int y, String text, int r, int g, int b, int a) |
|
Parameters |
x |
The x-coordinate of the position where the text should get drawn.
|
y |
The y-coordinate of the position where the text should get drawn.
|
text |
The text that should get drawn.
|
r |
The red value of the color that should get used.
|
g |
The green value of the color that should get used.
|
b |
The blue value of the color that should get used.
|
a |
The alpha value of the color that should get used.
|
Returns | The ImageRepDrawer object for method concatination. |
|