FileDocCategorySizeDatePackage
BaseValue.javaAPI DocphoneME MR2 API (J2ME)3675Wed May 02 18:00:36 BST 2007com.sun.perseus.model

BaseValue

public interface BaseValue
The BaseValue interface is used to abstract either the original value of a trait (like 'x' on a <rect>) or a pseudo-trait (like '#text' on a <text> or '#motion' on SVGLocatable). It is implemented by TraitAnim and Animation
version
$Id: BaseValue.java,v 1.4 2006/06/29 10:47:29 ln156897 Exp $

Fields Summary
Constructors Summary
Methods Summary
public java.lang.Object[]getBaseValue()
Returns the BaseValue as an array of objects. The dimensions of the returned value depend on the number of components in the trait. There are as many values as there are 'components' in the value. For example, a stroke-dash array trait value has as many components as there are dask lengths in the value. An SVGMatrix trait has six components. A coordinate trait has a single component. Then each object value can be a String or a float array. In the case of float arrays, each float array has as many entries as there are dimensions in the component value. For example, each stroke-dash array component has only one entry, because there is only on dimension for each dash or gap length. An RGB trait has 3 dimensions (one for r, one for g and one for b). The following table summarizes the trait types and their number of components and dimensions:
Trait Type # components # dimensions
String 1 NA
Number 1 1
Length/Coordinate 1 1
List of XXX Number of entries in the list Same number of components as list entries.
Angle 1 1
Color 1 3
transform list 1 6
URI NA NA

return
the base value as an Object array. The dimensions of the returned array depend on the trait.