2.17.2: 2011-06-17

net.sf.basedb.core.data
Class ColoringData

java.lang.Object
  extended by net.sf.basedb.core.data.ColoringData
All Implemented Interfaces:
ComponentData

public class ColoringData
extends Object
implements ComponentData

Hold coloring information. Implemented as a component since several types of items may be colored.

Version:
2.0
Author:
nicklas
See Also:
Data API - Other classes
Last modified
$Date: 2008-10-31 09:54:10 +0100 (Fri, 31 Oct 2008) $

Field Summary
private  boolean logarithmic
           
private  Float maxValue
           
private  Float midValue
           
private  Float minValue
           
private  boolean useColors
           
 
Constructor Summary
ColoringData()
           
ColoringData(boolean useColors, boolean logarithmic, Float minValue, Float midValue, Float maxValue)
           
 
Method Summary
 Float getMaxValue()
          The value for the ax endpoint color.
 Float getMidValue()
          The value for the midpoint color.
 Float getMinValue()
          The value for the minimum endpoint color.
 boolean isLogarithmic()
          If values should be logarithmised or not.
 boolean isUsingColors()
          If colors should be used or not.
 void setLogarithmic(boolean logarithmic)
           
 void setMaxValue(Float maxValue)
           
 void setMidValue(Float midValue)
           
 void setMinValue(Float minValue)
           
 void setUsingColors(boolean useColors)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

useColors

private boolean useColors

logarithmic

private boolean logarithmic

minValue

private Float minValue

midValue

private Float midValue

maxValue

private Float maxValue
Constructor Detail

ColoringData

public ColoringData()

ColoringData

public ColoringData(boolean useColors,
                    boolean logarithmic,
                    Float minValue,
                    Float midValue,
                    Float maxValue)
Method Detail

isUsingColors

public boolean isUsingColors()
If colors should be used or not.

Hibernate: property
column="`use_colors`" type="boolean" not-null="true"

setUsingColors

public void setUsingColors(boolean useColors)

isLogarithmic

public boolean isLogarithmic()
If values should be logarithmised or not.

Hibernate: property
column="`logarithmic`" type="boolean" not-null="true"

setLogarithmic

public void setLogarithmic(boolean logarithmic)

getMinValue

public Float getMinValue()
The value for the minimum endpoint color.

Hibernate: property
column="`min_value`" type="float" not-null="false"

setMinValue

public void setMinValue(Float minValue)

getMidValue

public Float getMidValue()
The value for the midpoint color.

Hibernate: property
column="`mid_value`" type="float" not-null="false"

setMidValue

public void setMidValue(Float midValue)

getMaxValue

public Float getMaxValue()
The value for the ax endpoint color.

Hibernate: property
column="`max_value`" type="float" not-null="false"

setMaxValue

public void setMaxValue(Float maxValue)

2.17.2: 2011-06-17