com.sencha.gxt.chart.client.draw.sprite
Class CircleSprite

java.lang.Object
  extended by com.sencha.gxt.chart.client.draw.sprite.Sprite
      extended by com.sencha.gxt.chart.client.draw.sprite.CircleSprite

public class CircleSprite
extends Sprite

A Sprite that represents a circle.


Constructor Summary
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.
 
Method Summary
 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.
 
Methods inherited from class com.sencha.gxt.chart.client.draw.sprite.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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CircleSprite

public CircleSprite()
Creates a circle with no values.


CircleSprite

public CircleSprite(CircleSprite sprite)
Creates a copy of the given circle.

Parameters:
sprite - the sprite to be copied

CircleSprite

public CircleSprite(double radius)
Creates a circle with the given radius.

Parameters:
radius - the radius of the circle

CircleSprite

public CircleSprite(double radius,
                    double centerX,
                    double centerY)
Creates a circle with the given radius and center coordinates.

Parameters:
radius - the radius of the circle
centerX - the center x-coordinate of the circle
centerY - the center y-coordinate of the circle
Method Detail

clearDirtyFlags

public void clearDirtyFlags()
Description copied from class: Sprite
Clears all of the dirty flags on the sprite.

Overrides:
clearDirtyFlags in class Sprite

copy

public CircleSprite copy()
Description copied from class: Sprite
Returns a copy of the sprite.

Specified by:
copy in class Sprite
Returns:
copy of the sprite

getCenterX

public double getCenterX()
Returns the center x-coordinate of the circle.

Returns:
the center x-coordinate of the circle

getCenterY

public double getCenterY()
Returns the center y-coordinate of the circle.

Returns:
the center y-coordinate of the circle

getPathSprite

public PathSprite getPathSprite()
Description copied from class: Sprite
Returns the Sprite as a path.

Specified by:
getPathSprite in class Sprite
Returns:
the sprite as a path

getRadius

public double getRadius()
Returns the radius of the circle.

Returns:
the radius of the circle

isCenterXDirty

public boolean isCenterXDirty()
Returns true if the center x changed since the last render.

Returns:
true if the center x changed since the last render

isCenterYDirty

public boolean isCenterYDirty()
Returns true if the center y changed since the last render.

Returns:
true if the center y changed since the last render

isDirty

public boolean isDirty()
Description copied from class: Sprite
Returns true if the sprite changed since the last render.

Overrides:
isDirty in class Sprite
Returns:
true if the sprite changed since the last render

isRadiusDirty

public boolean isRadiusDirty()
Returns true if the radius changed since the last render.

Returns:
true if the radius changed since the last render

setCenterX

public void setCenterX(double centerX)
Sets the center x-coordinate of the circle.

Parameters:
centerX - the center x-coordinate of the circle

setCenterY

public void setCenterY(double centerY)
Sets the center y-coordinate of the circle.

Parameters:
centerY - the center y-coordinate of the circle

setRadius

public void setRadius(double radius)
Sets the radius of the circle.

Parameters:
radius - the radius of the circle

update

public void update(Sprite sprite)
Description copied from class: Sprite
Updates the attributes of the sprite using the given sprite.

Overrides:
update in class Sprite
Parameters:
sprite - the sprite attributes to use


Copyright © 2011. All Rights Reserved.