org.apache.batik.dom.svg

Class TraitInformation

public class TraitInformation extends Object

Stores information about a specific XML attribute or CSS property.
Field Summary
protected booleanisAnimatable
Whether this trait can be animated.
protected shortpercentageInterpretation
What percentages in this trait are relative to.
static shortPERCENTAGE_FONT_SIZE
static shortPERCENTAGE_VIEWPORT_HEIGHT
static shortPERCENTAGE_VIEWPORT_SIZE
static shortPERCENTAGE_VIEWPORT_WIDTH
protected inttype
The SVG type of this trait.
Constructor Summary
TraitInformation(boolean isAnimatable, int type, short percentageInterpretation)
Creates a new TraitInformation object.
TraitInformation(boolean isAnimatable, int type)
Creates a new TraitInformation object.
Method Summary
shortgetPercentageInterpretation()
Returns how percentage values in this trait are resolved.
intgetType()
Returns the SVG type of this trait.
booleanisAnimatable()
Returns whether this trait is animatable.

Field Detail

isAnimatable

protected boolean isAnimatable
Whether this trait can be animated.

percentageInterpretation

protected short percentageInterpretation
What percentages in this trait are relative to.

PERCENTAGE_FONT_SIZE

public static final short PERCENTAGE_FONT_SIZE

PERCENTAGE_VIEWPORT_HEIGHT

public static final short PERCENTAGE_VIEWPORT_HEIGHT

PERCENTAGE_VIEWPORT_SIZE

public static final short PERCENTAGE_VIEWPORT_SIZE

PERCENTAGE_VIEWPORT_WIDTH

public static final short PERCENTAGE_VIEWPORT_WIDTH

type

protected int type
The SVG type of this trait.

Constructor Detail

TraitInformation

public TraitInformation(boolean isAnimatable, int type, short percentageInterpretation)
Creates a new TraitInformation object.

TraitInformation

public TraitInformation(boolean isAnimatable, int type)
Creates a new TraitInformation object.

Method Detail

getPercentageInterpretation

public short getPercentageInterpretation()
Returns how percentage values in this trait are resolved.

getType

public int getType()
Returns the SVG type of this trait.

isAnimatable

public boolean isAnimatable()
Returns whether this trait is animatable.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.