Package org.apache.batik.bridge
Class ViewBox.ViewHandler
- java.lang.Object
-
- org.apache.batik.parser.AWTTransformProducer
-
- org.apache.batik.bridge.ViewBox.ViewHandler
-
- All Implemented Interfaces:
FragmentIdentifierHandler,PreserveAspectRatioHandler,TransformListHandler
- Enclosing class:
- ViewBox
protected static class ViewBox.ViewHandler extends AWTTransformProducer implements FragmentIdentifierHandler
This class can be used to store the value of the attribute viewBox or can also be used to store the various attribute value that can be specified on a SVG URI fragments.
-
-
Field Summary
Fields Modifier and Type Field Description shortalignbooleanhasIdbooleanhasPreserveAspectRatiobooleanhasTransformbooleanhasViewBoxbooleanhasViewTargetParamsbooleanhasZoomAndPanParamsjava.lang.StringidbooleanisMagnifybooleanmeetfloat[]viewBoxjava.lang.StringviewTargetParams-
Fields inherited from class org.apache.batik.parser.AWTTransformProducer
affineTransform
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedViewHandler()Constructs a newViewHandlerinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidendFragmentIdentifier()Invoked when the fragment identifier ends.voidendPreserveAspectRatio()Invoked when the PreserveAspectRatio parsing ends.voidendTransformList()ImplementsTransformListHandler.endTransformList().voidendViewTarget()Invoked when a view target specification ends.voididReference(java.lang.String s)Invoked when an ID has been parsed.voidmeet()Invoked when 'meet' has been parsed.voidnone()Invoked when 'none' been parsed.voidslice()Invoked when 'slice' has been parsed.voidstartFragmentIdentifier()Invoked when the fragment identifier starts.voidstartPreserveAspectRatio()Invoked when the PreserveAspectRatio parsing starts.voidstartViewTarget()Invoked when a view target specification starts.voidviewBox(float x, float y, float width, float height)Invoked when 'viewBox(x,y,width,height)' has been parsed.voidviewTarget(java.lang.String name)Invoked when a identifier has been parsed within a view target specification.voidxMaxYMax()Invoked when 'xMaxYMax' has been parsed.voidxMaxYMid()Invoked when 'xMaxYMid' has been parsed.voidxMaxYMin()Invoked when 'xMaxYMin' has been parsed.voidxMidYMax()Invoked when 'xMidYMax' has been parsed.voidxMidYMid()Invoked when 'xMidYMid' has been parsed.voidxMidYMin()Invoked when 'xMidYMin' has been parsed.voidxMinYMax()Invoked when 'xMinYMax' has been parsed.voidxMinYMid()Invoked when 'xMinYMid' has been parsed.voidxMinYMin()Invoked when 'xMinYMin' has been parsed.voidzoomAndPan(boolean magnify)Invoked when a 'zoomAndPan' specification has been parsed.-
Methods inherited from class org.apache.batik.parser.AWTTransformProducer
createAffineTransform, createAffineTransform, getAffineTransform, matrix, rotate, rotate, scale, scale, skewX, skewY, startTransformList, translate, translate
-
-
-
-
Field Detail
-
hasTransform
public boolean hasTransform
-
hasId
public boolean hasId
-
hasViewBox
public boolean hasViewBox
-
hasViewTargetParams
public boolean hasViewTargetParams
-
hasZoomAndPanParams
public boolean hasZoomAndPanParams
-
id
public java.lang.String id
-
viewBox
public float[] viewBox
-
viewTargetParams
public java.lang.String viewTargetParams
-
isMagnify
public boolean isMagnify
-
hasPreserveAspectRatio
public boolean hasPreserveAspectRatio
-
align
public short align
-
meet
public boolean meet
-
-
Method Detail
-
endTransformList
public void endTransformList() throws ParseExceptionDescription copied from class:AWTTransformProducerImplementsTransformListHandler.endTransformList().- Specified by:
endTransformListin interfaceTransformListHandler- Overrides:
endTransformListin classAWTTransformProducer- Throws:
ParseException- if an error occured while processing the transform
-
startFragmentIdentifier
public void startFragmentIdentifier() throws ParseExceptionInvoked when the fragment identifier starts.- Specified by:
startFragmentIdentifierin interfaceFragmentIdentifierHandler- Throws:
ParseException- if an error occured while processing the fragment identifier
-
idReference
public void idReference(java.lang.String s) throws ParseExceptionInvoked when an ID has been parsed.- Specified by:
idReferencein interfaceFragmentIdentifierHandler- Parameters:
s- The string that represents the parsed ID.- Throws:
ParseException- if an error occured while processing the fragment identifier
-
viewBox
public void viewBox(float x, float y, float width, float height) throws ParseExceptionInvoked when 'viewBox(x,y,width,height)' has been parsed.- Specified by:
viewBoxin interfaceFragmentIdentifierHandler- Parameters:
x- the viewbox x coordinatey- the viewbox y coordinatewidth- the viewbox widthheight- the viewbox height- Throws:
ParseException- if an error occured while processing the fragment identifier
-
startViewTarget
public void startViewTarget() throws ParseExceptionInvoked when a view target specification starts.- Specified by:
startViewTargetin interfaceFragmentIdentifierHandler- Throws:
ParseException- if an error occured while processing the fragment identifier
-
viewTarget
public void viewTarget(java.lang.String name) throws ParseExceptionInvoked when a identifier has been parsed within a view target specification.- Specified by:
viewTargetin interfaceFragmentIdentifierHandler- Parameters:
name- the target name.- Throws:
ParseException- if an error occured while processing the fragment identifier
-
endViewTarget
public void endViewTarget() throws ParseExceptionInvoked when a view target specification ends.- Specified by:
endViewTargetin interfaceFragmentIdentifierHandler- Throws:
ParseException- if an error occured while processing the fragment identifier
-
zoomAndPan
public void zoomAndPan(boolean magnify)
Invoked when a 'zoomAndPan' specification has been parsed.- Specified by:
zoomAndPanin interfaceFragmentIdentifierHandler- Parameters:
magnify- true if 'magnify' has been parsed.- Throws:
ParseException- if an error occured while processing the fragment identifier
-
endFragmentIdentifier
public void endFragmentIdentifier() throws ParseExceptionInvoked when the fragment identifier ends.- Specified by:
endFragmentIdentifierin interfaceFragmentIdentifierHandler- Throws:
ParseException- if an error occured while processing the fragment identifier
-
startPreserveAspectRatio
public void startPreserveAspectRatio() throws ParseExceptionInvoked when the PreserveAspectRatio parsing starts.- Specified by:
startPreserveAspectRatioin interfacePreserveAspectRatioHandler- Throws:
ParseException- if an error occured while processing the transform
-
none
public void none() throws ParseExceptionInvoked when 'none' been parsed.- Specified by:
nonein interfacePreserveAspectRatioHandler- Throws:
ParseException- if an error occured while processing the transform
-
xMaxYMax
public void xMaxYMax() throws ParseExceptionInvoked when 'xMaxYMax' has been parsed.- Specified by:
xMaxYMaxin interfacePreserveAspectRatioHandler- Throws:
ParseException- if an error occured while processing the transform
-
xMaxYMid
public void xMaxYMid() throws ParseExceptionInvoked when 'xMaxYMid' has been parsed.- Specified by:
xMaxYMidin interfacePreserveAspectRatioHandler- Throws:
ParseException- if an error occured while processing the transform
-
xMaxYMin
public void xMaxYMin() throws ParseExceptionInvoked when 'xMaxYMin' has been parsed.- Specified by:
xMaxYMinin interfacePreserveAspectRatioHandler- Throws:
ParseException- if an error occured while processing the transform
-
xMidYMax
public void xMidYMax() throws ParseExceptionInvoked when 'xMidYMax' has been parsed.- Specified by:
xMidYMaxin interfacePreserveAspectRatioHandler- Throws:
ParseException- if an error occured while processing the transform
-
xMidYMid
public void xMidYMid() throws ParseExceptionInvoked when 'xMidYMid' has been parsed.- Specified by:
xMidYMidin interfacePreserveAspectRatioHandler- Throws:
ParseException- if an error occured while processing the transform
-
xMidYMin
public void xMidYMin() throws ParseExceptionInvoked when 'xMidYMin' has been parsed.- Specified by:
xMidYMinin interfacePreserveAspectRatioHandler- Throws:
ParseException- if an error occured while processing the transform
-
xMinYMax
public void xMinYMax() throws ParseExceptionInvoked when 'xMinYMax' has been parsed.- Specified by:
xMinYMaxin interfacePreserveAspectRatioHandler- Throws:
ParseException- if an error occured while processing the transform
-
xMinYMid
public void xMinYMid() throws ParseExceptionInvoked when 'xMinYMid' has been parsed.- Specified by:
xMinYMidin interfacePreserveAspectRatioHandler- Throws:
ParseException- if an error occured while processing the transform
-
xMinYMin
public void xMinYMin() throws ParseExceptionInvoked when 'xMinYMin' has been parsed.- Specified by:
xMinYMinin interfacePreserveAspectRatioHandler- Throws:
ParseException- if an error occured while processing the transform
-
meet
public void meet() throws ParseExceptionInvoked when 'meet' has been parsed.- Specified by:
meetin interfacePreserveAspectRatioHandler- Throws:
ParseException- if an error occured while processing the transform
-
slice
public void slice() throws ParseExceptionInvoked when 'slice' has been parsed.- Specified by:
slicein interfacePreserveAspectRatioHandler- Throws:
ParseException- if an error occured while processing the transform
-
endPreserveAspectRatio
public void endPreserveAspectRatio() throws ParseExceptionInvoked when the PreserveAspectRatio parsing ends.- Specified by:
endPreserveAspectRatioin interfacePreserveAspectRatioHandler- Throws:
ParseException- if an error occured while processing the transform
-
-