org.apache.batik.dom.svg
Class AbstractSVGPreserveAspectRatio

java.lang.Object
  extended byorg.apache.batik.dom.svg.AbstractSVGPreserveAspectRatio
All Implemented Interfaces:
SVGPreserveAspectRatio
Direct Known Subclasses:
SVGOMAnimatedPreserveAspectRatio.SVGOMPreserveAspectRatio

public abstract class AbstractSVGPreserveAspectRatio
extends Object
implements SVGPreserveAspectRatio

Abstract implementation for SVGPreservAspectRatio This is the base implementation for SVGPreservAspectRatio


Nested Class Summary
protected  class AbstractSVGPreserveAspectRatio.PreserveAspectRatioParserHandler
           
 
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
 
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()
           
protected  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
 void reset()
           
 void setAlign(short align)
           
protected abstract  void setAttributeValue(String value)
           
 void setMeetOrSlice(short meetOrSlice)
           
protected  void setValueAsString(String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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;

Constructor Detail

AbstractSVGPreserveAspectRatio

public AbstractSVGPreserveAspectRatio()
Creates a new instance of AbstractSVGPreserveAspectRatio

Method Detail

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(String value)
                                   throws DOMException
Throws:
DOMException

createDOMException

protected abstract DOMException createDOMException(short type,
                                                   String key,
                                                   Object[] args)

setValueAsString

protected void setValueAsString(String value)
                         throws DOMException
Throws:
DOMException

getValueAsString

protected 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.