clipRectangle, component, fill, fillOpacity, hidden, opacity, rotation, scaling, stroke, strokeOpacity, strokeWidth, surface, translation, zIndex
Constructor and Description |
---|
EllipseSprite()
Creates an ellipse with no values.
|
EllipseSprite(double radiusX,
double radiusY)
Creates an ellipse with the given radii.
|
EllipseSprite(double radiusX,
double radiusY,
double centerX,
double centerY)
Creates an ellipse with the given radii and center coordinates.
|
EllipseSprite(EllipseSprite sprite)
Creates a copy of the given ellipse.
|
Modifier and Type | Method and Description |
---|---|
void |
clearDirtyFlags()
Clears all of the dirty flags on the sprite.
|
EllipseSprite |
copy()
Returns a copy of the sprite.
|
double |
getCenterX()
Returns the center x-coordinate of the ellipse.
|
double |
getCenterY()
Returns the center y-coordinate of the ellipse.
|
PathSprite |
getPathSprite()
Returns the
Sprite as a path. |
double |
getRadiusX()
Returns the radius of the ellipse on its x-axis.
|
double |
getRadiusY()
Returns the radius of the ellipse on its y-axis.
|
boolean |
isCenterXDirty()
Returns true if the center x changed since the last render.
|
boolean |
isCenterYDirty()
Returns true if the center y changed since the last render.
|
boolean |
isDirty()
Returns true if the sprite changed since the last render.
|
boolean |
isRadiusXDirty()
Returns true if the radius x changed since the last render.
|
boolean |
isRadiusYDirty()
Returns true if the radius y changed since the last render.
|
void |
setCenterX(double centerX)
Sets the center x-coordinate of the ellipse.
|
void |
setCenterY(double centerY)
Sets the center y-coordinate of the ellipse.
|
void |
setRadiusX(double radiusX)
Sets the radius of the ellipse on its x-axis.
|
void |
setRadiusY(double radiusY)
Sets the radius of the ellipse on its y-axis.
|
void |
update(Sprite sprite)
Updates the attributes of the sprite using the given sprite.
|
getBBox, getClipRectangle, getComponent, getFill, getFillOpacity, getOpacity, getRotation, getScaling, getStroke, getStrokeOpacity, getStrokeWidth, getSurface, getTranslation, getZIndex, isClipRectangleDirty, isFillDirty, isFillOpacityDirty, isHidden, isHiddenDirty, isOpacityDirty, isStrokeDirty, isStrokeOpacityDirty, isStrokeWidthDirty, isTransformDirty, isZIndexDirty, redraw, remove, setClipRectangle, setComponent, setCursor, setFill, setFillOpacity, setHidden, setOpacity, setRotation, setRotation, setRotation, setScaling, setScaling, setScaling, setStroke, setStrokeOpacity, setStrokeWidth, setSurface, setTranslation, setTranslation, setZIndex, transformMatrix
public EllipseSprite()
public EllipseSprite(double radiusX, double radiusY)
radiusX
- the radius of the ellipse on its x-axisradiusY
- the radius of the ellipse on its y-axispublic EllipseSprite(double radiusX, double radiusY, double centerX, double centerY)
radiusX
- the radius of the ellipse on its x-axisradiusY
- the radius of the ellipse on its y-axiscenterX
- the center x-coordinate of the ellipsecenterY
- the center y-coordinate of the ellipsepublic EllipseSprite(EllipseSprite sprite)
sprite
- the sprite to be copiedpublic void clearDirtyFlags()
Sprite
clearDirtyFlags
in class Sprite
public EllipseSprite copy()
Sprite
public double getCenterX()
public double getCenterY()
public PathSprite getPathSprite()
Sprite
Sprite
as a path.getPathSprite
in class Sprite
public double getRadiusX()
public double getRadiusY()
public boolean isCenterXDirty()
public boolean isCenterYDirty()
public boolean isDirty()
Sprite
public boolean isRadiusXDirty()
public boolean isRadiusYDirty()
public void setCenterX(double centerX)
centerX
- the center x-coordinate of the ellipsepublic void setCenterY(double centerY)
centerY
- the center y-coordinate of the ellipsepublic void setRadiusX(double radiusX)
radiusX
- the radius of the ellipse on its x-axis.public void setRadiusY(double radiusY)
radiusY
- the radius of the ellipse on its y-axis.Copyright © 2018. All rights reserved.