org.pentaho.platform.uifoundation.chart
Class WidgetDefinition

java.lang.Object
  extended by DefaultValueDataset
      extended by org.pentaho.platform.uifoundation.chart.WidgetDefinition
Direct Known Subclasses:
DialWidgetDefinition, ThermometerWidgetDefinition

public abstract class WidgetDefinition
extends DefaultValueDataset


Constructor Summary
WidgetDefinition(double value, double minimum, double maximum)
           
 
Method Summary
 double getMaximum()
          Gets the maximum value the widget can display
 double getMinimum()
          Gets the minimum value the widget can display
 String getNoDataMessage()
           
abstract  Font getValueFont()
           
 void setMaximum(double maximum)
          Sets the minimum value the widget can display
 void setMinimum(double minimum)
          Sets the minimum value the widget can display
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WidgetDefinition

public WidgetDefinition(double value,
                        double minimum,
                        double maximum)
Method Detail

getMinimum

public double getMinimum()
Gets the minimum value the widget can display

Returns:
The minimum value the widget can display

setMinimum

public void setMinimum(double minimum)
Sets the minimum value the widget can display

Parameters:
minimum - The minimum value the widget can display

getMaximum

public double getMaximum()
Gets the maximum value the widget can display

Returns:
The maximum value the widget can display

setMaximum

public void setMaximum(double maximum)
Sets the minimum value the widget can display

Parameters:
maximum - The maximum value the widget can display

getValueFont

public abstract Font getValueFont()

getNoDataMessage

public String getNoDataMessage()