org.apache.batik.dom.svg
Class AbstractSVGPreserveAspectRatio
java.lang.Object
org.apache.batik.dom.svg.AbstractSVGPreserveAspectRatio
- All Implemented Interfaces:
- SVGPreserveAspectRatio
- Direct Known Subclasses:
- SVGOMAnimatedPreserveAspectRatio.SVGOMPreserveAspectRatio
- public abstract class AbstractSVGPreserveAspectRatio
- extends java.lang.Object
- implements SVGPreserveAspectRatio
Abstract implementation for SVGPreservAspectRatio
This is the base implementation for SVGPreservAspectRatio
Field Summary |
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; |
Fields inherited from interface org.w3c.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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
align
protected short align
- align property by default the value is
SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMIDYMID
meetOrSlice
protected short meetOrSlice
- meetOrSlice property
by default the value is SVGPreserveAspectRatio.SVG_MEETORSLICE_MEET;
AbstractSVGPreserveAspectRatio
public AbstractSVGPreserveAspectRatio()
- Creates a new instance of AbstractSVGPreserveAspectRatio
getAlign
public short getAlign()
- Specified by:
getAlign
in interface SVGPreserveAspectRatio
getMeetOrSlice
public short getMeetOrSlice()
- Specified by:
getMeetOrSlice
in interface SVGPreserveAspectRatio
setAlign
public void setAlign(short align)
- Specified by:
setAlign
in interface SVGPreserveAspectRatio
setMeetOrSlice
public void setMeetOrSlice(short meetOrSlice)
- Specified by:
setMeetOrSlice
in interface SVGPreserveAspectRatio
reset
public void reset()
setAttributeValue
protected abstract void setAttributeValue(java.lang.String value)
throws org.w3c.dom.DOMException
- Throws:
org.w3c.dom.DOMException
createDOMException
protected abstract org.w3c.dom.DOMException createDOMException(short type,
java.lang.String key,
java.lang.Object[] args)
setValueAsString
protected void setValueAsString(java.lang.String value)
throws org.w3c.dom.DOMException
- Throws:
org.w3c.dom.DOMException
getValueAsString
protected java.lang.String getValueAsString()
- Return the value of String to be used on setAttributeNS, in
other word the mapping of align meetOrSlice to representation
string use by SVG
Copyright ? 2005 Apache Software Foundation. All Rights Reserved.