org.apache.batik.dom.svg
public abstract class AbstractSVGPreserveAspectRatio extends Object implements SVGPreserveAspectRatio, SVGConstants
Nested Class Summary | |
---|---|
protected class | AbstractSVGPreserveAspectRatio.PreserveAspectRatioParserHandler |
Field Summary | |
---|---|
protected static String[] | ALIGN_VALUES
Strings for the 'align' values. |
protected short | align
align property by default the value is
SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMIDYMID |
protected short | meetOrSlice
meetOrSlice property
by default the value is SVGPreserveAspectRatio.SVG_MEETORSLICE_MEET; |
protected static String[] | MEET_OR_SLICE_VALUES
Strings for the 'meet-or-slice' values. |
Constructor Summary | |
---|---|
AbstractSVGPreserveAspectRatio() Creates a new instance of AbstractSVGPreserveAspectRatio |
Method Summary | |
---|---|
protected abstract DOMException | createDOMException(short type, String key, Object[] args) |
short | getAlign() |
short | getMeetOrSlice() |
static String | getValueAsString(short align, short meetOrSlice)
Returns a string representation of a preserve aspect ratio value
specified numerically. |
protected String | getValueAsString()
Returns the string representation of the preserve aspect ratio value. |
void | reset() |
void | setAlign(short align) |
protected abstract void | setAttributeValue(String value) |
void | setMeetOrSlice(short meetOrSlice) |
protected void | setValueAsString(String value) |
Parameters: align the align value, one of the SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_* constants meetOrSlice the meet-or-slice value, one of the SVGPreserveAspectRatio.SVG_MEETORSLICE_* constants