Package org.apache.batik.parser
Interface FragmentIdentifierHandler
-
- All Superinterfaces:
PreserveAspectRatioHandler,TransformListHandler
- All Known Implementing Classes:
DefaultFragmentIdentifierHandler,ViewBox.ViewHandler
public interface FragmentIdentifierHandler extends PreserveAspectRatioHandler, TransformListHandler
This interface must be implemented and then registred as the handler of aPreserveAspectRatioParserinstance in order to be notified of parsing events.- Version:
- $Id: FragmentIdentifierHandler.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidendFragmentIdentifier()Invoked when the fragment identifier ends.voidendViewTarget()Invoked when a view target specification ends.voididReference(java.lang.String s)Invoked when an ID has been parsed.voidstartFragmentIdentifier()Invoked when the fragment identifier 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.voidzoomAndPan(boolean magnify)Invoked when a 'zoomAndPan' specification has been parsed.-
Methods inherited from interface org.apache.batik.parser.PreserveAspectRatioHandler
endPreserveAspectRatio, meet, none, slice, startPreserveAspectRatio, xMaxYMax, xMaxYMid, xMaxYMin, xMidYMax, xMidYMid, xMidYMin, xMinYMax, xMinYMid, xMinYMin
-
Methods inherited from interface org.apache.batik.parser.TransformListHandler
endTransformList, matrix, rotate, rotate, scale, scale, skewX, skewY, startTransformList, translate, translate
-
-
-
-
Method Detail
-
startFragmentIdentifier
void startFragmentIdentifier() throws ParseExceptionInvoked when the fragment identifier starts.- Throws:
ParseException- if an error occured while processing the fragment identifier
-
idReference
void idReference(java.lang.String s) throws ParseExceptionInvoked when an ID has been parsed.- Parameters:
s- The string that represents the parsed ID.- Throws:
ParseException- if an error occured while processing the fragment identifier
-
viewBox
void viewBox(float x, float y, float width, float height) throws ParseExceptionInvoked when 'viewBox(x,y,width,height)' has been parsed.- Parameters:
x- x coordinate of the viewboxy- y coordinate of the viewboxwidth- width of the viewboxheight- height of the viewbox- Throws:
ParseException- if an error occured while processing the fragment identifier
-
startViewTarget
void startViewTarget() throws ParseExceptionInvoked when a view target specification starts.- Throws:
ParseException- if an error occured while processing the fragment identifier
-
viewTarget
void viewTarget(java.lang.String name) throws ParseExceptionInvoked when a identifier has been parsed within a view target specification.- Parameters:
name- the target name.- Throws:
ParseException- if an error occured while processing the fragment identifier
-
endViewTarget
void endViewTarget() throws ParseExceptionInvoked when a view target specification ends.- Throws:
ParseException- if an error occured while processing the fragment identifier
-
zoomAndPan
void zoomAndPan(boolean magnify)
Invoked when a 'zoomAndPan' specification has been parsed.- Parameters:
magnify- true if 'magnify' has been parsed.- Throws:
ParseException- if an error occured while processing the fragment identifier
-
endFragmentIdentifier
void endFragmentIdentifier() throws ParseExceptionInvoked when the fragment identifier ends.- Throws:
ParseException- if an error occured while processing the fragment identifier
-
-