Class SVGPreserveAspectRatioImpl
java.lang.Object
org.loboevolution.html.dom.svgimpl.SVGPreserveAspectRatioImpl
- All Implemented Interfaces:
SVGPreserveAspectRatio
SVGPreserveAspectRatioImpl class.
-
Field Summary
Fields inherited from interface org.loboevolution.html.dom.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
ConstructorDescriptionConstructs a new SVGPreserveAspectRatioImpl.SVGPreserveAspectRatioImpl
(SVGPreserveAspectRatio preserveAspectRatio) Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionshort
getAlign()
Returns the alignment value as specified by one of the SVG_PRESERVEASPECTRATIO constants.static short
getAlignConst
(String alignString) Returns the appropriate SVGPreserveAspectRatio constanct for the given alignment string.static String
getAlignString
(short align) short
Returns the meetOrSlice value as specified by one of the SVG_MEETORSLICE constants.static short
getMeetOrSliceConst
(String meetOrSliceString) Returns the appropriate SVGPreserveAspectRatio constanct for the given meetOrSlice string.static String
getMeetOrSliceString
(short meetOrSlice) void
setAlign
(short align) Sets the alignment value as specified by one of the SVG_PRESERVEASPECTRATIO constants.void
setMeetOrSlice
(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:
getAlign
in 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:
setAlign
in 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:
getMeetOrSlice
in 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:
setMeetOrSlice
in 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
-