JIDE 3.5.15

com.jidesoft.chart.style
Class AbstractStyle

java.lang.Object
  extended by com.jidesoft.chart.style.AbstractStyle
Direct Known Subclasses:
BarStyle, LabelStyle, LineStyle, PointStyle

public abstract class AbstractStyle
extends Object

An abstract superclass for all styles used in Chart charts; for example LineStyles and ChartStyles. Styling is used to change the appearance of chart points and other chart annotations.

See Also:
LineStyle, ChartStyle

Constructor Summary
AbstractStyle()
          Default constructor
AbstractStyle(Color color)
           
 
Method Summary
 boolean equals(Object obj)
           
 Color getColor()
          Returns the paint property as a Color object.
 Paint getPaint()
          Returns the paint used
 int hashCode()
           
 void setColor(Color color)
          Specify the color to use when rendering
 void setPaint(Paint paint)
          Specify the paint to use when rendering
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractStyle

public AbstractStyle()
Default constructor


AbstractStyle

public AbstractStyle(Color color)
Method Detail

getColor

public Color getColor()
Returns the paint property as a Color object. If the paint property is not an instance of Color, null is returned.

Returns:
the color to use for styling

setColor

public void setColor(Color color)
Specify the color to use when rendering

Parameters:
color - the color to use when rendering

setPaint

public void setPaint(Paint paint)
Specify the paint to use when rendering

Parameters:
paint - the paint to use when rendering

getPaint

public Paint getPaint()
Returns the paint used

Returns:
the paint

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

JIDE 3.5.15