net.sf.jasperreports.charts.design
Class JRDesignValueDisplay

java.lang.Object
  extended by net.sf.jasperreports.charts.base.JRBaseValueDisplay
      extended by net.sf.jasperreports.charts.design.JRDesignValueDisplay
All Implemented Interfaces:
java.io.Serializable, JRValueDisplay

public class JRDesignValueDisplay
extends JRBaseValueDisplay

An object that specifies how a single value should be displayed. Used with charts such as a meter or thermometer that display a single value.

Version:
$Id: JRDesignValueDisplay.java 1386 2006-09-06 00:33:02 +0300 (Wed, 06 Sep 2006) bklawans $
Author:
Barry Klawans (bklawans@users.sourceforge.net)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sf.jasperreports.charts.base.JRBaseValueDisplay
color, font, mask
 
Constructor Summary
JRDesignValueDisplay(JRValueDisplay valueDisplay)
          Constructs a new value display that is a copy of an existing one.
 
Method Summary
 void setColor(java.awt.Color color)
          Sets the color to use when displaying the value.
 void setFont(JRFont font)
          Sets the font to use when displaying the value.
 void setMask(java.lang.String mask)
          Sets the formatting mask to use when displaying the value.
 
Methods inherited from class net.sf.jasperreports.charts.base.JRBaseValueDisplay
collectExpressions, getColor, getFont, getMask
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JRDesignValueDisplay

public JRDesignValueDisplay(JRValueDisplay valueDisplay)
Constructs a new value display that is a copy of an existing one.

Parameters:
valueDisplay - the display to copy
Method Detail

setColor

public void setColor(java.awt.Color color)
Sets the color to use when displaying the value.

Parameters:
color - the color to use when displaying the value

setMask

public void setMask(java.lang.String mask)
Sets the formatting mask to use when displaying the value. This mask will be used to create a java.text.DecimalFormat object.

Parameters:
mask - the formatting mask to use when displaying the value

setFont

public void setFont(JRFont font)
Sets the font to use when displaying the value.

Parameters:
font - the font to use when displaying the value


© 2001-2006 JasperSoft Corporation www.jaspersoft.com