Class SVGPreserveAspectRatioImpl

java.lang.Object
org.loboevolution.html.dom.svgimpl.SVGPreserveAspectRatioImpl
All Implemented Interfaces:
SVGPreserveAspectRatio

public class SVGPreserveAspectRatioImpl extends Object implements SVGPreserveAspectRatio

SVGPreserveAspectRatioImpl class.

  • Field Details

    • align

      protected short align
    • meetOrSlice

      protected short meetOrSlice
  • Constructor Details

    • SVGPreserveAspectRatioImpl

      public SVGPreserveAspectRatioImpl()
      Constructs a new SVGPreserveAspectRatioImpl. The align attribute is initialized to SVG_PRESERVEASPECTRATIO_NONE and meetOrSlice is initialized to SVG_MEETORSLICE_MEET.
    • SVGPreserveAspectRatioImpl

      public SVGPreserveAspectRatioImpl(SVGPreserveAspectRatio preserveAspectRatio)
      Copy constructor.
  • Method Details

    • getAlign

      public short getAlign()
      Returns the alignment value as specified by one of the SVG_PRESERVEASPECTRATIO constants.
      Specified by:
      getAlign in interface SVGPreserveAspectRatio
      Returns:
      The alignement value.
    • setAlign

      public void setAlign(short align)
      Sets the alignment value as specified by one of the SVG_PRESERVEASPECTRATIO constants.
      Specified by:
      setAlign in interface SVGPreserveAspectRatio
      Parameters:
      align - The value to set the alginment to.
    • getMeetOrSlice

      public short getMeetOrSlice()
      Returns the meetOrSlice value as specified by one of the SVG_MEETORSLICE constants.
      Specified by:
      getMeetOrSlice in interface SVGPreserveAspectRatio
      Returns:
      The meetOrSlice value.
    • setMeetOrSlice

      public void setMeetOrSlice(short meetOrSlice)
      Sets the meetOrSlice value as specified by one of the SVG_MEETORSLICE constants.
      Specified by:
      setMeetOrSlice in interface SVGPreserveAspectRatio
      Parameters:
      meetOrSlice - The value to set the meetOrSlice to.
    • getAlignConst

      public static short getAlignConst(String alignString)
      Returns the appropriate SVGPreserveAspectRatio constanct for the given alignment string.
      Parameters:
      alignString - The alignment string.
      Returns:
      The alignment constant.
    • getMeetOrSliceConst

      public static short getMeetOrSliceConst(String meetOrSliceString)
      Returns the appropriate SVGPreserveAspectRatio constanct for the given meetOrSlice string.
      Parameters:
      meetOrSliceString - The meetOrSlice string.
      Returns:
      The meetOrSlice constant.
    • getAlignString

      public static String getAlignString(short align)
    • getMeetOrSliceString

      public static String getMeetOrSliceString(short meetOrSlice)
    • toString

      public String toString()
      Overrides:
      toString in class Object