JIDE 3.5.15

com.jidesoft.chart.render
Class AbstractRenderer

java.lang.Object
  extended by com.jidesoft.chart.render.AbstractRenderer
Direct Known Subclasses:
AbstractBarRenderer, AbstractPieSegmentRenderer, AbstractPointRenderer

public abstract class AbstractRenderer
extends Object

An abstract superclass of renderers used for bars, points and pie segments.


Field Summary
protected  boolean alwaysShowOutlines
           
static String PROPERTY_OUTLINE_WIDTH
           
protected static int ROLLOVER_INTENSITY
           
protected  PropertyChangeSupport support
           
 
Constructor Summary
AbstractRenderer()
           
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener listener)
          Add the supplied property listener to this object
 Color getOutlineColor()
           
 float getOutlineWidth()
           
 Color getSelectionColor()
           
 boolean isAlwaysShowOutlines()
          Should we always show outlines, even when we are not showing outlines for selection?
 void removePropertyChangeListener(PropertyChangeListener listener)
          Remove the supplied property change listener
 void setAlwaysShowOutlines(boolean alwaysShowOutlines)
          Specify whether to always draw an outline, regardless whether the object is selected
 void setOutlineColor(Color outlineColor)
           
 void setOutlineWidth(float outlineWidth)
          Set the width of the line used for outlining rendered shapes
 void setSelectionColor(Color selectionColor)
          Set the color used for indicating the selection of items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_OUTLINE_WIDTH

public static final String PROPERTY_OUTLINE_WIDTH
See Also:
Constant Field Values

ROLLOVER_INTENSITY

protected static final int ROLLOVER_INTENSITY
See Also:
Constant Field Values

support

protected PropertyChangeSupport support

alwaysShowOutlines

protected boolean alwaysShowOutlines
Constructor Detail

AbstractRenderer

public AbstractRenderer()
Method Detail

getSelectionColor

public Color getSelectionColor()
Returns:
the color used by this renderer when indicating selections

setSelectionColor

public void setSelectionColor(Color selectionColor)
Set the color used for indicating the selection of items. The default is the value held by Swing's UIManager under the key "Chart.selectionBackground", or if this is null then Color.orange is used.

Parameters:
selectionColor - the color to use for indicating selections

getOutlineColor

public Color getOutlineColor()

setOutlineColor

public void setOutlineColor(Color outlineColor)

getOutlineWidth

public float getOutlineWidth()
Returns:
the width (in pixels) used by this renderer when outlining shapes

setOutlineWidth

public void setOutlineWidth(float outlineWidth)
Set the width of the line used for outlining rendered shapes

Parameters:
outlineWidth - the width in pixels

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener listener)
Add the supplied property listener to this object

Parameters:
listener - a PropertyChangeListener

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener listener)
Remove the supplied property change listener

Parameters:
listener - the PropertyChangeListener to remove

isAlwaysShowOutlines

public boolean isAlwaysShowOutlines()
Should we always show outlines, even when we are not showing outlines for selection?


setAlwaysShowOutlines

public void setAlwaysShowOutlines(boolean alwaysShowOutlines)
Specify whether to always draw an outline, regardless whether the object is selected

Parameters:
alwaysShowOutlines - boolean flag setting to indicate whether outlines should always be shown

JIDE 3.5.15