java.lang.Object
io.sf.carte.echosvg.anim.dom.TraitInformation
Stores information about a specific XML attribute or CSS property.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanWhether this trait can be animated.static final shortstatic final shortstatic final shortstatic final shortprotected shortWhat percentages in this trait are relative to.protected intThe SVG type of this trait. -
Constructor Summary
ConstructorsConstructorDescriptionTraitInformation(boolean isAnimatable, int type) Creates a new TraitInformation object.TraitInformation(boolean isAnimatable, int type, short percentageInterpretation) Creates a new TraitInformation object. -
Method Summary
Modifier and TypeMethodDescriptionshortReturns how percentage values in this trait are resolved.intgetType()Returns the SVG type of this trait.booleanReturns whether this trait is animatable.
-
Field Details
-
PERCENTAGE_FONT_SIZE
public static final short PERCENTAGE_FONT_SIZE- See Also:
-
PERCENTAGE_VIEWPORT_WIDTH
public static final short PERCENTAGE_VIEWPORT_WIDTH- See Also:
-
PERCENTAGE_VIEWPORT_HEIGHT
public static final short PERCENTAGE_VIEWPORT_HEIGHT- See Also:
-
PERCENTAGE_VIEWPORT_SIZE
public static final short PERCENTAGE_VIEWPORT_SIZE- See Also:
-
isAnimatable
protected boolean isAnimatableWhether this trait can be animated. -
type
protected int typeThe SVG type of this trait. -
percentageInterpretation
protected short percentageInterpretationWhat percentages in this trait are relative to.
-
-
Constructor Details
-
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 Details
-
isAnimatable
public boolean isAnimatable()Returns whether this trait is animatable. -
getType
public int getType()Returns the SVG type of this trait. -
getPercentageInterpretation
public short getPercentageInterpretation()Returns how percentage values in this trait are resolved.
-