Class Image.Circle
- java.lang.Object
-
- ch.andre601.fluxpoint4j.image.format.Image
-
- ch.andre601.fluxpoint4j.image.format.Image.Circle
-
-
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 Circle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Image.Circle
withColor(@NotNull ColorObject color)
Sets the color to use for the image.Image.Circle
withHeight(int height)
This method cannot be used in the Circle image type.Image.Circle
withPosX(int posX)
Sets the position on the X (horizontal) axis for the image.Image.Circle
withPosY(int posY)
Sets the position on the Y (vertical) axis for the image.Image.Circle
withRadius(int radius)
Sets the radius the circle should have.Image.Circle
withWidth(int width)
This method cannot be used in the Circle image type.
-
-
-
Method Detail
-
withPosX
public Image.Circle 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.Circle 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.Circle withWidth(int width)
This method cannot be used in the Circle image type.
Throws anIllegalArgumentException
when called.Use
withRadius(int)
instead.
-
withHeight
public Image.Circle withHeight(int height)
This method cannot be used in the Circle image type.
Throws anIllegalArgumentException
when called.Use
withRadius(int)
instead.- Specified by:
withHeight
in classImage
- Parameters:
height
- The height of the image.- Returns:
- Nothing.
-
withColor
public Image.Circle 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 Circle instance. Useful for chaining.
-
withRadius
public Image.Circle withRadius(int radius)
Sets the radius the circle should have.An
IllegalArgumentException
may be thrown in the following case:- Radius is less than 1.
- Parameters:
radius
- The radius to use for the circle.- Returns:
- The Circle instance. Useful for chaining.
-
-