blob: c8a2d640306c626ab0d386d7b1a40f8eba440bea [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<TITLE>
UnitProcessor (Apache Batik Javadoc)
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="UnitProcessor (Apache Batik Javadoc)";
}
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<HR>
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/UnitProcessor.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../org/apache/batik/parser/TransformListParser.html" title="class in org.apache.batik.parser"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../org/apache/batik/parser/UnitProcessor.Context.html" title="interface in org.apache.batik.parser"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?org/apache/batik/parser/UnitProcessor.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="UnitProcessor.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
org.apache.batik.parser</FONT>
<BR>
Class UnitProcessor</H2>
<PRE>
<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.batik.parser.UnitProcessor</B>
</PRE>
<DL>
<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../org/apache/batik/bridge/UnitProcessor.html" title="class in org.apache.batik.bridge">UnitProcessor</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public abstract class <B>UnitProcessor</B><DT>extends <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></DL>
</PRE>
<P>
This class provides methods to convert SVG length and coordinate to
float in user units.
<P>
<P>
<HR>
<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->
<A NAME="nested_class_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Nested Class Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;interface</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/batik/parser/UnitProcessor.Context.html" title="interface in org.apache.batik.parser">UnitProcessor.Context</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Holds the informations needed to compute the units.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/batik/parser/UnitProcessor.UnitResolver.html" title="class in org.apache.batik.parser">UnitProcessor.UnitResolver</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A LengthHandler that convert units.</TD>
</TR>
</TABLE>
&nbsp;<!-- =========== FIELD SUMMARY =========== -->
<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Field Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;short</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/batik/parser/UnitProcessor.html#HORIZONTAL_LENGTH">HORIZONTAL_LENGTH</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This constant represents horizontal lengths.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;short</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/batik/parser/UnitProcessor.html#OTHER_LENGTH">OTHER_LENGTH</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This constant represents other lengths.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;short</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/batik/parser/UnitProcessor.html#VERTICAL_LENGTH">VERTICAL_LENGTH</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This constant represents vertical lengths.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected </CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/batik/parser/UnitProcessor.html#UnitProcessor()">UnitProcessor</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;No instance of this class is required.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected static&nbsp;float</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/batik/parser/UnitProcessor.html#emsToPixels(float, short, org.apache.batik.parser.UnitProcessor.Context)">emsToPixels</A></B>(float&nbsp;v,
short&nbsp;d,
<A HREF="../../../../org/apache/batik/parser/UnitProcessor.Context.html" title="interface in org.apache.batik.parser">UnitProcessor.Context</A>&nbsp;ctx)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts ems units to user units.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected static&nbsp;float</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/batik/parser/UnitProcessor.html#exsToPixels(float, short, org.apache.batik.parser.UnitProcessor.Context)">exsToPixels</A></B>(float&nbsp;v,
short&nbsp;d,
<A HREF="../../../../org/apache/batik/parser/UnitProcessor.Context.html" title="interface in org.apache.batik.parser">UnitProcessor.Context</A>&nbsp;ctx)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts exs units to user units.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected static&nbsp;float</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/batik/parser/UnitProcessor.html#percentagesToPixels(float, short, org.apache.batik.parser.UnitProcessor.Context)">percentagesToPixels</A></B>(float&nbsp;v,
short&nbsp;d,
<A HREF="../../../../org/apache/batik/parser/UnitProcessor.Context.html" title="interface in org.apache.batik.parser">UnitProcessor.Context</A>&nbsp;ctx)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts percentages to user units.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected static&nbsp;float</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/batik/parser/UnitProcessor.html#pixelsToEms(float, short, org.apache.batik.parser.UnitProcessor.Context)">pixelsToEms</A></B>(float&nbsp;v,
short&nbsp;d,
<A HREF="../../../../org/apache/batik/parser/UnitProcessor.Context.html" title="interface in org.apache.batik.parser">UnitProcessor.Context</A>&nbsp;ctx)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts user units to ems units.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected static&nbsp;float</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/batik/parser/UnitProcessor.html#pixelsToExs(float, short, org.apache.batik.parser.UnitProcessor.Context)">pixelsToExs</A></B>(float&nbsp;v,
short&nbsp;d,
<A HREF="../../../../org/apache/batik/parser/UnitProcessor.Context.html" title="interface in org.apache.batik.parser">UnitProcessor.Context</A>&nbsp;ctx)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts user units to exs units.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected static&nbsp;float</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/batik/parser/UnitProcessor.html#pixelsToPercentages(float, short, org.apache.batik.parser.UnitProcessor.Context)">pixelsToPercentages</A></B>(float&nbsp;v,
short&nbsp;d,
<A HREF="../../../../org/apache/batik/parser/UnitProcessor.Context.html" title="interface in org.apache.batik.parser">UnitProcessor.Context</A>&nbsp;ctx)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts user units to percentages relative to the viewport.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;float</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/batik/parser/UnitProcessor.html#svgToObjectBoundingBox(float, short, short, org.apache.batik.parser.UnitProcessor.Context)">svgToObjectBoundingBox</A></B>(float&nbsp;value,
short&nbsp;type,
short&nbsp;d,
<A HREF="../../../../org/apache/batik/parser/UnitProcessor.Context.html" title="interface in org.apache.batik.parser">UnitProcessor.Context</A>&nbsp;ctx)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the specified value with the specified direction in
objectBoundingBox units.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;float</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/batik/parser/UnitProcessor.html#svgToObjectBoundingBox(java.lang.String, java.lang.String, short, org.apache.batik.parser.UnitProcessor.Context)">svgToObjectBoundingBox</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;s,
<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;attr,
short&nbsp;d,
<A HREF="../../../../org/apache/batik/parser/UnitProcessor.Context.html" title="interface in org.apache.batik.parser">UnitProcessor.Context</A>&nbsp;ctx)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the specified value with the specified direction in
objectBoundingBox units.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;float</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/batik/parser/UnitProcessor.html#svgToUserSpace(float, short, short, org.apache.batik.parser.UnitProcessor.Context)">svgToUserSpace</A></B>(float&nbsp;v,
short&nbsp;type,
short&nbsp;d,
<A HREF="../../../../org/apache/batik/parser/UnitProcessor.Context.html" title="interface in org.apache.batik.parser">UnitProcessor.Context</A>&nbsp;ctx)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts the specified value of the specified type and
direction to user units.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;float</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/batik/parser/UnitProcessor.html#svgToUserSpace(java.lang.String, java.lang.String, short, org.apache.batik.parser.UnitProcessor.Context)">svgToUserSpace</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;s,
<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;attr,
short&nbsp;d,
<A HREF="../../../../org/apache/batik/parser/UnitProcessor.Context.html" title="interface in org.apache.batik.parser">UnitProcessor.Context</A>&nbsp;ctx)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the specified coordinate with the specified direction
in user units.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;float</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/batik/parser/UnitProcessor.html#userSpaceToSVG(float, short, short, org.apache.batik.parser.UnitProcessor.Context)">userSpaceToSVG</A></B>(float&nbsp;v,
short&nbsp;type,
short&nbsp;d,
<A HREF="../../../../org/apache/batik/parser/UnitProcessor.Context.html" title="interface in org.apache.batik.parser">UnitProcessor.Context</A>&nbsp;ctx)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts the specified value of the specified type and
direction to SVG units.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Field Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="HORIZONTAL_LENGTH"><!-- --></A><H3>
HORIZONTAL_LENGTH</H3>
<PRE>
public static final short <B>HORIZONTAL_LENGTH</B></PRE>
<DL>
<DD>This constant represents horizontal lengths.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.batik.parser.UnitProcessor.HORIZONTAL_LENGTH">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="VERTICAL_LENGTH"><!-- --></A><H3>
VERTICAL_LENGTH</H3>
<PRE>
public static final short <B>VERTICAL_LENGTH</B></PRE>
<DL>
<DD>This constant represents vertical lengths.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.batik.parser.UnitProcessor.VERTICAL_LENGTH">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="OTHER_LENGTH"><!-- --></A><H3>
OTHER_LENGTH</H3>
<PRE>
public static final short <B>OTHER_LENGTH</B></PRE>
<DL>
<DD>This constant represents other lengths.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.batik.parser.UnitProcessor.OTHER_LENGTH">Constant Field Values</A></DL>
</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="UnitProcessor()"><!-- --></A><H3>
UnitProcessor</H3>
<PRE>
protected <B>UnitProcessor</B>()</PRE>
<DL>
<DD>No instance of this class is required.
<P>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="svgToObjectBoundingBox(java.lang.String, java.lang.String, short, org.apache.batik.parser.UnitProcessor.Context)"><!-- --></A><H3>
svgToObjectBoundingBox</H3>
<PRE>
public static float <B>svgToObjectBoundingBox</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;s,
<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;attr,
short&nbsp;d,
<A HREF="../../../../org/apache/batik/parser/UnitProcessor.Context.html" title="interface in org.apache.batik.parser">UnitProcessor.Context</A>&nbsp;ctx)
throws <A HREF="../../../../org/apache/batik/parser/ParseException.html" title="class in org.apache.batik.parser">ParseException</A></PRE>
<DL>
<DD>Returns the specified value with the specified direction in
objectBoundingBox units.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>s</CODE> - the value<DD><CODE>attr</CODE> - the attribute name that represents the value<DD><CODE>d</CODE> - the direction of the value<DD><CODE>ctx</CODE> - the context used to resolve relative value
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../org/apache/batik/parser/ParseException.html" title="class in org.apache.batik.parser">ParseException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="svgToObjectBoundingBox(float, short, short, org.apache.batik.parser.UnitProcessor.Context)"><!-- --></A><H3>
svgToObjectBoundingBox</H3>
<PRE>
public static float <B>svgToObjectBoundingBox</B>(float&nbsp;value,
short&nbsp;type,
short&nbsp;d,
<A HREF="../../../../org/apache/batik/parser/UnitProcessor.Context.html" title="interface in org.apache.batik.parser">UnitProcessor.Context</A>&nbsp;ctx)</PRE>
<DL>
<DD>Returns the specified value with the specified direction in
objectBoundingBox units.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - the value<DD><CODE>type</CODE> - the type of the value<DD><CODE>d</CODE> - the direction of the value<DD><CODE>ctx</CODE> - the context used to resolve relative value</DL>
</DD>
</DL>
<HR>
<A NAME="svgToUserSpace(java.lang.String, java.lang.String, short, org.apache.batik.parser.UnitProcessor.Context)"><!-- --></A><H3>
svgToUserSpace</H3>
<PRE>
public static float <B>svgToUserSpace</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;s,
<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;attr,
short&nbsp;d,
<A HREF="../../../../org/apache/batik/parser/UnitProcessor.Context.html" title="interface in org.apache.batik.parser">UnitProcessor.Context</A>&nbsp;ctx)
throws <A HREF="../../../../org/apache/batik/parser/ParseException.html" title="class in org.apache.batik.parser">ParseException</A></PRE>
<DL>
<DD>Returns the specified coordinate with the specified direction
in user units.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>s</CODE> - the 'other' coordinate<DD><CODE>attr</CODE> - the attribute name that represents the length<DD><CODE>d</CODE> - the direction of the coordinate<DD><CODE>ctx</CODE> - the context used to resolve relative value
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../org/apache/batik/parser/ParseException.html" title="class in org.apache.batik.parser">ParseException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="svgToUserSpace(float, short, short, org.apache.batik.parser.UnitProcessor.Context)"><!-- --></A><H3>
svgToUserSpace</H3>
<PRE>
public static float <B>svgToUserSpace</B>(float&nbsp;v,
short&nbsp;type,
short&nbsp;d,
<A HREF="../../../../org/apache/batik/parser/UnitProcessor.Context.html" title="interface in org.apache.batik.parser">UnitProcessor.Context</A>&nbsp;ctx)</PRE>
<DL>
<DD>Converts the specified value of the specified type and
direction to user units.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>v</CODE> - the value to convert<DD><CODE>type</CODE> - the type of the value<DD><CODE>d</CODE> - HORIZONTAL_LENGTH, VERTICAL_LENGTH, or OTHER_LENGTH<DD><CODE>ctx</CODE> - the context used to resolve relative value</DL>
</DD>
</DL>
<HR>
<A NAME="userSpaceToSVG(float, short, short, org.apache.batik.parser.UnitProcessor.Context)"><!-- --></A><H3>
userSpaceToSVG</H3>
<PRE>
public static float <B>userSpaceToSVG</B>(float&nbsp;v,
short&nbsp;type,
short&nbsp;d,
<A HREF="../../../../org/apache/batik/parser/UnitProcessor.Context.html" title="interface in org.apache.batik.parser">UnitProcessor.Context</A>&nbsp;ctx)</PRE>
<DL>
<DD>Converts the specified value of the specified type and
direction to SVG units.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>v</CODE> - the value to convert<DD><CODE>type</CODE> - the type of the value<DD><CODE>d</CODE> - HORIZONTAL_LENGTH, VERTICAL_LENGTH, or OTHER_LENGTH<DD><CODE>ctx</CODE> - the context used to resolve relative value</DL>
</DD>
</DL>
<HR>
<A NAME="percentagesToPixels(float, short, org.apache.batik.parser.UnitProcessor.Context)"><!-- --></A><H3>
percentagesToPixels</H3>
<PRE>
protected static float <B>percentagesToPixels</B>(float&nbsp;v,
short&nbsp;d,
<A HREF="../../../../org/apache/batik/parser/UnitProcessor.Context.html" title="interface in org.apache.batik.parser">UnitProcessor.Context</A>&nbsp;ctx)</PRE>
<DL>
<DD>Converts percentages to user units.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>v</CODE> - the percentage to convert<DD><CODE>d</CODE> - HORIZONTAL_LENGTH, VERTICAL_LENGTH, or OTHER_LENGTH<DD><CODE>ctx</CODE> - the context</DL>
</DD>
</DL>
<HR>
<A NAME="pixelsToPercentages(float, short, org.apache.batik.parser.UnitProcessor.Context)"><!-- --></A><H3>
pixelsToPercentages</H3>
<PRE>
protected static float <B>pixelsToPercentages</B>(float&nbsp;v,
short&nbsp;d,
<A HREF="../../../../org/apache/batik/parser/UnitProcessor.Context.html" title="interface in org.apache.batik.parser">UnitProcessor.Context</A>&nbsp;ctx)</PRE>
<DL>
<DD>Converts user units to percentages relative to the viewport.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>v</CODE> - the value to convert<DD><CODE>d</CODE> - HORIZONTAL_LENGTH, VERTICAL_LENGTH, or OTHER_LENGTH<DD><CODE>ctx</CODE> - the context</DL>
</DD>
</DL>
<HR>
<A NAME="pixelsToEms(float, short, org.apache.batik.parser.UnitProcessor.Context)"><!-- --></A><H3>
pixelsToEms</H3>
<PRE>
protected static float <B>pixelsToEms</B>(float&nbsp;v,
short&nbsp;d,
<A HREF="../../../../org/apache/batik/parser/UnitProcessor.Context.html" title="interface in org.apache.batik.parser">UnitProcessor.Context</A>&nbsp;ctx)</PRE>
<DL>
<DD>Converts user units to ems units.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>v</CODE> - the value to convert<DD><CODE>d</CODE> - HORIZONTAL_LENGTH, VERTICAL_LENGTH, or OTHER_LENGTH<DD><CODE>ctx</CODE> - the context</DL>
</DD>
</DL>
<HR>
<A NAME="emsToPixels(float, short, org.apache.batik.parser.UnitProcessor.Context)"><!-- --></A><H3>
emsToPixels</H3>
<PRE>
protected static float <B>emsToPixels</B>(float&nbsp;v,
short&nbsp;d,
<A HREF="../../../../org/apache/batik/parser/UnitProcessor.Context.html" title="interface in org.apache.batik.parser">UnitProcessor.Context</A>&nbsp;ctx)</PRE>
<DL>
<DD>Converts ems units to user units.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>v</CODE> - the value to convert<DD><CODE>d</CODE> - HORIZONTAL_LENGTH, VERTICAL_LENGTH, or OTHER_LENGTH<DD><CODE>ctx</CODE> - the context</DL>
</DD>
</DL>
<HR>
<A NAME="pixelsToExs(float, short, org.apache.batik.parser.UnitProcessor.Context)"><!-- --></A><H3>
pixelsToExs</H3>
<PRE>
protected static float <B>pixelsToExs</B>(float&nbsp;v,
short&nbsp;d,
<A HREF="../../../../org/apache/batik/parser/UnitProcessor.Context.html" title="interface in org.apache.batik.parser">UnitProcessor.Context</A>&nbsp;ctx)</PRE>
<DL>
<DD>Converts user units to exs units.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>v</CODE> - the value to convert<DD><CODE>d</CODE> - HORIZONTAL_LENGTH, VERTICAL_LENGTH, or OTHER_LENGTH<DD><CODE>ctx</CODE> - the context</DL>
</DD>
</DL>
<HR>
<A NAME="exsToPixels(float, short, org.apache.batik.parser.UnitProcessor.Context)"><!-- --></A><H3>
exsToPixels</H3>
<PRE>
protected static float <B>exsToPixels</B>(float&nbsp;v,
short&nbsp;d,
<A HREF="../../../../org/apache/batik/parser/UnitProcessor.Context.html" title="interface in org.apache.batik.parser">UnitProcessor.Context</A>&nbsp;ctx)</PRE>
<DL>
<DD>Converts exs units to user units.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>v</CODE> - the value to convert<DD><CODE>d</CODE> - HORIZONTAL_LENGTH, VERTICAL_LENGTH, or OTHER_LENGTH<DD><CODE>ctx</CODE> - the context</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/UnitProcessor.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../org/apache/batik/parser/TransformListParser.html" title="class in org.apache.batik.parser"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../org/apache/batik/parser/UnitProcessor.Context.html" title="interface in org.apache.batik.parser"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?org/apache/batik/parser/UnitProcessor.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="UnitProcessor.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
Copyright © 2017 <a href='http://www.apache.org/'>Apache Software Foundation</a>. All Rights Reserved.
</BODY>
</HTML>