|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.batik.parser.AWTTransformProducer | +--org.apache.batik.bridge.ViewBox.ViewHandler
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 | |
short |
align
|
boolean |
hasId
|
boolean |
hasPreserveAspectRatio
|
boolean |
hasTransform
|
boolean |
hasViewBox
|
boolean |
hasViewTargetParams
|
boolean |
hasZoomAndPanParams
|
java.lang.String |
id
|
boolean |
isMagnify
|
boolean |
meet
|
float[] |
viewBox
|
java.lang.String |
viewTargetParams
|
Fields inherited from class org.apache.batik.parser.AWTTransformProducer |
affineTransform |
Constructor Summary | |
protected |
ViewBox.ViewHandler()
Constructs a new ViewHandler instance. |
Method Summary | |
void |
endFragmentIdentifier()
Invoked when the fragment identifier ends. |
void |
endPreserveAspectRatio()
Invoked when the PreserveAspectRatio parsing ends. |
void |
endTransformList()
Invoked when the transform ends. |
void |
endViewTarget()
Invoked when a view target specification ends. |
void |
idReference(java.lang.String s)
Invoked when an ID has been parsed. |
void |
meet()
Invoked when 'meet' has been parsed. |
void |
none()
Invoked when 'none' been parsed. |
void |
slice()
Invoked when 'slice' has been parsed. |
void |
startFragmentIdentifier()
Invoked when the fragment identifier starts. |
void |
startPreserveAspectRatio()
Invoked when the PreserveAspectRatio parsing starts. |
void |
startViewTarget()
Invoked when a view target specification 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 a identifier has been parsed within a view target specification. |
void |
xMaxYMax()
Invoked when 'xMaxYMax' has been parsed. |
void |
xMaxYMid()
Invoked when 'xMaxYMid' has been parsed. |
void |
xMaxYMin()
Invoked when 'xMaxYMin' has been parsed. |
void |
xMidYMax()
Invoked when 'xMidYMax' has been parsed. |
void |
xMidYMid()
Invoked when 'xMidYMid' has been parsed. |
void |
xMidYMin()
Invoked when 'xMidYMin' has been parsed. |
void |
xMinYMax()
Invoked when 'xMinYMax' has been parsed. |
void |
xMinYMid()
Invoked when 'xMinYMid' has been parsed. |
void |
xMinYMin()
Invoked when 'xMinYMin' has been parsed. |
void |
zoomAndPan(boolean magnify)
Invoked when a 'zoomAndPan' specification has been parsed. |
Methods inherited from class org.apache.batik.parser.AWTTransformProducer |
createAffineTransform, createAffineTransform, getAffineTransform, matrix, rotate, rotate, scale, scale, skewX, skewY, startTransformList, translate, translate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.batik.parser.TransformListHandler |
matrix, rotate, rotate, scale, scale, skewX, skewY, startTransformList, translate, translate |
Field Detail |
public boolean hasTransform
public boolean hasId
public boolean hasViewBox
public boolean hasViewTargetParams
public boolean hasZoomAndPanParams
public java.lang.String id
public float[] viewBox
public java.lang.String viewTargetParams
public boolean isMagnify
public boolean hasPreserveAspectRatio
public short align
public boolean meet
Constructor Detail |
protected ViewBox.ViewHandler()
Method Detail |
public void endTransformList() throws ParseException
TransformListHandler
endTransformList
in interface TransformListHandler
endTransformList
in class AWTTransformProducer
org.apache.batik.parser.TransformListHandler
ParseException
- if an error occured while processing
the transformpublic void startFragmentIdentifier() throws ParseException
startFragmentIdentifier
in interface FragmentIdentifierHandler
ParseException
- if an error occured while processing the
fragment identifierpublic void idReference(java.lang.String s) throws ParseException
idReference
in interface FragmentIdentifierHandler
s
- The string that represents the parsed ID.ParseException
- if an error occured while processing the
fragment identifierpublic void viewBox(float x, float y, float width, float height) throws ParseException
viewBox
in interface FragmentIdentifierHandler
x y width height
- the coordinates of the
viewbox.ParseException
- if an error occured while processing the
fragment identifierpublic void startViewTarget() throws ParseException
startViewTarget
in interface FragmentIdentifierHandler
ParseException
- if an error occured while processing the
fragment identifierpublic void viewTarget(java.lang.String name) throws ParseException
viewTarget
in interface FragmentIdentifierHandler
name
- the target name.ParseException
- if an error occured while processing the
fragment identifierpublic void endViewTarget() throws ParseException
endViewTarget
in interface FragmentIdentifierHandler
ParseException
- if an error occured while processing the
fragment identifierpublic void zoomAndPan(boolean magnify)
zoomAndPan
in interface FragmentIdentifierHandler
magnify
- true if 'magnify' has been parsed.ParseException
- if an error occured while processing the
fragment identifierpublic void endFragmentIdentifier() throws ParseException
endFragmentIdentifier
in interface FragmentIdentifierHandler
ParseException
- if an error occured while processing the
fragment identifierpublic void startPreserveAspectRatio() throws ParseException
startPreserveAspectRatio
in interface PreserveAspectRatioHandler
ParseException
- if an error occured while processing
the transformpublic void none() throws ParseException
none
in interface PreserveAspectRatioHandler
ParseException
- if an error occured while processing
the transformpublic void xMaxYMax() throws ParseException
xMaxYMax
in interface PreserveAspectRatioHandler
ParseException
- if an error occured while processing
the transformpublic void xMaxYMid() throws ParseException
xMaxYMid
in interface PreserveAspectRatioHandler
ParseException
- if an error occured while processing
the transformpublic void xMaxYMin() throws ParseException
xMaxYMin
in interface PreserveAspectRatioHandler
ParseException
- if an error occured while processing
the transformpublic void xMidYMax() throws ParseException
xMidYMax
in interface PreserveAspectRatioHandler
ParseException
- if an error occured while processing
the transformpublic void xMidYMid() throws ParseException
xMidYMid
in interface PreserveAspectRatioHandler
ParseException
- if an error occured while processing
the transformpublic void xMidYMin() throws ParseException
xMidYMin
in interface PreserveAspectRatioHandler
ParseException
- if an error occured while processing
the transformpublic void xMinYMax() throws ParseException
xMinYMax
in interface PreserveAspectRatioHandler
ParseException
- if an error occured while processing
the transformpublic void xMinYMid() throws ParseException
xMinYMid
in interface PreserveAspectRatioHandler
ParseException
- if an error occured while processing
the transformpublic void xMinYMin() throws ParseException
xMinYMin
in interface PreserveAspectRatioHandler
ParseException
- if an error occured while processing
the transformpublic void meet() throws ParseException
meet
in interface PreserveAspectRatioHandler
ParseException
- if an error occured while processing
the transformpublic void slice() throws ParseException
slice
in interface PreserveAspectRatioHandler
ParseException
- if an error occured while processing
the transformpublic void endPreserveAspectRatio() throws ParseException
endPreserveAspectRatio
in interface PreserveAspectRatioHandler
ParseException
- if an error occured while processing
the transform
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |