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 FragmentIdentifierHandler
INSTANCE
The only instance of this class.
-
Constructor Summary
Constructors Modifier Constructor Description protected
DefaultFragmentIdentifierHandler()
This class does not need to be instantiated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
endFragmentIdentifier()
void
endTransformList()
ImplementsTransformListHandler.endTransformList()
.void
endViewTarget()
Invoked when a view target specification ends.void
idReference(java.lang.String s)
Invoked when an ID has been parsed.void
matrix(float a, float b, float c, float d, float e, float f)
void
rotate(float theta)
ImplementsTransformListHandler.rotate(float)
.void
rotate(float theta, float cx, float cy)
ImplementsTransformListHandler.rotate(float,float,float)
.void
scale(float sx)
ImplementsTransformListHandler.scale(float)
.void
scale(float sx, float sy)
ImplementsTransformListHandler.scale(float,float)
.void
skewX(float skx)
ImplementsTransformListHandler.skewX(float)
.void
skewY(float sky)
ImplementsTransformListHandler.skewY(float)
.void
startFragmentIdentifier()
void
startTransformList()
ImplementsTransformListHandler.startTransformList()
.void
startViewTarget()
Invoked when a view target specification starts.void
translate(float tx)
ImplementsTransformListHandler.translate(float)
.void
translate(float tx, float ty)
ImplementsTransformListHandler.translate(float,float)
.void
viewBox(float x, float y, float width, float height)
Invoked when 'viewBox(x,y,width,height)' has been parsed.void
viewTarget(java.lang.String name)
Invoked when a view target component has been parsed.void
zoomAndPan(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:
startFragmentIdentifier
in interfaceFragmentIdentifierHandler
- Throws:
ParseException
- if an error occured while processing the fragment identifier
-
idReference
public void idReference(java.lang.String s) throws ParseException
Invoked when an ID has been parsed.- Specified by:
idReference
in 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 ParseException
Invoked when 'viewBox(x,y,width,height)' has been parsed.- Specified by:
viewBox
in 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 ParseException
Invoked when a view target specification starts.- Specified by:
startViewTarget
in interfaceFragmentIdentifierHandler
- Throws:
ParseException
- if an error occured while processing the fragment identifier
-
viewTarget
public void viewTarget(java.lang.String name) throws ParseException
Invoked when a view target component has been parsed.- Specified by:
viewTarget
in interfaceFragmentIdentifierHandler
- Parameters:
name
- the target name.- Throws:
ParseException
- if an error occured while processing the fragment identifier
-
endViewTarget
public void endViewTarget() throws ParseException
Invoked when a view target specification ends.- Specified by:
endViewTarget
in interfaceFragmentIdentifierHandler
- Throws:
ParseException
- if an error occured while processing the fragment identifier
-
startTransformList
public void startTransformList() throws ParseException
ImplementsTransformListHandler.startTransformList()
.- Specified by:
startTransformList
in 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:
matrix
in interfaceTransformListHandler
- Throws:
ParseException
- if an error occured while processing the transform
-
rotate
public void rotate(float theta) throws ParseException
ImplementsTransformListHandler.rotate(float)
.- Specified by:
rotate
in interfaceTransformListHandler
- Throws:
ParseException
- if an error occured while processing the transform
-
rotate
public void rotate(float theta, float cx, float cy) throws ParseException
ImplementsTransformListHandler.rotate(float,float,float)
.- Specified by:
rotate
in interfaceTransformListHandler
- Throws:
ParseException
- if an error occured while processing the transform
-
translate
public void translate(float tx) throws ParseException
ImplementsTransformListHandler.translate(float)
.- Specified by:
translate
in interfaceTransformListHandler
- Throws:
ParseException
- if an error occured while processing the transform
-
translate
public void translate(float tx, float ty) throws ParseException
ImplementsTransformListHandler.translate(float,float)
.- Specified by:
translate
in interfaceTransformListHandler
- Throws:
ParseException
- if an error occured while processing the transform
-
scale
public void scale(float sx) throws ParseException
ImplementsTransformListHandler.scale(float)
.- Specified by:
scale
in interfaceTransformListHandler
- Throws:
ParseException
- if an error occured while processing the transform
-
scale
public void scale(float sx, float sy) throws ParseException
ImplementsTransformListHandler.scale(float,float)
.- Specified by:
scale
in interfaceTransformListHandler
- Throws:
ParseException
- if an error occured while processing the transform
-
skewX
public void skewX(float skx) throws ParseException
ImplementsTransformListHandler.skewX(float)
.- Specified by:
skewX
in interfaceTransformListHandler
- Throws:
ParseException
- if an error occured while processing the transform
-
skewY
public void skewY(float sky) throws ParseException
ImplementsTransformListHandler.skewY(float)
.- Specified by:
skewY
in interfaceTransformListHandler
- Throws:
ParseException
- if an error occured while processing the transform
-
endTransformList
public void endTransformList() throws ParseException
ImplementsTransformListHandler.endTransformList()
.- Specified by:
endTransformList
in 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:
zoomAndPan
in 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:
endFragmentIdentifier
in interfaceFragmentIdentifierHandler
- Throws:
ParseException
- if an error occured while processing the fragment identifier
-
-