org.apache.batik.parser
Interface FragmentIdentifierHandler


public interface FragmentIdentifierHandler

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
 void endFragmentIdentifier()
          Invoked when the points attribute ends.
 void idReference(java.lang.String s)
          Invoked when an ID has been parsed.
 void startFragmentIdentifier()
          Invoked when the fragment identifier attribute starts.
 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 'viewTarget(name)' has been parsed.
 

Method Detail

startFragmentIdentifier

public void startFragmentIdentifier()
                             throws ParseException
Invoked when the fragment identifier attribute starts.
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.
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.
Parameters:
x y width height - the coordinates of the viewbox.
Throws:
ParseException - if an error occured while processing the fragment identifier

viewTarget

public void viewTarget(java.lang.String name)
                throws ParseException
Invoked when 'viewTarget(name)' has been parsed.
Parameters:
name - the target name.
Throws:
ParseException - if an error occured while processing the fragment identifier

endFragmentIdentifier

public void endFragmentIdentifier()
                           throws ParseException
Invoked when the points attribute ends.
Throws:
ParseException - if an error occured while processing the fragment identifier


Copyright © 2000 Apache Software Foundation. All Rights Reserved.