Class ViewBox.ViewHandler
java.lang.Object
org.apache.batik.parser.AWTTransformProducer
org.apache.batik.bridge.ViewBox.ViewHandler
- All Implemented Interfaces:
FragmentIdentifierHandler, PreserveAspectRatioHandler, TransformListHandler
- Enclosing class:
ViewBox
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
FieldsModifier and TypeFieldDescriptionshortboolean///////////////////////////////////////////////////////////////////boolean///////////////////////////////////////////////////////////////////boolean///////////////////////////////////////////////////////////////////booleanbooleanbooleanbooleanbooleanfloat[]Fields inherited from class AWTTransformProducer
affineTransform -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInvoked when the fragment identifier ends.voidInvoked when the PreserveAspectRatio parsing ends.voidImplementsTransformListHandler.endTransformList().voidInvoked when a view target specification ends.voidInvoked 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.voidInvoked when the fragment identifier starts.voidInvoked when the PreserveAspectRatio parsing starts.voidInvoked 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.Methods inherited from class AWTTransformProducer
createAffineTransform, createAffineTransform, getAffineTransform, matrix, rotate, rotate, scale, scale, skewX, skewY, startTransformList, translate, translate
-
Field Details
-
hasTransform
public boolean hasTransform/////////////////////////////////////////////////////////////////// -
hasId
public boolean hasId/////////////////////////////////////////////////////////////////// -
hasViewBox
public boolean hasViewBox -
hasViewTargetParams
public boolean hasViewTargetParams -
hasZoomAndPanParams
public boolean hasZoomAndPanParams -
id
-
viewBox
public float[] viewBox -
viewTargetParams
-
isMagnify
public boolean isMagnify -
hasPreserveAspectRatio
public boolean hasPreserveAspectRatio/////////////////////////////////////////////////////////////////// -
align
public short align -
meet
public boolean meet
-
-
Constructor Details
-
ViewHandler
protected ViewHandler()Constructs a newViewHandlerinstance.
-
-
Method Details
-
endTransformList
Description copied from class:AWTTransformProducerImplementsTransformListHandler.endTransformList().- Specified by:
endTransformListin interfaceTransformListHandler- Overrides:
endTransformListin classAWTTransformProducer- Throws:
ParseException- if an error occured while processing the transform
-
startFragmentIdentifier
Invoked when the fragment identifier starts.- Specified by:
startFragmentIdentifierin interfaceFragmentIdentifierHandler- Throws:
ParseException- if an error occured while processing the fragment identifier
-
idReference
Invoked when an ID has been parsed.- Specified by:
idReferencein interfaceFragmentIdentifierHandler- Parameters:
s- The string that represents the parsed ID.- Throws:
ParseException- if an error occured while processing the fragment identifier
-
viewBox
Invoked when 'viewBox(x,y,width,height)' has been parsed.- Specified by:
viewBoxin interfaceFragmentIdentifierHandler- Parameters:
x- the viewbox x coordinatey- the viewbox y coordinatewidth- the viewbox widthheight- the viewbox height- Throws:
ParseException- if an error occured while processing the fragment identifier
-
startViewTarget
Invoked when a view target specification starts.- Specified by:
startViewTargetin interfaceFragmentIdentifierHandler- Throws:
ParseException- if an error occured while processing the fragment identifier
-
viewTarget
Invoked when a identifier has been parsed within a view target specification.- Specified by:
viewTargetin interfaceFragmentIdentifierHandler- Parameters:
name- the target name.- Throws:
ParseException- if an error occured while processing the fragment identifier
-
endViewTarget
Invoked when a view target specification ends.- Specified by:
endViewTargetin interfaceFragmentIdentifierHandler- 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.- Specified by:
zoomAndPanin interfaceFragmentIdentifierHandler- Parameters:
magnify- true if 'magnify' has been parsed.- Throws:
ParseException- if an error occured while processing the fragment identifier
-
endFragmentIdentifier
Invoked when the fragment identifier ends.- Specified by:
endFragmentIdentifierin interfaceFragmentIdentifierHandler- Throws:
ParseException- if an error occured while processing the fragment identifier
-
startPreserveAspectRatio
Invoked when the PreserveAspectRatio parsing starts.- Specified by:
startPreserveAspectRatioin interfacePreserveAspectRatioHandler- Throws:
ParseException- if an error occured while processing the transform
-
none
Invoked when 'none' been parsed.- Specified by:
nonein interfacePreserveAspectRatioHandler- Throws:
ParseException- if an error occured while processing the transform
-
xMaxYMax
Invoked when 'xMaxYMax' has been parsed.- Specified by:
xMaxYMaxin interfacePreserveAspectRatioHandler- Throws:
ParseException- if an error occured while processing the transform
-
xMaxYMid
Invoked when 'xMaxYMid' has been parsed.- Specified by:
xMaxYMidin interfacePreserveAspectRatioHandler- Throws:
ParseException- if an error occured while processing the transform
-
xMaxYMin
Invoked when 'xMaxYMin' has been parsed.- Specified by:
xMaxYMinin interfacePreserveAspectRatioHandler- Throws:
ParseException- if an error occured while processing the transform
-
xMidYMax
Invoked when 'xMidYMax' has been parsed.- Specified by:
xMidYMaxin interfacePreserveAspectRatioHandler- Throws:
ParseException- if an error occured while processing the transform
-
xMidYMid
Invoked when 'xMidYMid' has been parsed.- Specified by:
xMidYMidin interfacePreserveAspectRatioHandler- Throws:
ParseException- if an error occured while processing the transform
-
xMidYMin
Invoked when 'xMidYMin' has been parsed.- Specified by:
xMidYMinin interfacePreserveAspectRatioHandler- Throws:
ParseException- if an error occured while processing the transform
-
xMinYMax
Invoked when 'xMinYMax' has been parsed.- Specified by:
xMinYMaxin interfacePreserveAspectRatioHandler- Throws:
ParseException- if an error occured while processing the transform
-
xMinYMid
Invoked when 'xMinYMid' has been parsed.- Specified by:
xMinYMidin interfacePreserveAspectRatioHandler- Throws:
ParseException- if an error occured while processing the transform
-
xMinYMin
Invoked when 'xMinYMin' has been parsed.- Specified by:
xMinYMinin interfacePreserveAspectRatioHandler- Throws:
ParseException- if an error occured while processing the transform
-
meet
Invoked when 'meet' has been parsed.- Specified by:
meetin interfacePreserveAspectRatioHandler- Throws:
ParseException- if an error occured while processing the transform
-
slice
Invoked when 'slice' has been parsed.- Specified by:
slicein interfacePreserveAspectRatioHandler- Throws:
ParseException- if an error occured while processing the transform
-
endPreserveAspectRatio
Invoked when the PreserveAspectRatio parsing ends.- Specified by:
endPreserveAspectRatioin interfacePreserveAspectRatioHandler- Throws:
ParseException- if an error occured while processing the transform
-