Package org.apache.batik.parser
Class DefaultFragmentIdentifierHandler
- java.lang.Object
-
- org.apache.batik.parser.DefaultPreserveAspectRatioHandler
-
- org.apache.batik.parser.DefaultFragmentIdentifierHandler
-
- All Implemented Interfaces:
FragmentIdentifierHandler,PreserveAspectRatioHandler,TransformListHandler
public class DefaultFragmentIdentifierHandler extends DefaultPreserveAspectRatioHandler implements FragmentIdentifierHandler
This class provides an adapter for FragmentIdentifierHandler.- Version:
- $Id: DefaultFragmentIdentifierHandler.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Field Summary
Fields Modifier and Type Field Description static FragmentIdentifierHandlerINSTANCEThe only instance of this class.
-
Constructor Summary
Constructors Modifier Constructor Description protectedDefaultFragmentIdentifierHandler()This class does not need to be instantiated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidendFragmentIdentifier()voidendTransformList()ImplementsTransformListHandler.endTransformList().voidendViewTarget()Invoked when a view target specification ends.voididReference(java.lang.String s)Invoked when an ID has been parsed.voidmatrix(float a, float b, float c, float d, float e, float f)voidrotate(float theta)ImplementsTransformListHandler.rotate(float).voidrotate(float theta, float cx, float cy)ImplementsTransformListHandler.rotate(float,float,float).voidscale(float sx)ImplementsTransformListHandler.scale(float).voidscale(float sx, float sy)ImplementsTransformListHandler.scale(float,float).voidskewX(float skx)ImplementsTransformListHandler.skewX(float).voidskewY(float sky)ImplementsTransformListHandler.skewY(float).voidstartFragmentIdentifier()voidstartTransformList()ImplementsTransformListHandler.startTransformList().voidstartViewTarget()Invoked when a view target specification starts.voidtranslate(float tx)ImplementsTransformListHandler.translate(float).voidtranslate(float tx, float ty)ImplementsTransformListHandler.translate(float,float).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 view target component has been parsed.voidzoomAndPan(boolean magnify)Invoked when a 'zoomAndPan' specification has been parsed.-
Methods inherited from class org.apache.batik.parser.DefaultPreserveAspectRatioHandler
endPreserveAspectRatio, meet, none, slice, startPreserveAspectRatio, xMaxYMax, xMaxYMid, xMaxYMin, xMidYMax, xMidYMid, xMidYMin, xMinYMax, xMinYMid, xMinYMin
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.batik.parser.PreserveAspectRatioHandler
endPreserveAspectRatio, meet, none, slice, startPreserveAspectRatio, xMaxYMax, xMaxYMid, xMaxYMin, xMidYMax, xMidYMid, xMidYMin, xMinYMax, xMinYMid, xMinYMin
-
-
-
-
Field Detail
-
INSTANCE
public static final FragmentIdentifierHandler INSTANCE
The only instance of this class.
-
-
Method Detail
-
startFragmentIdentifier
public void startFragmentIdentifier() throws ParseException- 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 x coordinate of the viewbox.y- the y coordinate of the viewbox.width- the width of the viewbox.height- the height of the viewbox.- 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 view target component has been parsed.- 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
-
startTransformList
public void startTransformList() throws ParseExceptionImplementsTransformListHandler.startTransformList().- Specified by:
startTransformListin interfaceTransformListHandler- Throws:
ParseException- if an error occured while processing the transform
-
matrix
public void matrix(float a, float b, float c, float d, float e, float f) throws ParseException- Specified by:
matrixin interfaceTransformListHandler- Throws:
ParseException- if an error occured while processing the transform
-
rotate
public void rotate(float theta) throws ParseExceptionImplementsTransformListHandler.rotate(float).- Specified by:
rotatein interfaceTransformListHandler- Throws:
ParseException- if an error occured while processing the transform
-
rotate
public void rotate(float theta, float cx, float cy) throws ParseExceptionImplementsTransformListHandler.rotate(float,float,float).- Specified by:
rotatein interfaceTransformListHandler- Throws:
ParseException- if an error occured while processing the transform
-
translate
public void translate(float tx) throws ParseExceptionImplementsTransformListHandler.translate(float).- Specified by:
translatein interfaceTransformListHandler- Throws:
ParseException- if an error occured while processing the transform
-
translate
public void translate(float tx, float ty) throws ParseExceptionImplementsTransformListHandler.translate(float,float).- Specified by:
translatein interfaceTransformListHandler- Throws:
ParseException- if an error occured while processing the transform
-
scale
public void scale(float sx) throws ParseExceptionImplementsTransformListHandler.scale(float).- Specified by:
scalein interfaceTransformListHandler- Throws:
ParseException- if an error occured while processing the transform
-
scale
public void scale(float sx, float sy) throws ParseExceptionImplementsTransformListHandler.scale(float,float).- Specified by:
scalein interfaceTransformListHandler- Throws:
ParseException- if an error occured while processing the transform
-
skewX
public void skewX(float skx) throws ParseExceptionImplementsTransformListHandler.skewX(float).- Specified by:
skewXin interfaceTransformListHandler- Throws:
ParseException- if an error occured while processing the transform
-
skewY
public void skewY(float sky) throws ParseExceptionImplementsTransformListHandler.skewY(float).- Specified by:
skewYin interfaceTransformListHandler- Throws:
ParseException- if an error occured while processing the transform
-
endTransformList
public void endTransformList() throws ParseExceptionImplementsTransformListHandler.endTransformList().- Specified by:
endTransformListin interfaceTransformListHandler- Throws:
ParseException- if an error occured while processing the transform
-
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 ParseException- Specified by:
endFragmentIdentifierin interfaceFragmentIdentifierHandler- Throws:
ParseException- if an error occured while processing the fragment identifier
-
-