com.jgoodies.jdiskreport.model.settings
Class ChartSettings

java.lang.Object
  extended by com.jgoodies.binding.beans.Model
      extended by com.jgoodies.jdiskreport.model.settings.ChartSettings
All Implemented Interfaces:
com.jgoodies.binding.beans.Observable, Serializable

public final class ChartSettings
extends com.jgoodies.binding.beans.Model

Provides bound properties for chart related settings.

Version:
$Revision: 1.7 $
Author:
Karsten Lentzsch
See Also:
Serialized Form

Field Summary
static float MAX_BRIGHTNESS
           
static int MAX_DEPTH
           
static int MAX_ELEMENT_LIMIT
           
static float MAX_ELEMENT_THRESHOLD
           
static float MAX_SATURATION
           
static float MIN_BRIGHTNESS
           
static int MIN_DEPTH
           
static int MIN_ELEMENT_LIMIT
          The default value for property 'elementLimit'.
static float MIN_ELEMENT_THRESHOLD
           
static float MIN_SATURATION
           
static String PROPERTYNAME_BRIGHTNESS
           
static String PROPERTYNAME_DEPTH
           
static String PROPERTYNAME_ELEMENT_LIMIT
           
static String PROPERTYNAME_ELEMENT_THRESHOLD
           
static String PROPERTYNAME_SATURATION
           
 
Method Summary
 float getBrightness()
          Returns the brightness of the colors used in the charts.
 int getDepth()
          Returns the depth of hierachical charts.
 int getElementLimit()
          Returns the maximum number of individual elements per chart.
 float getElementThreshold()
          Returns the threshold for elements to be displayed in a chart.
 float getSaturation()
          Returns the saturation of the colors used for the chart elements.
 void restoreFrom(Preferences prefs)
          Restores the persistent properties from the specified Preferences.
 void setBrightness(float newBrightness)
          Sets a new chart color brightness.
 void setDepth(int newDepth)
          Sets a new depth for the hierachical charts.
 void setElementLimit(int newValue)
          Sets a new upper bound for the number of individual elements per chart.
 void setElementThreshold(float newThreshold)
          Sets a new threshold for elements to be displayed in charts.
 void setSaturation(float newSaturation)
          Sets a new saturation for the colors used for the chart elements.
 void storeIn(Preferences prefs)
          Stores the persistent properties in the specified Preferences.
 
Methods inherited from class com.jgoodies.binding.beans.Model
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, equals, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, fireMultiplePropertiesChanged, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTYNAME_BRIGHTNESS

public static final String PROPERTYNAME_BRIGHTNESS
See Also:
Constant Field Values

PROPERTYNAME_DEPTH

public static final String PROPERTYNAME_DEPTH
See Also:
Constant Field Values

PROPERTYNAME_SATURATION

public static final String PROPERTYNAME_SATURATION
See Also:
Constant Field Values

PROPERTYNAME_ELEMENT_LIMIT

public static final String PROPERTYNAME_ELEMENT_LIMIT
See Also:
Constant Field Values

PROPERTYNAME_ELEMENT_THRESHOLD

public static final String PROPERTYNAME_ELEMENT_THRESHOLD
See Also:
Constant Field Values

MIN_BRIGHTNESS

public static final float MIN_BRIGHTNESS
See Also:
Constant Field Values

MAX_BRIGHTNESS

public static final float MAX_BRIGHTNESS
See Also:
Constant Field Values

MIN_DEPTH

public static final int MIN_DEPTH
See Also:
Constant Field Values

MAX_DEPTH

public static final int MAX_DEPTH
See Also:
Constant Field Values

MIN_ELEMENT_LIMIT

public static final int MIN_ELEMENT_LIMIT
The default value for property 'elementLimit'.

See Also:
Constant Field Values

MAX_ELEMENT_LIMIT

public static final int MAX_ELEMENT_LIMIT
See Also:
Constant Field Values

MIN_ELEMENT_THRESHOLD

public static final float MIN_ELEMENT_THRESHOLD
See Also:
Constant Field Values

MAX_ELEMENT_THRESHOLD

public static final float MAX_ELEMENT_THRESHOLD
See Also:
Constant Field Values

MIN_SATURATION

public static final float MIN_SATURATION
See Also:
Constant Field Values

MAX_SATURATION

public static final float MAX_SATURATION
See Also:
Constant Field Values
Method Detail

getBrightness

public float getBrightness()
Returns the brightness of the colors used in the charts.

Returns:
the brightness of the colors used in the charts

setBrightness

public void setBrightness(float newBrightness)
Sets a new chart color brightness.

Parameters:
newBrightness - the brightness to be set

getDepth

public int getDepth()
Returns the depth of hierachical charts. Currently only the ring chart can honor this property.


setDepth

public void setDepth(int newDepth)
Sets a new depth for the hierachical charts.

Parameters:
newDepth - the depth to be set

getElementLimit

public int getElementLimit()
Returns the maximum number of individual elements per chart.

Returns:
the maximum number of individual elements per chart

setElementLimit

public void setElementLimit(int newValue)
Sets a new upper bound for the number of individual elements per chart.

Parameters:
newValue - the new upper bound to be set

getElementThreshold

public float getElementThreshold()
Returns the threshold for elements to be displayed in a chart. Elements that have a percentual size smaller than the threshold will be hidden - otherwise they are shown.

Returns:
the threshold for elements to be displayed in a chart

setElementThreshold

public void setElementThreshold(float newThreshold)
Sets a new threshold for elements to be displayed in charts.

Parameters:
newThreshold - the threshold to be set

getSaturation

public float getSaturation()
Returns the saturation of the colors used for the chart elements.

Returns:
the saturation of the color used for the chart elements

setSaturation

public void setSaturation(float newSaturation)
Sets a new saturation for the colors used for the chart elements.

Parameters:
newSaturation - the satuation to be set

restoreFrom

public void restoreFrom(Preferences prefs)
Restores the persistent properties from the specified Preferences.

Parameters:
prefs - the Preferences object that holds the property values

storeIn

public void storeIn(Preferences prefs)
Stores the persistent properties in the specified Preferences.

Parameters:
prefs - the Preferences object that holds the property values


Copyright © 2000-2008 JGoodies Karsten Lentzsch. All Rights Reserved.