Package org.loboevolution.svg.dom
Class SVGPreserveAspectRatioImpl
java.lang.Object
org.loboevolution.svg.dom.SVGPreserveAspectRatioImpl
- All Implemented Interfaces:
SVGPreserveAspectRatio
SVGPreserveAspectRatioImpl class.
-
Field Summary
FieldsFields inherited from interface org.loboevolution.svg.SVGPreserveAspectRatio
SVG_MEETORSLICE_MEET, SVG_MEETORSLICE_SLICE, SVG_MEETORSLICE_UNKNOWN, SVG_PRESERVEASPECTRATIO_NONE, SVG_PRESERVEASPECTRATIO_UNKNOWN, SVG_PRESERVEASPECTRATIO_XMAXYMAX, SVG_PRESERVEASPECTRATIO_XMAXYMID, SVG_PRESERVEASPECTRATIO_XMAXYMIN, SVG_PRESERVEASPECTRATIO_XMIDYMAX, SVG_PRESERVEASPECTRATIO_XMIDYMID, SVG_PRESERVEASPECTRATIO_XMIDYMIN, SVG_PRESERVEASPECTRATIO_XMINYMAX, SVG_PRESERVEASPECTRATIO_XMINYMID, SVG_PRESERVEASPECTRATIO_XMINYMIN -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new SVGPreserveAspectRatioImpl.SVGPreserveAspectRatioImpl(SVGPreserveAspectRatio preserveAspectRatio) Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionshortgetAlign()Returns the alignment value as specified by one of the SVG_PRESERVEASPECTRATIO constants.static shortgetAlignConst(String alignString) Returns the appropriate SVGPreserveAspectRatio constanct for the given alignment string.static StringgetAlignString(short align) shortReturns the meetOrSlice value as specified by one of the SVG_MEETORSLICE constants.static shortgetMeetOrSliceConst(String meetOrSliceString) Returns the appropriate SVGPreserveAspectRatio constanct for the given meetOrSlice string.static StringgetMeetOrSliceString(short meetOrSlice) voidsetAlign(short align) Sets the alignment value as specified by one of the SVG_PRESERVEASPECTRATIO constants.voidsetMeetOrSlice(short meetOrSlice) Sets the meetOrSlice value as specified by one of the SVG_MEETORSLICE constants.toString()
-
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
Copy constructor.
-
-
Method Details
-
getAlign
public short getAlign()Returns the alignment value as specified by one of the SVG_PRESERVEASPECTRATIO constants.- Specified by:
getAlignin interfaceSVGPreserveAspectRatio- 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:
setAlignin interfaceSVGPreserveAspectRatio- 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:
getMeetOrSlicein interfaceSVGPreserveAspectRatio- 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:
setMeetOrSlicein interfaceSVGPreserveAspectRatio- Parameters:
meetOrSlice- The value to set the meetOrSlice to.
-
getAlignConst
Returns the appropriate SVGPreserveAspectRatio constanct for the given alignment string.- Parameters:
alignString- The alignment string.- Returns:
- The alignment constant.
-
getMeetOrSliceConst
Returns the appropriate SVGPreserveAspectRatio constanct for the given meetOrSlice string.- Parameters:
meetOrSliceString- The meetOrSlice string.- Returns:
- The meetOrSlice constant.
-
getAlignString
-
getMeetOrSliceString
-
toString
-