Class TraitInformation


  • public class TraitInformation
    extends java.lang.Object
    Stores information about a specific XML attribute or CSS property.
    • Field Detail

      • PERCENTAGE_VIEWPORT_WIDTH

        public static final short PERCENTAGE_VIEWPORT_WIDTH
        See Also:
        Constant Field Values
      • PERCENTAGE_VIEWPORT_HEIGHT

        public static final short PERCENTAGE_VIEWPORT_HEIGHT
        See Also:
        Constant Field Values
      • PERCENTAGE_VIEWPORT_SIZE

        public static final short PERCENTAGE_VIEWPORT_SIZE
        See Also:
        Constant Field Values
      • isAnimatable

        protected boolean isAnimatable
        Whether this trait can be animated.
      • type

        protected int type
        The SVG type of this trait.
      • percentageInterpretation

        protected short percentageInterpretation
        What percentages in this trait are relative to.
    • 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

      • 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.