Package org.jfree.chart.renderer
Class RendererState
- java.lang.Object
-
- org.jfree.chart.renderer.RendererState
-
- Direct Known Subclasses:
CategoryItemRendererState,PiePlotState,XYItemRendererState
public class RendererState extends java.lang.ObjectRepresents the current state of a renderer.
-
-
Field Summary
Fields Modifier and Type Field Description private booleanelementHintingA flag that indicates whether or not rendering hints should be added to identify chart elements.private PlotRenderingInfoinfoThe plot rendering info.
-
Constructor Summary
Constructors Constructor Description RendererState(PlotRenderingInfo info)Creates a new state object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetElementHinting()Returns the flag that controls whether or not the renderer should add rendering hints to the output that identify chart elements.EntityCollectiongetEntityCollection()A convenience method that returns a reference to the entity collection (may benull) being used to record chart entities.PlotRenderingInfogetInfo()Returns the plot rendering info.voidsetElementHinting(boolean hinting)Sets the elementHinting flag.
-
-
-
Field Detail
-
info
private PlotRenderingInfo info
The plot rendering info.
-
elementHinting
private boolean elementHinting
A flag that indicates whether or not rendering hints should be added to identify chart elements. It is initialised from the corresponding flag in the JFreeChart instance.
-
-
Constructor Detail
-
RendererState
public RendererState(PlotRenderingInfo info)
Creates a new state object.- Parameters:
info- the plot rendering info.
-
-
Method Detail
-
getElementHinting
public boolean getElementHinting()
Returns the flag that controls whether or not the renderer should add rendering hints to the output that identify chart elements.- Returns:
- A boolean.
-
setElementHinting
public void setElementHinting(boolean hinting)
Sets the elementHinting flag.- Parameters:
hinting- the new flag value.
-
getInfo
public PlotRenderingInfo getInfo()
Returns the plot rendering info.- Returns:
- The info.
-
getEntityCollection
public EntityCollection getEntityCollection()
A convenience method that returns a reference to the entity collection (may benull) being used to record chart entities.- Returns:
- The entity collection (possibly
null).
-
-