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$
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FragmentIdentifierHandlerThe only instance of this class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedThis class does not need to be instantiated. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidImplementsTransformListHandler.endTransformList().voidInvoked when a view target specification ends.voidInvoked 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).voidvoidImplementsTransformListHandler.startTransformList().voidInvoked 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(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 DefaultPreserveAspectRatioHandler
endPreserveAspectRatio, meet, none, slice, startPreserveAspectRatio, xMaxYMax, xMaxYMid, xMaxYMin, xMidYMax, xMidYMid, xMidYMin, xMinYMax, xMinYMid, xMinYMinMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PreserveAspectRatioHandler
endPreserveAspectRatio, meet, none, slice, startPreserveAspectRatio, xMaxYMax, xMaxYMid, xMaxYMin, xMidYMax, xMidYMid, xMidYMin, xMinYMax, xMinYMid, xMinYMin
-
Field Details
-
INSTANCE
The only instance of this class.
-
-
Constructor Details
-
DefaultFragmentIdentifierHandler
protected DefaultFragmentIdentifierHandler()This class does not need to be instantiated.
-
-
Method Details
-
startFragmentIdentifier
- Specified by:
startFragmentIdentifierin interfaceFragmentIdentifierHandler- Throws:
ParseException- if an error occured while processing the fragment identifier
-
idReference
Invoked 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
Invoked 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
Invoked when a view target specification starts.- Specified by:
startViewTargetin interfaceFragmentIdentifierHandler- Throws:
ParseException- if an error occured while processing the fragment identifier
-
viewTarget
Invoked 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
Invoked when a view target specification ends.- Specified by:
endViewTargetin interfaceFragmentIdentifierHandler- Throws:
ParseException- if an error occured while processing the fragment identifier
-
startTransformList
ImplementsTransformListHandler.startTransformList().- Specified by:
startTransformListin interfaceTransformListHandler- Throws:
ParseException- if an error occured while processing the transform
-
matrix
- Specified by:
matrixin interfaceTransformListHandler- Throws:
ParseException- if an error occured while processing the transform
-
rotate
ImplementsTransformListHandler.rotate(float).- Specified by:
rotatein interfaceTransformListHandler- Throws:
ParseException- if an error occured while processing the transform
-
rotate
ImplementsTransformListHandler.rotate(float,float,float).- Specified by:
rotatein interfaceTransformListHandler- Throws:
ParseException- if an error occured while processing the transform
-
translate
ImplementsTransformListHandler.translate(float).- Specified by:
translatein interfaceTransformListHandler- Throws:
ParseException- if an error occured while processing the transform
-
translate
ImplementsTransformListHandler.translate(float,float).- Specified by:
translatein interfaceTransformListHandler- Throws:
ParseException- if an error occured while processing the transform
-
scale
ImplementsTransformListHandler.scale(float).- Specified by:
scalein interfaceTransformListHandler- Throws:
ParseException- if an error occured while processing the transform
-
scale
ImplementsTransformListHandler.scale(float,float).- Specified by:
scalein interfaceTransformListHandler- Throws:
ParseException- if an error occured while processing the transform
-
skewX
ImplementsTransformListHandler.skewX(float).- Specified by:
skewXin interfaceTransformListHandler- Throws:
ParseException- if an error occured while processing the transform
-
skewY
ImplementsTransformListHandler.skewY(float).- Specified by:
skewYin interfaceTransformListHandler- Throws:
ParseException- if an error occured while processing the transform
-
endTransformList
ImplementsTransformListHandler.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
- Specified by:
endFragmentIdentifierin interfaceFragmentIdentifierHandler- Throws:
ParseException- if an error occured while processing the fragment identifier
-