org.ujac.chart
Class ChartAttributes

java.lang.Object
  extended by org.ujac.chart.ChartAttributes

public class ChartAttributes
extends Object

Name: ChartAttributes
Description: A class managing chart attributes.

Author:
lauerc

Constructor Summary
ChartAttributes()
          Constructs a ChartException instance with specific attributes.
ChartAttributes(Map attributes)
          Constructs a ChartException instance with specific attributes.
 
Method Summary
 boolean getBoolean(String name)
          Gets a boolean attribute.
 Color getColor(String name)
          Gets a Color attribute.
 Color[] getColorArray(String name)
          Gets a Color array attribute.
 double getDouble(String name)
          Gets a double attribute.
 float getFloat(String name)
          Gets a float attribute.
 Font getFont(String name)
          Gets a Font attribute.
 int getInt(String name)
          Gets a integer attribute.
 List getList(String name)
          Gets a list attribute.
 double getLong(String name)
          Gets a long attribute.
 Object getObject(String name)
          Gets a Object attribute.
 String getString(String name)
          Gets a String attribute.
 String[] getStringArray(String name)
          Gets a String array attribute.
 TextChartItem getTextItem(String name)
          Gets a TextItem attribute.
 boolean isDefined(String name)
          Gets a integer attribute.
 void setBoolean(String name, boolean value)
          Sets a boolean attribute.
 void setColor(String name, Color value)
          Sets a Color attribute.
 void setDouble(String name, double value)
          Sets a double attribute.
 void setFloat(String name, float value)
          Sets a float attribute.
 void setFont(String name, Font value)
          Sets a Font attribute.
 void setInt(String name, int value)
          Sets a integer attribute.
 void setList(String name, List value)
          Sets a list attribute.
 void setLong(String name, long value)
          Sets a long attribute.
 void setObject(String name, Object value)
          Sets a Object attribute.
 void setString(String name, String value)
          Sets a String attribute.
 void setTextItem(String name, TextChartItem value)
          Sets a TextItem attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChartAttributes

public ChartAttributes()
Constructs a ChartException instance with specific attributes.


ChartAttributes

public ChartAttributes(Map attributes)
Constructs a ChartException instance with specific attributes.

Parameters:
attributes - The chart attributes.
Method Detail

isDefined

public boolean isDefined(String name)
Gets a integer attribute.

Parameters:
name - The attribute name.
Returns:
The associated value.

getBoolean

public boolean getBoolean(String name)
Gets a boolean attribute.

Parameters:
name - The attribute name.
Returns:
The associated value.

setBoolean

public void setBoolean(String name,
                       boolean value)
Sets a boolean attribute.

Parameters:
name - The attribute name.
value - The value to associate with the given name.

getInt

public int getInt(String name)
Gets a integer attribute.

Parameters:
name - The attribute name.
Returns:
The associated value.

setInt

public void setInt(String name,
                   int value)
Sets a integer attribute.

Parameters:
name - The attribute name.
value - The value to associate with the given name.

getLong

public double getLong(String name)
Gets a long attribute.

Parameters:
name - The attribute name.
Returns:
The associated value.

setLong

public void setLong(String name,
                    long value)
Sets a long attribute.

Parameters:
name - The attribute name.
value - The value to associate with the given name.

getFloat

public float getFloat(String name)
Gets a float attribute.

Parameters:
name - The attribute name.
Returns:
The associated value.

setFloat

public void setFloat(String name,
                     float value)
Sets a float attribute.

Parameters:
name - The attribute name.
value - The value to associate with the given name.

getDouble

public double getDouble(String name)
Gets a double attribute.

Parameters:
name - The attribute name.
Returns:
The associated value.

setDouble

public void setDouble(String name,
                      double value)
Sets a double attribute.

Parameters:
name - The attribute name.
value - The value to associate with the given name.

getString

public String getString(String name)
Gets a String attribute.

Parameters:
name - The attribute name.
Returns:
The associated value.

setString

public void setString(String name,
                      String value)
Sets a String attribute.

Parameters:
name - The attribute name.
value - The value to associate with the given name.

getStringArray

public String[] getStringArray(String name)
Gets a String array attribute.

Parameters:
name - The attribute name.
Returns:
The associated value.

getFont

public Font getFont(String name)
Gets a Font attribute.

Parameters:
name - The attribute name.
Returns:
The associated value.

setFont

public void setFont(String name,
                    Font value)
Sets a Font attribute.

Parameters:
name - The attribute name.
value - The value to associate with the given name.

getColor

public Color getColor(String name)
Gets a Color attribute.

Parameters:
name - The attribute name.
Returns:
The associated value.

setColor

public void setColor(String name,
                     Color value)
Sets a Color attribute.

Parameters:
name - The attribute name.
value - The value to associate with the given name.

getColorArray

public Color[] getColorArray(String name)
Gets a Color array attribute.

Parameters:
name - The attribute name.
Returns:
The associated value.

getObject

public Object getObject(String name)
Gets a Object attribute.

Parameters:
name - The attribute name.
Returns:
The associated value.

setObject

public void setObject(String name,
                      Object value)
Sets a Object attribute.

Parameters:
name - The attribute name.
value - The value to associate with the given name.

getList

public List getList(String name)
Gets a list attribute.

Parameters:
name - The attribute name.
Returns:
The associated value.

setList

public void setList(String name,
                    List value)
Sets a list attribute.

Parameters:
name - The attribute name.
value - The value to associate with the given name.

getTextItem

public TextChartItem getTextItem(String name)
Gets a TextItem attribute.

Parameters:
name - The attribute name.
Returns:
The associated value.

setTextItem

public void setTextItem(String name,
                        TextChartItem value)
Sets a TextItem attribute.

Parameters:
name - The attribute name.
value - The value to associate with the given name.


Copyright © 2003-2004 UJAC.org. All Rights Reserved.