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.CirclewithColor(@NotNull ColorObject color)Sets the color to use for the image.Image.CirclewithHeight(int height)This method cannot be used in the Circle image type.Image.CirclewithPosX(int posX)Sets the position on the X (horizontal) axis for the image.Image.CirclewithPosY(int posY)Sets the position on the Y (vertical) axis for the image.Image.CirclewithRadius(int radius)Sets the radius the circle should have.Image.CirclewithWidth(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 anIllegalArgumentExceptionwhen called.Use
withRadius(int)instead.
-
withHeight
public Image.Circle withHeight(int height)
This method cannot be used in the Circle image type.
Throws anIllegalArgumentExceptionwhen called.Use
withRadius(int)instead.- Specified by:
withHeightin 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 theColorObjectfor possible errors and limitations.- Specified by:
withColorin classImage- Parameters:
color- TheColorObjectto use.- Returns:
- The Circle instance. Useful for chaining.
-
withRadius
public Image.Circle withRadius(int radius)
Sets the radius the circle should have.An
IllegalArgumentExceptionmay 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.
-
-