com.sencha.gxt.chart.client.chart.series
Class Primitives

java.lang.Object
  extended by com.sencha.gxt.chart.client.chart.series.Primitives

public class Primitives
extends Object

Collection of methods to generate primitive shapes. Used in series to generate markers.


Constructor Summary
Primitives()
           
 
Method Summary
static PathSprite arrow(double cx, double cy, double radius)
          Generates an arrow using the given parameters.
static CircleSprite circle(double cx, double cy, double radius)
          Generates a circle using the given parameters.
static PathSprite cross(double cx, double cy, double radius)
          Generates a cross using the given parameters.
static PathSprite diamond(double cx, double cy, double radius)
          Generates a diamond using the given parameters.
static RectangleSprite line(double cx, double cy, double radius)
          Generates a line using the given parameters.
static PathSprite plus(double cx, double cy, double radius)
          Generates a plus using the given parameters.
static RectangleSprite square(double cx, double cy, double radius)
          Generates a square using the given parameters.
static PathSprite triangle(double cx, double cy, double radius)
          Generates a triangle using the given parameters.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Primitives

public Primitives()
Method Detail

arrow

public static PathSprite arrow(double cx,
                               double cy,
                               double radius)
Generates an arrow using the given parameters.

Parameters:
cx - the center x-coordinate of the primitive
cy - the center x-coordinate of the primitive
radius - the size of the primitive
Returns:
the generated primitive

circle

public static CircleSprite circle(double cx,
                                  double cy,
                                  double radius)
Generates a circle using the given parameters.

Parameters:
cx - the center x-coordinate of the primitive
cy - the center x-coordinate of the primitive
radius - the size of the primitive
Returns:
the generated primitive

cross

public static PathSprite cross(double cx,
                               double cy,
                               double radius)
Generates a cross using the given parameters.

Parameters:
cx - the center x-coordinate of the primitive
cy - the center x-coordinate of the primitive
radius - the size of the primitive
Returns:
the generated primitive

diamond

public static PathSprite diamond(double cx,
                                 double cy,
                                 double radius)
Generates a diamond using the given parameters.

Parameters:
cx - the center x-coordinate of the primitive
cy - the center x-coordinate of the primitive
radius - the size of the primitive
Returns:
the generated primitive

line

public static RectangleSprite line(double cx,
                                   double cy,
                                   double radius)
Generates a line using the given parameters.

Parameters:
cx - the center x-coordinate of the primitive
cy - the center x-coordinate of the primitive
radius - the size of the primitive
Returns:
the generated primitive

plus

public static PathSprite plus(double cx,
                              double cy,
                              double radius)
Generates a plus using the given parameters.

Parameters:
cx - the center x-coordinate of the primitive
cy - the center x-coordinate of the primitive
radius - the size of the primitive
Returns:
the generated primitive

square

public static RectangleSprite square(double cx,
                                     double cy,
                                     double radius)
Generates a square using the given parameters.

Parameters:
cx - the center x-coordinate of the primitive
cy - the center x-coordinate of the primitive
radius - the size of the primitive
Returns:
the generated primitive

triangle

public static PathSprite triangle(double cx,
                                  double cy,
                                  double radius)
Generates a triangle using the given parameters.

Parameters:
cx - the center x-coordinate of the primitive
cy - the center x-coordinate of the primitive
radius - the size of the primitive
Returns:
the generated primitive


Copyright © 2011. All Rights Reserved.