org.apache.batik.bridge

Class ViewBox.ViewHandler

protected static class ViewBox.ViewHandler extends AWTTransformProducer implements FragmentIdentifierHandler

This class can be used to store the value of the attribute viewBox or can also be used to store the various attribute value that can be specified on a SVG URI fragments.
Field Summary
shortalign
booleanhasId
booleanhasPreserveAspectRatio
booleanhasTransform
booleanhasViewBox
booleanhasViewTargetParams
booleanhasZoomAndPanParams
Stringid
booleanisMagnify
booleanmeet
float[]viewBox
StringviewTargetParams
Constructor Summary
protected ViewHandler()
Constructs a new ViewHandler instance.
Method Summary
voidendFragmentIdentifier()
Invoked when the fragment identifier ends.
voidendPreserveAspectRatio()
Invoked when the PreserveAspectRatio parsing ends.
voidendTransformList()
voidendViewTarget()
Invoked when a view target specification ends.
voididReference(String s)
Invoked when an ID has been parsed.
voidmeet()
Invoked when 'meet' has been parsed.
voidnone()
Invoked when 'none' been parsed.
voidslice()
Invoked when 'slice' has been parsed.
voidstartFragmentIdentifier()
Invoked when the fragment identifier starts.
voidstartPreserveAspectRatio()
Invoked when the PreserveAspectRatio parsing 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.
voidxMaxYMax()
Invoked when 'xMaxYMax' has been parsed.
voidxMaxYMid()
Invoked when 'xMaxYMid' has been parsed.
voidxMaxYMin()
Invoked when 'xMaxYMin' has been parsed.
voidxMidYMax()
Invoked when 'xMidYMax' has been parsed.
voidxMidYMid()
Invoked when 'xMidYMid' has been parsed.
voidxMidYMin()
Invoked when 'xMidYMin' has been parsed.
voidxMinYMax()
Invoked when 'xMinYMax' has been parsed.
voidxMinYMid()
Invoked when 'xMinYMid' has been parsed.
voidxMinYMin()
Invoked when 'xMinYMin' has been parsed.
voidzoomAndPan(boolean magnify)
Invoked when a 'zoomAndPan' specification has been parsed.

Field Detail

align

public short align

hasId

public boolean hasId

hasPreserveAspectRatio

public boolean hasPreserveAspectRatio

hasTransform

public boolean hasTransform

hasViewBox

public boolean hasViewBox

hasViewTargetParams

public boolean hasViewTargetParams

hasZoomAndPanParams

public boolean hasZoomAndPanParams

id

public String id

isMagnify

public boolean isMagnify

meet

public boolean meet

viewBox

public float[] viewBox

viewTargetParams

public String viewTargetParams

Constructor Detail

ViewHandler

protected ViewHandler()
Constructs a new ViewHandler instance.

Method Detail

endFragmentIdentifier

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

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

endPreserveAspectRatio

public void endPreserveAspectRatio()
Invoked when the PreserveAspectRatio parsing ends.

Throws: ParseException if an error occured while processing the transform

endTransformList

public void endTransformList()

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

meet

public void meet()
Invoked when 'meet' has been parsed.

Throws: ParseException if an error occured while processing the transform

none

public void none()
Invoked when 'none' been parsed.

Throws: ParseException if an error occured while processing the transform

slice

public void slice()
Invoked when 'slice' has been parsed.

Throws: ParseException if an error occured while processing the transform

startFragmentIdentifier

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

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

startPreserveAspectRatio

public void startPreserveAspectRatio()
Invoked when the PreserveAspectRatio parsing starts.

Throws: ParseException if an error occured while processing the transform

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 the viewbox x coordinate y the viewbox y coordinate width the viewbox width height the viewbox height

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

xMaxYMax

public void xMaxYMax()
Invoked when 'xMaxYMax' has been parsed.

Throws: ParseException if an error occured while processing the transform

xMaxYMid

public void xMaxYMid()
Invoked when 'xMaxYMid' has been parsed.

Throws: ParseException if an error occured while processing the transform

xMaxYMin

public void xMaxYMin()
Invoked when 'xMaxYMin' has been parsed.

Throws: ParseException if an error occured while processing the transform

xMidYMax

public void xMidYMax()
Invoked when 'xMidYMax' has been parsed.

Throws: ParseException if an error occured while processing the transform

xMidYMid

public void xMidYMid()
Invoked when 'xMidYMid' has been parsed.

Throws: ParseException if an error occured while processing the transform

xMidYMin

public void xMidYMin()
Invoked when 'xMidYMin' has been parsed.

Throws: ParseException if an error occured while processing the transform

xMinYMax

public void xMinYMax()
Invoked when 'xMinYMax' has been parsed.

Throws: ParseException if an error occured while processing the transform

xMinYMid

public void xMinYMid()
Invoked when 'xMinYMid' has been parsed.

Throws: ParseException if an error occured while processing the transform

xMinYMin

public void xMinYMin()
Invoked when 'xMinYMin' has been parsed.

Throws: ParseException if an error occured while processing the transform

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.