Class Rotate


  • public final class Rotate
    extends Attribute
    An attribute that describes the rotation of a container, i.e., a value in degrees progressing counterclockwise. The point of rotation can be changed by setting the anchorType attribute, but by default it is the top-left corner.
    • Constructor Detail

      • Rotate

        public Rotate​(java.lang.String name,
                      Angle other)
      • Rotate

        public Rotate​(Rotate other)
      • Rotate

        public Rotate​(java.lang.String name,
                      java.lang.String stringValue)
    • Method Detail

      • getAngle

        public Angle getAngle()
      • getValue

        public double getValue()
      • newAttribute

        public Attribute newAttribute​(java.lang.String NS,
                                      java.lang.String localName,
                                      java.lang.String qName,
                                      java.lang.String value)
        Description copied from class: Attribute
        Create a new attribute, given all attribute parameters
        Specified by:
        newAttribute in class Attribute
        Parameters:
        NS - the namespace for this attribute
        localName - the local name for this attribute
        qName - the qualified name for this attribute
        value - the string to use to create the new attribute
        Returns:
        a new attribute
      • newAttribute

        public Attribute newAttribute​(java.lang.String NS,
                                      java.lang.String localName,
                                      java.lang.String qName,
                                      java.lang.String value,
                                      boolean internSymbols)
        Description copied from class: Attribute
        Create a new attribute, given all attribute parameters
        Specified by:
        newAttribute in class Attribute
        Parameters:
        NS - the namespace for this attribute
        localName - the local name for this attribute
        qName - the qualified name for this attribute
        value - the string to use to create the new attribute
        internSymbols - indicates whether the symbols in other parameters need to be interned.
        Returns:
        a new attribute
      • toString

        public java.lang.String toString()
        Description copied from class: Attribute
        Generates this attribute's value as a string.
        Overrides:
        toString in class Attribute
        Returns:
        the attribute value.
        See Also:
        Object.toString()