lt.monarch.chart.chart2D
Class NoDataPainter

java.lang.Object
  extended by lt.monarch.chart.engine.SimpleChartEntity
      extended by lt.monarch.chart.chart2D.NoDataPainter
All Implemented Interfaces:
ChartEntity

public class NoDataPainter
extends SimpleChartEntity

Strategy to render no data ranges in the series. Class tag is "noData". This painter entityStyle can be modified through the series meta data model. There you can set for the certain index the color, paint style and etc. As well as you can specify if the x0 or x1 value is null, then to paint in different color.


Field Summary
Modifier and Type Field and Description
 Style style
          Stylesheet object
 
Constructor Summary
Constructor and Description
NoDataPainter(Orientation orientation, HotSpotMap map)
          No data strategy class constructor
 
Method Summary
Modifier and Type Method and Description
 void draw(AbstractGraphics g, Rectangle2D r, Projector projector)
          Draws the no data region
protected  TextPainter getLabelPainter()
          Gets the label painter
 java.awt.Shape getShape()
          Gets the boundary shape of the object
 void setDescription(java.lang.String description)
          Sets description of no data.
 void setStyle(Style style)
          No data painter style
 void setText(java.lang.String text)
          Sets the text, which has to be rendered on the no data bar
 
Methods inherited from class lt.monarch.chart.engine.SimpleChartEntity
fillEntitySheet, getDescription, getParentEntity, getShortDescription
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

style

public Style style
Stylesheet object

Constructor Detail

NoDataPainter

public NoDataPainter(Orientation orientation,
                     HotSpotMap map)
No data strategy class constructor

Parameters:
orientation - bar orientation
map - hot spot map
Method Detail

setStyle

public void setStyle(Style style)
No data painter style

Parameters:
style - style to set

setDescription

public void setDescription(java.lang.String description)
Sets description of no data. It will be the hint, which will be displayed when cursor is over no data bar.

Overrides:
setDescription in class SimpleChartEntity
Parameters:
description - the description of the entity

setText

public void setText(java.lang.String text)
Sets the text, which has to be rendered on the no data bar

Parameters:
text - text to paint

draw

public void draw(AbstractGraphics g,
                 Rectangle2D r,
                 Projector projector)
Draws the no data region

Parameters:
g - graphics context
r - rectangle where to draw the no data region
projector - projector

getLabelPainter

protected TextPainter getLabelPainter()
Gets the label painter

Returns:
the labelPainter

getShape

public java.awt.Shape getShape()
Gets the boundary shape of the object

Returns:
the shape