|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.davisor.graphics.IndirectAnnotatedPaint
com.davisor.graphics.data.AnnotatedPaintValue
AnnotatedPaintValue allows annotation information to be assosiated to paint values.
AnnotatedGraphics2D,
PaintValue,
Serialized Form| Field Summary |
| Fields inherited from class com.davisor.graphics.IndirectAnnotatedPaint |
M_channelIndex, M_contextIndex, M_elementIndex, M_id, M_paint, M_properties |
| Fields inherited from interface java.awt.Transparency |
BITMASK, OPAQUE, TRANSLUCENT |
| Constructor Summary | |
AnnotatedPaintValue(AnnotatedPaintValue apv,
boolean deep)
Deep or shallow copy constructor. |
|
AnnotatedPaintValue(PaintValue paintValue,
com.davisor.core.Annotated annotation)
Constructs an annotated paint from a paint value and annotation string. |
|
AnnotatedPaintValue(PaintValue paintValue,
java.util.Properties properties,
long elementIndex,
int channelIndex,
short contextIndex)
Constructs an annotated paint from a paint value and annotation string. |
|
AnnotatedPaintValue(PaintValue paintValue,
java.util.Properties properties,
long elementIndex,
int channelIndex,
short contextIndex,
java.lang.String id)
Deprecated. explicit identity strings are obsolete |
|
| Method Summary | |
DataValue |
abs()
Returns absolute data value of current value. |
DataValue |
add(DataValue value)
Adds data values together. |
java.awt.Paint |
brighterPaint()
Creates a brighter version of this paint. |
DataValue |
ceil(DataValue precision)
Quantizes the current value up to an even value within given precision. |
int |
compareTo(java.lang.Object o)
Compares this annotated paint value with other value objects. |
java.awt.Paint |
darkerPaint()
Creates a darker version of this paint. |
double |
deinterpolate(DataValue min,
DataValue max)
De-interpolates the current data value to a scalar value in respect with the given data value range. |
DataValue |
div(DataValue value)
Divides current value with a data value. |
com.davisor.core.Dupable |
dup()
Makes a deep copy of this object. |
DataValue |
floor(DataValue precision)
Quantizes the current value down to an even value within given precision. |
java.lang.String |
getCreationString()
Implements PaintValue interface method. |
java.lang.String |
getFormat()
Gets the type specification optimal for this particular value. |
Type |
getType()
Gets the color data type. |
DataValue |
interpolate(double value,
DataValue max)
Interpolates the given scalar value to data value in respect with the range defined by this value and the given maximum value. |
boolean |
isNull()
Tests if this data object value is undetermined. |
DataValue |
max(DataValue value)
Finds the larger of this and the given data value. |
DataValue |
min(DataValue value)
Finds the smaller of this and the given data value. |
DataValue |
mul(DataValue value)
Multiplies current value with a data value. |
DataValue |
negate()
Returns the negation of current value. |
BetterPaint |
next()
Gets the next paint in this paint series. |
void |
setCreationString(java.lang.String creationString)
Implements PaintValue interface method. |
void |
setValue(java.lang.String stringValue,
java.text.ParsePosition status)
Sets the data value from a string value. |
DataValue |
sub(DataValue value)
Substracts a data value. |
void |
toStatement(java.sql.PreparedStatement statement,
int parameter)
Converts the data to a prepared statement input parameter. |
java.lang.String |
toXML()
Gets the XML string representation of this value. |
DataValue |
unit(DataValue targetValue,
double maxSteps)
Gets the largest suitable unit step to represent a value change between this value and the given target value. |
| Methods inherited from class com.davisor.graphics.IndirectAnnotatedPaint |
createContext, equals, getAddress, getChannelIndex, getContextIndex, getDescription, getElementIndex, getID, getPaint, getProperties, getProperty, getPropertyNames, getTarget, getTransparency, hashCode, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.davisor.data.DataValue |
toString |
| Methods inherited from interface java.awt.Paint |
createContext |
| Methods inherited from interface java.awt.Transparency |
getTransparency |
| Constructor Detail |
public AnnotatedPaintValue(AnnotatedPaintValue apv,
boolean deep)
apv - source datadeep - determine if the copying is deep or shallowgetType(),
Type.dup()
public AnnotatedPaintValue(PaintValue paintValue,
com.davisor.core.Annotated annotation)
paintValue - paint value to be annotatedannotation - annotation information the paint is to be annotated with
public AnnotatedPaintValue(PaintValue paintValue,
java.util.Properties properties,
long elementIndex,
int channelIndex,
short contextIndex)
paintValue - paint value to be annotatedproperties - annotation information (may be null)elementIndex - annotation element indexchannelIndex - annotation channel indexcontextIndex - annotation context index
public AnnotatedPaintValue(PaintValue paintValue,
java.util.Properties properties,
long elementIndex,
int channelIndex,
short contextIndex,
java.lang.String id)
paintValue - paint value to be annotatedproperties - annotation information (may be null)elementIndex - annotation element indexchannelIndex - annotation channel indexcontextIndex - annotation context indexid - paint identity (may be null)| Method Detail |
public Type getType()
throws InvalidDataException
getType in interface DataInvalidDataException - if type retrieval failspublic boolean isNull()
isNull in interface SerializableDataType.isNull(com.davisor.data.SerializableData)
public DataValue abs()
throws InvalidDataException
abs in interface DataValueInvalidDataException - if absolute value can not be computed
public DataValue add(DataValue value)
throws InvalidDataException
add in interface DataValuevalue - a data value to be added to this data value
InvalidDataException - if data values can not added together.
public DataValue ceil(DataValue precision)
throws InvalidDataException
ceil in interface DataValueprecision - the precision within quantization occurs
InvalidDataException - if precision was of unacceptable typefloor(com.davisor.data.DataValue)
public double deinterpolate(DataValue min,
DataValue max)
throws InvalidDataException
deinterpolate in interface DataValuemin - a data value representing a range's lower limitmax - a data value representing a range's higher limit
DeinterpolationException - if the de-interpolation fails due
to a de-interpolation value conflict
InvalidDataException - if the de-interpolation fails for some
other reasoninterpolate(double, com.davisor.data.DataValue),
DeinterpolationException,
TupleData.deinterpolate(com.davisor.data.DataValue, com.davisor.data.DataValue)
public DataValue div(DataValue value)
throws InvalidDataException
div in interface DataValuevalue - the divider
InvalidDataException - if current data value can not be divided.
public DataValue floor(DataValue precision)
throws InvalidDataException
floor in interface DataValueprecision - the precision within the quantization occurs
InvalidDataException - if precision was of unacceptable typeceil(com.davisor.data.DataValue)public java.lang.String getFormat()
getFormat in interface DataValueData.getType(),
Type.getFormat(),
Type.setFormat(java.lang.String)
public DataValue interpolate(double value,
DataValue max)
throws InvalidDataException
interpolate in interface DataValuevalue - the scalar value to be interpolatedmax - a data value representing a range's higher limit
InvalidDataException - if the interpolation failsdeinterpolate(com.davisor.data.DataValue, com.davisor.data.DataValue)
public DataValue max(DataValue value)
throws InvalidDataException
max in interface DataValuevalue - a data value to be compared with this data value
InvalidDataException - if the values cannot be compared
public DataValue min(DataValue value)
throws InvalidDataException
min in interface DataValuevalue - a data value to be compared with this data value
InvalidDataException - if the values cannot be compared
public DataValue mul(DataValue value)
throws InvalidDataException
mul in interface DataValuevalue - the multiplier
InvalidDataException - if current data value can not be multiplied.
public DataValue negate()
throws InvalidDataException
negate in interface DataValueInvalidDataException - if absolute value can not be computed
public void setValue(java.lang.String stringValue,
java.text.ParsePosition status)
throws InvalidDataException
setValue in interface DataValuestringValue - string value to be parsed (may be null)status - parse status (may be null)
InvalidDataException - if string value could not be parserCountType.countValue(String,ParsePosition)
public DataValue sub(DataValue value)
throws InvalidDataException
sub in interface DataValuevalue - a data value to be substracted from this data value
InvalidDataException - if value can not be
substracted.
public void toStatement(java.sql.PreparedStatement statement,
int parameter)
throws java.sql.SQLException
toStatement in interface DataValuejava.sql.SQLException - if a SQL error occurspublic java.lang.String toXML()
toXML in interface DataValueIndirectAnnotatedPaint.toString()
public DataValue unit(DataValue targetValue,
double maxSteps)
throws InvalidDataException
unit in interface DataValuetargetValue - target value to be reached (may be null)maxSteps - maximum number of steps (zero leaves the choise open)
InvalidDataException - if precision was of unacceptable typepublic com.davisor.core.Dupable dup()
dup in interface com.davisor.core.Dupablepublic int compareTo(java.lang.Object o)
This object will be greater than any object that is not an
instance of AnnotatedPaintValue. If the other object
is also an instance of AnnotatedPaintValue, the
paint values of these objects are compared. If the paint values
are equal, paint annotation strings are compared.
compareTo in interface java.lang.ComparableCompare.compareTo(Object,Object)public java.awt.Paint brighterPaint()
brighterPaint in interface BetterPaintdarkerPaint()public java.awt.Paint darkerPaint()
darkerPaint in interface BetterPaintbrighterPaint()public BetterPaint next()
next in interface BetterPaintpublic java.lang.String getCreationString()
PaintValue interface method.
getCreationString in interface PaintValuepublic void setCreationString(java.lang.String creationString)
PaintValue interface method.
setCreationString in interface PaintValue
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||