|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.batik.parser.AWTTransformProducer
org.apache.batik.bridge.ViewBox.ViewHandler
protected static class 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
|
String |
id
|
boolean |
isMagnify
|
boolean |
meet
|
float[] |
viewBox
|
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()
|
void |
endViewTarget()
Invoked when a view target specification ends. |
void |
idReference(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(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 String id
public float[] viewBox
public String viewTargetParams
public boolean isMagnify
public boolean hasPreserveAspectRatio
public short align
public boolean meet
| Constructor Detail |
|---|
protected ViewBox.ViewHandler()
ViewHandler instance.
| Method Detail |
|---|
public void endTransformList()
throws ParseException
endTransformList in interface TransformListHandlerendTransformList in class AWTTransformProducerParseException
public void startFragmentIdentifier()
throws ParseException
startFragmentIdentifier in interface FragmentIdentifierHandlerParseException - if an error occured while processing the
fragment identifier
public void idReference(String s)
throws ParseException
idReference in interface FragmentIdentifierHandlers - The string that represents the parsed ID.
ParseException - if an error occured while processing the
fragment identifier
public void viewBox(float x,
float y,
float width,
float height)
throws ParseException
viewBox in interface FragmentIdentifierHandlerx - the viewbox x coordinatey - the viewbox y coordinatewidth - the viewbox widthheight - the viewbox height
ParseException - if an error occured while processing the
fragment identifier
public void startViewTarget()
throws ParseException
startViewTarget in interface FragmentIdentifierHandlerParseException - if an error occured while processing the
fragment identifier
public void viewTarget(String name)
throws ParseException
viewTarget in interface FragmentIdentifierHandlername - the target name.
ParseException - if an error occured while processing the
fragment identifier
public void endViewTarget()
throws ParseException
endViewTarget in interface FragmentIdentifierHandlerParseException - if an error occured while processing the
fragment identifierpublic void zoomAndPan(boolean magnify)
zoomAndPan in interface FragmentIdentifierHandlermagnify - true if 'magnify' has been parsed.
ParseException - if an error occured while processing the
fragment identifier
public void endFragmentIdentifier()
throws ParseException
endFragmentIdentifier in interface FragmentIdentifierHandlerParseException - if an error occured while processing the
fragment identifier
public void startPreserveAspectRatio()
throws ParseException
startPreserveAspectRatio in interface PreserveAspectRatioHandlerParseException - if an error occured while processing
the transform
public void none()
throws ParseException
none in interface PreserveAspectRatioHandlerParseException - if an error occured while processing
the transform
public void xMaxYMax()
throws ParseException
xMaxYMax in interface PreserveAspectRatioHandlerParseException - if an error occured while processing
the transform
public void xMaxYMid()
throws ParseException
xMaxYMid in interface PreserveAspectRatioHandlerParseException - if an error occured while processing
the transform
public void xMaxYMin()
throws ParseException
xMaxYMin in interface PreserveAspectRatioHandlerParseException - if an error occured while processing
the transform
public void xMidYMax()
throws ParseException
xMidYMax in interface PreserveAspectRatioHandlerParseException - if an error occured while processing
the transform
public void xMidYMid()
throws ParseException
xMidYMid in interface PreserveAspectRatioHandlerParseException - if an error occured while processing
the transform
public void xMidYMin()
throws ParseException
xMidYMin in interface PreserveAspectRatioHandlerParseException - if an error occured while processing
the transform
public void xMinYMax()
throws ParseException
xMinYMax in interface PreserveAspectRatioHandlerParseException - if an error occured while processing
the transform
public void xMinYMid()
throws ParseException
xMinYMid in interface PreserveAspectRatioHandlerParseException - if an error occured while processing
the transform
public void xMinYMin()
throws ParseException
xMinYMin in interface PreserveAspectRatioHandlerParseException - if an error occured while processing
the transform
public void meet()
throws ParseException
meet in interface PreserveAspectRatioHandlerParseException - if an error occured while processing
the transform
public void slice()
throws ParseException
slice in interface PreserveAspectRatioHandlerParseException - if an error occured while processing
the transform
public void endPreserveAspectRatio()
throws ParseException
endPreserveAspectRatio in interface PreserveAspectRatioHandlerParseException - if an error occured while processing
the transform
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||