org.apache.batik.parser

Interface FragmentIdentifierHandler

public interface FragmentIdentifierHandler extends PreserveAspectRatioHandler, TransformListHandler

This interface must be implemented and then registred as the handler of a PreserveAspectRatioParser instance in order to be notified of parsing events.
Method Summary
voidendFragmentIdentifier()
Invoked when the fragment identifier ends.
voidendViewTarget()
Invoked when a view target specification ends.
voididReference(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(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.

Method Detail

endFragmentIdentifier

public void endFragmentIdentifier()
Invoked when the fragment identifier ends.

Throws: ParseException if an error occured while processing the fragment identifier

endViewTarget

public void endViewTarget()
Invoked when a view target specification ends.

Throws: ParseException if an error occured while processing the fragment identifier

idReference

public void idReference(String s)
Invoked 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

startFragmentIdentifier

public void startFragmentIdentifier()
Invoked when the fragment identifier starts.

Throws: ParseException if an error occured while processing the fragment identifier

startViewTarget

public void startViewTarget()
Invoked when a view target specification starts.

Throws: ParseException if an error occured while processing the fragment identifier

viewBox

public void viewBox(float x, float y, float width, float height)
Invoked when 'viewBox(x,y,width,height)' has been parsed.

Parameters: x x coordinate of the viewbox y y coordinate of the viewbox width width of the viewbox height height of the viewbox

Throws: ParseException if an error occured while processing the fragment identifier

viewTarget

public void viewTarget(String name)
Invoked 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

zoomAndPan

public 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

Copyright B) 2007 Apache Software Foundation. All Rights Reserved.