protected static class ViewBox.ViewHandler extends AWTTransformProducer implements FragmentIdentifierHandler
Modifier and Type | Field and Description |
---|---|
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 |
affineTransform
Modifier | Constructor and Description |
---|---|
protected |
ViewHandler()
Constructs a new
ViewHandler instance. |
Modifier and Type | Method and Description |
---|---|
void |
endFragmentIdentifier()
Invoked when the fragment identifier ends.
|
void |
endPreserveAspectRatio()
Invoked when the PreserveAspectRatio parsing ends.
|
void |
endTransformList()
Implements
TransformListHandler.endTransformList() . |
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.
|
createAffineTransform, createAffineTransform, getAffineTransform, matrix, rotate, rotate, scale, scale, skewX, skewY, startTransformList, translate, translate
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
public void endTransformList() throws ParseException
AWTTransformProducer
TransformListHandler.endTransformList()
.endTransformList
in interface TransformListHandler
endTransformList
in class AWTTransformProducer
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
- the viewbox x coordinatey
- the viewbox y coordinatewidth
- the viewbox widthheight
- the viewbox heightParseException
- 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 transformCopyright © 2022 Apache Software Foundation. All Rights Reserved.