| Constructor and Description |
|---|
CircleSprite()
Creates a circle with no values.
|
CircleSprite(CircleSprite sprite)
Creates a copy of the given circle.
|
CircleSprite(double radius)
Creates a circle with the given radius.
|
CircleSprite(double radius,
double centerX,
double centerY)
Creates a circle with the given radius and center coordinates.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearDirtyFlags()
Clears all of the dirty flags on the sprite.
|
CircleSprite |
copy()
Returns a copy of the sprite.
|
double |
getCenterX()
Returns the center x-coordinate of the circle.
|
double |
getCenterY()
Returns the center y-coordinate of the circle.
|
PathSprite |
getPathSprite()
Returns the
Sprite as a path. |
double |
getRadius()
Returns the radius of the circle.
|
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 |
isRadiusDirty()
Returns true if the radius changed since the last render.
|
void |
setCenterX(double centerX)
Sets the center x-coordinate of the circle.
|
void |
setCenterY(double centerY)
Sets the center y-coordinate of the circle.
|
void |
setRadius(double radius)
Sets the radius of the circle.
|
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, transformMatrixpublic CircleSprite()
public CircleSprite(CircleSprite sprite)
sprite - the sprite to be copiedpublic CircleSprite(double radius)
radius - the radius of the circlepublic CircleSprite(double radius,
double centerX,
double centerY)
radius - the radius of the circlecenterX - the center x-coordinate of the circlecenterY - the center y-coordinate of the circlepublic void clearDirtyFlags()
SpriteclearDirtyFlags in class Spritepublic CircleSprite copy()
Spritepublic double getCenterX()
public double getCenterY()
public PathSprite getPathSprite()
SpriteSprite as a path.getPathSprite in class Spritepublic double getRadius()
public boolean isCenterXDirty()
public boolean isCenterYDirty()
public boolean isDirty()
Spritepublic boolean isRadiusDirty()
public void setCenterX(double centerX)
centerX - the center x-coordinate of the circlepublic void setCenterY(double centerY)
centerY - the center y-coordinate of the circlepublic void setRadius(double radius)
radius - the radius of the circleCopyright © 2016. All rights reserved.