Package | Description |
---|---|
org.apache.batik.anim.dom | |
org.apache.batik.bridge |
Provides an API for mapping and maintaining consistency between
the SVG DOM tree and the GVT tree.
|
org.apache.batik.extension.svg | |
org.apache.batik.parser |
Provides a set of parsers and objects to manipulate SVG attributes.
|
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractSVGLength.DefaultContext
To resolve the units.
|
protected class |
SVGOMElement.UnitContext
To resolve the units.
|
Modifier and Type | Field and Description |
---|---|
protected UnitProcessor.Context |
AbstractSVGLength.context
The context used to resolve the units.
|
protected UnitProcessor.Context |
SVGOMElement.unitContext
The context used to resolve the units.
|
Modifier and Type | Class and Description |
---|---|
static class |
UnitProcessor.DefaultContext
This class is the default context for a particular element.
|
Modifier and Type | Field and Description |
---|---|
protected UnitProcessor.Context |
AbstractGraphicsNodeBridge.unitContext
The unit context for length conversions.
|
Modifier and Type | Method and Description |
---|---|
static UnitProcessor.Context |
UnitProcessor.createContext(BridgeContext ctx,
Element e)
Creates a context for the specified element.
|
Modifier and Type | Method and Description |
---|---|
static float |
SVGUtilities.convertLength(java.lang.String length,
java.lang.String attr,
short unitsType,
UnitProcessor.Context uctx)
Returns a float in user units according to the specified parameters.
|
static java.awt.geom.Point2D |
SVGUtilities.convertPoint(java.lang.String xStr,
java.lang.String xAttr,
java.lang.String yStr,
java.lang.String yAttr,
short unitsType,
UnitProcessor.Context uctx)
Returns a Point2D in user units according to the specified parameters.
|
protected static java.awt.geom.Rectangle2D |
SVGUtilities.convertRegion(java.lang.String xStr,
java.lang.String yStr,
java.lang.String wStr,
java.lang.String hStr,
short unitsType,
GraphicsNode targetNode,
UnitProcessor.Context uctx)
Returns a rectangle that represents the region defined by the
specified coordinates.
|
protected static java.awt.geom.Rectangle2D |
SVGUtilities.extendRegion(java.lang.String dxStr,
java.lang.String dyStr,
java.lang.String dwStr,
java.lang.String dhStr,
short unitsType,
GraphicsNode filteredNode,
java.awt.geom.Rectangle2D region,
UnitProcessor.Context uctx)
Returns a rectangle that represents the region extended by the
specified differential coordinates.
|
protected static BridgeContext |
UnitProcessor.getBridgeContext(UnitProcessor.Context ctx)
Returns the
BridgeContext from the given Context
if it is a UnitProcessor.DefaultContext , or null otherwise. |
static float |
UnitProcessor.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 |
UnitProcessor.svgHorizontalCoordinateToUserSpace(java.lang.String s,
java.lang.String attr,
UnitProcessor.Context ctx)
Returns the specified horizontal coordinate in user units.
|
static float |
UnitProcessor.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 |
UnitProcessor.svgHorizontalLengthToUserSpace(java.lang.String s,
java.lang.String attr,
UnitProcessor.Context ctx)
Returns the specified horizontal length in user units.
|
static float |
UnitProcessor.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 |
UnitProcessor.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 |
UnitProcessor.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 |
UnitProcessor.svgOtherCoordinateToUserSpace(java.lang.String s,
java.lang.String attr,
UnitProcessor.Context ctx)
Returns the specified 'other' coordinate in user units.
|
static float |
UnitProcessor.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 |
UnitProcessor.svgOtherLengthToUserSpace(java.lang.String s,
java.lang.String attr,
UnitProcessor.Context ctx)
Returns the specified 'other' length in user units.
|
static float |
UnitProcessor.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 |
UnitProcessor.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 |
UnitProcessor.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 |
UnitProcessor.svgVerticalCoordinateToUserSpace(java.lang.String s,
java.lang.String attr,
UnitProcessor.Context ctx)
Returns the specified vertical coordinate in user units.
|
static float |
UnitProcessor.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 |
UnitProcessor.svgVerticalLengthToUserSpace(java.lang.String s,
java.lang.String attr,
UnitProcessor.Context ctx)
Returns the specified vertical length in user units.
|
Modifier and Type | Method and Description |
---|---|
protected RegionInfo |
BatikFlowTextElementBridge.buildRegion(UnitProcessor.Context uctx,
Element e,
float verticalAlignment) |
Modifier and Type | Method and Description |
---|---|
protected static float |
UnitProcessor.emsToPixels(float v,
short d,
UnitProcessor.Context ctx)
Converts ems units to user units.
|
protected static float |
UnitProcessor.exsToPixels(float v,
short d,
UnitProcessor.Context ctx)
Converts exs units to user units.
|
protected static float |
UnitProcessor.percentagesToPixels(float v,
short d,
UnitProcessor.Context ctx)
Converts percentages to user units.
|
protected static float |
UnitProcessor.pixelsToEms(float v,
short d,
UnitProcessor.Context ctx)
Converts user units to ems units.
|
protected static float |
UnitProcessor.pixelsToExs(float v,
short d,
UnitProcessor.Context ctx)
Converts user units to exs units.
|
protected static float |
UnitProcessor.pixelsToPercentages(float v,
short d,
UnitProcessor.Context ctx)
Converts user units to percentages relative to the viewport.
|
static float |
UnitProcessor.svgToObjectBoundingBox(float value,
short type,
short d,
UnitProcessor.Context ctx)
Returns the specified value with the specified direction in
objectBoundingBox units.
|
static float |
UnitProcessor.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 |
UnitProcessor.svgToUserSpace(float v,
short type,
short d,
UnitProcessor.Context ctx)
Converts the specified value of the specified type and
direction to user units.
|
static float |
UnitProcessor.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 |
UnitProcessor.userSpaceToSVG(float v,
short type,
short d,
UnitProcessor.Context ctx)
Converts the specified value of the specified type and
direction to SVG units.
|
Copyright © 2022 Apache Software Foundation. All Rights Reserved.