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

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

public class EllipseSprite
extends Sprite

A Sprite that represents an ellipse.


Constructor Summary
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.
 
Method Summary
 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.
 
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

EllipseSprite

public EllipseSprite()
Creates an ellipse with no values.


EllipseSprite

public EllipseSprite(double radiusX,
                     double radiusY)
Creates an ellipse with the given radii.

Parameters:
radiusX - the radius of the ellipse on its x-axis
radiusY - the radius of the ellipse on its y-axis

EllipseSprite

public EllipseSprite(double radiusX,
                     double radiusY,
                     double centerX,
                     double centerY)
Creates an ellipse with the given radii and center coordinates.

Parameters:
radiusX - the radius of the ellipse on its x-axis
radiusY - the radius of the ellipse on its y-axis
centerX - the center x-coordinate of the ellipse
centerY - the center y-coordinate of the ellipse

EllipseSprite

public EllipseSprite(EllipseSprite sprite)
Creates a copy of the given ellipse.

Parameters:
sprite - the sprite to be copied
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 EllipseSprite 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 ellipse.

Returns:
the center x-coordinate of the ellipse

getCenterY

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

Returns:
the center y-coordinate of the ellipse

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

getRadiusX

public double getRadiusX()
Returns the radius of the ellipse on its x-axis.

Returns:
the radius of the ellipse on its x-axis.

getRadiusY

public double getRadiusY()
Returns the radius of the ellipse on its y-axis.

Returns:
the radius of the ellipse on its y-axis.

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

isRadiusXDirty

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

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

isRadiusYDirty

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

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

setCenterX

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

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

setCenterY

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

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

setRadiusX

public void setRadiusX(double radiusX)
Sets the radius of the ellipse on its x-axis.

Parameters:
radiusX - the radius of the ellipse on its x-axis.

setRadiusY

public void setRadiusY(double radiusY)
Sets the radius of the ellipse on its y-axis.

Parameters:
radiusY - the radius of the ellipse on its y-axis.

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.