com.davisor.graphics
Class ShapeScale
java.lang.Object
java.text.Format
com.davisor.data.Type
com.davisor.graphics.AbstractScale
com.davisor.graphics.ShapeScale
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.Comparator, com.davisor.core.Dupable, java.io.Serializable
- public class ShapeScale
- extends AbstractScale
- Since:
- JDK1.2
- See Also:
- Serialized Form
| Nested classes inherited from class java.text.Format |
java.text.Format.Field |
|
Field Summary |
static java.lang.String |
SHAPE
Prefix for shape scale ("shape"). |
| Fields inherited from class com.davisor.graphics.AbstractScale |
COUNT, M_additionalValues, M_dataType, M_defaultMode, M_infinityAdditionalValues, M_infinityPoint, M_legendFormat, M_points, M_stringPoints, MAX, MAXPERCENT, MIN, MINPERCENT, MODE_LINEAR, MODE_NONE, SCALEFIELDNAMES, TOTALCOUNT |
|
Constructor Summary |
ShapeScale(ShapeScale ss)
Deep copy constructor. |
ShapeScale(Type dataType,
java.lang.String defaultMode,
java.lang.String legendFormat)
Sets given attributes. |
| Methods inherited from class com.davisor.graphics.AbstractScale |
addPoint, addPoint, getAdditionalValues, getDefaultInterpolationMode, getInfinityAdditionalValues, getInfinityPoint, getInfinityPointLegendFormat, getInterpolationMode, getLegendFormat, getPointLegendFormat, getPoints, getScaledValue, getStringPoints, getValueClass, getValues, init, toData, toData, toString, zero |
| Methods inherited from class com.davisor.data.Type |
ceil, check, check, compare, create, create, create, create, create, dup, equals, floor, format, getCompatibility, getDataName, getFormat, getId, getID, getMetaData, getMetaData, getSpecs, getSQLCode, getSQLName, getSQLName, getTypeName, hashCode, isNull, parseObject, register, register, setDataName, setFormat, setId, setID, setMetaData, setMetaData, setSpecs, toData, toData, toXML, xmlEnd, xmlStart |
| Methods inherited from class java.text.Format |
clone, format, formatToCharacterIterator, parseObject |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
SHAPE
public static final java.lang.String SHAPE
- Prefix for shape scale ("shape").
- See Also:
- Constant Field Values
ShapeScale
public ShapeScale(ShapeScale ss)
- Deep copy constructor.
ShapeScale
public ShapeScale(Type dataType,
java.lang.String defaultMode,
java.lang.String legendFormat)
- Sets given attributes.
- Parameters:
dataType - point data typedefaultMode - default interpolation modelegendFormat - legend value format (may be null)
dup
public com.davisor.core.Dupable dup()
- Description copied from class:
Type
- Makes a deep copy of this object.
- Specified by:
dup in interface com.davisor.core.Dupable- Specified by:
dup in class Type
getDeinterpolatedValue
protected DataValue getDeinterpolatedValue(double factor,
DataValue minValue,
DataValue maxValue)
- Returns a deinterpolated value.
- Specified by:
getDeinterpolatedValue in class AbstractScale
- Parameters:
factor - Scaling factor.minValue - Value to be returned when scaling factor is zero (0).maxValue - Value to be returned when scaling factor is one (1).
getShape
public java.awt.Shape getShape(DataValue value)
- Returns a Shape defined for the given DataValue or null.
toString
public java.lang.String toString()
- Returns an XML representation of this object.
- Overrides:
toString in class Type
- See Also:
Type.xmlEnd(),
Type.xmlStart(),
Strings.toXML(String,Object)
Copyright © 2001-2004 Davisor Oy. All Rights Reserved.