JIDE 3.5.15

com.jidesoft.chart.style
Class PointStyle

java.lang.Object
  extended by com.jidesoft.chart.style.AbstractStyle
      extended by com.jidesoft.chart.style.PointStyle

public class PointStyle
extends AbstractStyle

The style for a point of the chart


Field Summary
static PointShape DEFAULT_SHAPE
          The default shape is PointShape.DISC
static int DEFAULT_SIZE
          The default size is 5 pixels.
 
Constructor Summary
PointStyle()
          Create a Point Style using default shape (DISC) and size (5 pixels)
PointStyle(Color color)
          Create a Point Style using the supplied color and default shape and size
PointStyle(Color color, PointShape shape)
          Create a Point Style using the supplied color and shape, and using a default size
PointStyle(Color color, PointShape shape, int size)
          Create a Point Style using the supplied color, shape and size
 
Method Summary
 boolean equals(Object obj)
           
 PointShape getShape()
          Returns the shape of the points
 int getSize()
          Returns the size of the points
 int hashCode()
           
 void setShape(PointShape shape)
          Specify the shape of the points
 void setSize(int size)
          Specify the size of the points
 String toString()
           
 
Methods inherited from class com.jidesoft.chart.style.AbstractStyle
getColor, getPaint, setColor, setPaint
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_SIZE

public static final int DEFAULT_SIZE
The default size is 5 pixels.

See Also:
Constant Field Values

DEFAULT_SHAPE

public static final PointShape DEFAULT_SHAPE
The default shape is PointShape.DISC

Constructor Detail

PointStyle

public PointStyle()
Create a Point Style using default shape (DISC) and size (5 pixels)


PointStyle

public PointStyle(Color color)
Create a Point Style using the supplied color and default shape and size

Parameters:
color - the suggested color to use when rendering the points (the renderer may override this suggestion)

PointStyle

public PointStyle(Color color,
                  PointShape shape)
Create a Point Style using the supplied color and shape, and using a default size

Parameters:
color - the suggested color to use for rendering the points
shape - the suggested shape to use for rendering the points

PointStyle

public PointStyle(Color color,
                  PointShape shape,
                  int size)
Create a Point Style using the supplied color, shape and size

Parameters:
color - the suggested color to use for rendering the points
shape - the suggested shape to use for rendering the points
size - the size of the points
Method Detail

getShape

public PointShape getShape()
Returns the shape of the points

Returns:
the shape of the points

setShape

public void setShape(PointShape shape)
Specify the shape of the points

Parameters:
shape - the new shape of the points

getSize

public int getSize()
Returns the size of the points

Returns:
the size of the points

setSize

public void setSize(int size)
Specify the size of the points

Parameters:
size - the new size of the points

hashCode

public int hashCode()
Overrides:
hashCode in class AbstractStyle

equals

public boolean equals(Object obj)
Overrides:
equals in class AbstractStyle

toString

public String toString()
Overrides:
toString in class Object

JIDE 3.5.15