public abstract class UnitProcessor extends UnitProcessor
| Modifier and Type | Class and Description |
|---|---|
static class |
UnitProcessor.DefaultContext
This class is the default context for a particular element.
|
UnitProcessor.Context, UnitProcessor.UnitResolverHORIZONTAL_LENGTH, OTHER_LENGTH, VERTICAL_LENGTH| Constructor and Description |
|---|
UnitProcessor() |
| Modifier and Type | Method and Description |
|---|---|
static UnitProcessor.Context |
createContext(BridgeContext ctx,
org.w3c.dom.Element e)
Creates a context for the specified element.
|
protected static BridgeContext |
getBridgeContext(UnitProcessor.Context ctx)
Returns the
BridgeContext from the given Context
if it is a UnitProcessor.DefaultContext, or null otherwise. |
static float |
svgHorizontalCoordinateToObjectBoundingBox(java.lang.String s,
java.lang.String attr,
UnitProcessor.Context ctx)
Returns the specified horizontal coordinate in object bounding box
coordinate system.
|
static float |
svgHorizontalCoordinateToUserSpace(java.lang.String s,
java.lang.String attr,
UnitProcessor.Context ctx)
Returns the specified horizontal coordinate in user units.
|
static float |
svgHorizontalLengthToObjectBoundingBox(java.lang.String s,
java.lang.String attr,
UnitProcessor.Context ctx)
Returns the specified horizontal length in object bounding box
coordinate system.
|
static float |
svgHorizontalLengthToUserSpace(java.lang.String s,
java.lang.String attr,
UnitProcessor.Context ctx)
Returns the specified horizontal length in user units.
|
static float |
svgLengthToObjectBoundingBox(java.lang.String s,
java.lang.String attr,
short d,
UnitProcessor.Context ctx)
Returns the specified length with the specified direction in
user units.
|
static float |
svgLengthToUserSpace(java.lang.String s,
java.lang.String attr,
short d,
UnitProcessor.Context ctx)
Returns the specified length with the specified direction in
user units.
|
static float |
svgOtherCoordinateToObjectBoundingBox(java.lang.String s,
java.lang.String attr,
UnitProcessor.Context ctx)
Returns the specified 'other' coordinate in object bounding box
coordinate system.
|
static float |
svgOtherCoordinateToUserSpace(java.lang.String s,
java.lang.String attr,
UnitProcessor.Context ctx)
Returns the specified 'other' coordinate in user units.
|
static float |
svgOtherLengthToObjectBoundingBox(java.lang.String s,
java.lang.String attr,
UnitProcessor.Context ctx)
Returns the specified 'other' length in object bounding box
coordinate system.
|
static float |
svgOtherLengthToUserSpace(java.lang.String s,
java.lang.String attr,
UnitProcessor.Context ctx)
Returns the specified 'other' length in user units.
|
static float |
svgToObjectBoundingBox(java.lang.String s,
java.lang.String attr,
short d,
UnitProcessor.Context ctx)
Returns the specified value with the specified direction in
objectBoundingBox units.
|
static float |
svgToUserSpace(java.lang.String s,
java.lang.String attr,
short d,
UnitProcessor.Context ctx)
Returns the specified coordinate with the specified direction
in user units.
|
static float |
svgVerticalCoordinateToObjectBoundingBox(java.lang.String s,
java.lang.String attr,
UnitProcessor.Context ctx)
Returns the specified vertical coordinate in object bounding box
coordinate system.
|
static float |
svgVerticalCoordinateToUserSpace(java.lang.String s,
java.lang.String attr,
UnitProcessor.Context ctx)
Returns the specified vertical coordinate in user units.
|
static float |
svgVerticalLengthToObjectBoundingBox(java.lang.String s,
java.lang.String attr,
UnitProcessor.Context ctx)
Returns the specified vertical length in object bounding box
coordinate system.
|
static float |
svgVerticalLengthToUserSpace(java.lang.String s,
java.lang.String attr,
UnitProcessor.Context ctx)
Returns the specified vertical length in user units.
|
emsToPixels, exsToPixels, percentagesToPixels, pixelsToEms, pixelsToExs, pixelsToPercentages, svgToObjectBoundingBox, svgToUserSpace, userSpaceToSVGpublic static UnitProcessor.Context createContext(BridgeContext ctx, org.w3c.dom.Element e)
ctx - the bridge context that contains the user agent and
viewport definitione - the element interested in its contextpublic static float svgHorizontalCoordinateToObjectBoundingBox(java.lang.String s,
java.lang.String attr,
UnitProcessor.Context ctx)
s - the horizontal coordinateattr - the attribute name that represents the coordinatectx - the context used to resolve relative valuepublic static float svgVerticalCoordinateToObjectBoundingBox(java.lang.String s,
java.lang.String attr,
UnitProcessor.Context ctx)
s - the vertical coordinateattr - the attribute name that represents the coordinatectx - the context used to resolve relative valuepublic static float svgOtherCoordinateToObjectBoundingBox(java.lang.String s,
java.lang.String attr,
UnitProcessor.Context ctx)
s - the 'other' coordinateattr - the attribute name that represents the coordinatectx - the context used to resolve relative valuepublic static float svgHorizontalLengthToObjectBoundingBox(java.lang.String s,
java.lang.String attr,
UnitProcessor.Context ctx)
s - the 'other' lengthattr - the attribute name that represents the lengthctx - the context used to resolve relative valuepublic static float svgVerticalLengthToObjectBoundingBox(java.lang.String s,
java.lang.String attr,
UnitProcessor.Context ctx)
s - the vertical lengthattr - the attribute name that represents the lengthctx - the context used to resolve relative valuepublic static float svgOtherLengthToObjectBoundingBox(java.lang.String s,
java.lang.String attr,
UnitProcessor.Context ctx)
s - the 'other' lengthattr - the attribute name that represents the lengthctx - the context used to resolve relative valuepublic static float svgLengthToObjectBoundingBox(java.lang.String s,
java.lang.String attr,
short d,
UnitProcessor.Context ctx)
s - the lengthattr - the attribute name that represents the lengthd - the direction of the lengthctx - the context used to resolve relative valuepublic static float svgToObjectBoundingBox(java.lang.String s,
java.lang.String attr,
short d,
UnitProcessor.Context ctx)
s - the valueattr - the attribute name that represents the valued - the direction of the valuectx - the context used to resolve relative valuepublic static float svgHorizontalLengthToUserSpace(java.lang.String s,
java.lang.String attr,
UnitProcessor.Context ctx)
s - the horizontal lengthattr - the attribute name that represents the lengthctx - the context used to resolve relative valuepublic static float svgVerticalLengthToUserSpace(java.lang.String s,
java.lang.String attr,
UnitProcessor.Context ctx)
s - the vertical lengthattr - the attribute name that represents the lengthctx - the context used to resolve relative valuepublic static float svgOtherLengthToUserSpace(java.lang.String s,
java.lang.String attr,
UnitProcessor.Context ctx)
s - the 'other' lengthattr - the attribute name that represents the lengthctx - the context used to resolve relative valuepublic static float svgHorizontalCoordinateToUserSpace(java.lang.String s,
java.lang.String attr,
UnitProcessor.Context ctx)
s - the horizontal coordinateattr - the attribute name that represents the lengthctx - the context used to resolve relative valuepublic static float svgVerticalCoordinateToUserSpace(java.lang.String s,
java.lang.String attr,
UnitProcessor.Context ctx)
s - the vertical coordinateattr - the attribute name that represents the lengthctx - the context used to resolve relative valuepublic static float svgOtherCoordinateToUserSpace(java.lang.String s,
java.lang.String attr,
UnitProcessor.Context ctx)
s - the 'other' coordinateattr - the attribute name that represents the lengthctx - the context used to resolve relative valuepublic static float svgLengthToUserSpace(java.lang.String s,
java.lang.String attr,
short d,
UnitProcessor.Context ctx)
s - the 'other' coordinateattr - the attribute name that represents the lengthd - the direction of the lengthctx - the context used to resolve relative valuepublic static float svgToUserSpace(java.lang.String s,
java.lang.String attr,
short d,
UnitProcessor.Context ctx)
s - the 'other' coordinateattr - the attribute name that represents the lengthd - the direction of the coordinatectx - the context used to resolve relative valueprotected static BridgeContext getBridgeContext(UnitProcessor.Context ctx)
BridgeContext from the given Context
if it is a UnitProcessor.DefaultContext, or null otherwise.Copyright ? 2009 Apache Software Foundation. All Rights Reserved.