Class Image.Triangle
- java.lang.Object
-
- ch.andre601.fluxpoint4j.image.format.Image
-
- ch.andre601.fluxpoint4j.image.format.Image.Triangle
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ch.andre601.fluxpoint4j.image.format.Image
Image.Circle, Image.Cut, Image.ImageURL, Image.Rectangle, Image.Triangle
-
-
Constructor Summary
Constructors Constructor Description Triangle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Image.Triangle
withColor(@NotNull ColorObject color)
Sets the color to use for the image.Image.Triangle
withCut(@NotNull Image.Cut cut)
Sets where the missing piece of the triangle should be displayed.Image.Triangle
withHeight(int height)
Sets the height of the Image.Image.Triangle
withPosX(int posX)
Sets the position on the X (horizontal) axis for the image.Image.Triangle
withPosY(int posY)
Sets the position on the Y (vertical) axis for the image.Image.Triangle
withWidth(int width)
Sets the width of the Image.
-
-
-
Method Detail
-
withPosX
public Image.Triangle withPosX(int posX)
Sets the position on the X (horizontal) axis for the image.
The value can be both negative and positive.
-
withPosY
public Image.Triangle withPosY(int posY)
Sets the position on the Y (vertical) axis for the image.
The value can be both negative and positive.
-
withWidth
public Image.Triangle withWidth(int width)
Sets the width of the Image.An
IllegalArgumentException
may be thrown in the following case:- Width is less than 1 or larger than 3000.
-
withHeight
public Image.Triangle withHeight(int height)
Sets the height of the Image.An
IllegalArgumentException
may be thrown in the following case:- Height is less than 1 or larger than 3000.
- Specified by:
withHeight
in classImage
- Parameters:
height
- The height of the image.- Returns:
- The Triangle instance. Useful for chaining.
-
withColor
public Image.Triangle withColor(@NotNull @NotNull ColorObject color)
Sets the color to use for the image.
Please see the documentation of theColorObject
for possible errors and limitations.- Specified by:
withColor
in classImage
- Parameters:
color
- TheColorObject
to use.- Returns:
- The Triangle instance. Useful for chaining.
-
withCut
public Image.Triangle withCut(@NotNull @NotNull Image.Cut cut)
Sets where the missing piece of the triangle should be displayed.- Parameters:
cut
- Thecut position
to use.- Returns:
- The Triangle instance. Useful for chaining.
-
-