⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 utilities.html

📁 永中OFFICE二次开发帮助文档
💻 HTML
📖 第 1 页 / 共 2 页
字号:
centimeterToPoint</H3>
<PRE>
public static float <B>centimeterToPoint</B>(float&nbsp;measure)</PRE>
<DL>
<DD>将厘米转换为磅值。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>measure</CODE> - 度量值(以厘米为单位)
<DT><B>返回:</B><DD>转换后的度量值(以磅为单位) <p> <b>例子:</b> <pre> float point = Utilities.centimeterToPoint(2.0f); System.out.println("2厘米 = "+ point + "磅"); </pre><DT><B>另请参见:</B><DD><A HREF="../../application/util/Utilities.html#pointToCentimeter(float)"><CODE>pointToCentimeter(float)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="changeToPixels(int, float)"><!-- --></A><H3>
changeToPixels</H3>
<PRE>
public static int <B>changeToPixels</B>(int&nbsp;unitType,
                                 float&nbsp;measure)</PRE>
<DL>
<DD>将其它单位值转换成像素值。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>unitType</CODE> - 单位类型 <pre> UnitConstants.INCH            英寸 UnitConstants.CENTIMETER      厘米 UnitConstants.MILLIMETER      毫米 UnitConstants.POINT           磅 UnitConstants.PICA            十二点活字 </pre><DD><CODE>measure</CODE> - 转换前其它单位值
<DT><B>返回:</B><DD>像素值 <p> <b>例子:</b> <pre> int pixels = Utilities.changeToPixels(1, 2.0f); </pre><DT><B>另请参见:</B><DD><A HREF="../../application/constants/UnitConstants.html" title="application.constants 中的接口"><CODE>UnitConstants</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="otherToPoint(double, int)"><!-- --></A><H3>
otherToPoint</H3>
<PRE>
public static float <B>otherToPoint</B>(double&nbsp;length,
                                 int&nbsp;unit)</PRE>
<DL>
<DD>把英寸、厘米、毫米以及十二点活字转换为以磅为单位。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>length</CODE> - 长度或距离<DD><CODE>unit</CODE> - 计量单位 <pre> UnitConstants.INCH            英寸 UnitConstants.CENTIMETER      厘米 UnitConstants.MILLIMETER      毫米 UnitConstants.POINT           磅 UnitConstants.PICA            十二点活字 </pre> <p> <b>例子:</b> <pre> float length = 1.0f; System.out.println(length+"厘米 = "+Utilities.otherToPoint(length,UnitConstants.CENTIMETER)+"磅"); </pre><DT><B>另请参见:</B><DD><A HREF="../../application/constants/UnitConstants.html" title="application.constants 中的接口"><CODE>UnitConstants</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="pixelsChange(int, float)"><!-- --></A><H3>
pixelsChange</H3>
<PRE>
public static float <B>pixelsChange</B>(int&nbsp;unitType,
                                 float&nbsp;pixles)</PRE>
<DL>
<DD>将像素值转成其它单位值。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>unitType</CODE> - 单位类型  <pre> UnitConstants.INCH            英寸 UnitConstants.CENTIMETER      厘米 UnitConstants.MILLIMETER      毫米 UnitConstants.POINT           磅 UnitConstants.PICA            十二点活字 </pre><DD><CODE>pixles</CODE> - 像素值
<DT><B>返回:</B><DD>转换后的其他单位值 <p> <b>例子:</b> <pre> float pixels = Utilities.pixelsChange(1, 2.0f); </pre><DT><B>另请参见:</B><DD><A HREF="../../application/constants/UnitConstants.html" title="application.constants 中的接口"><CODE>UnitConstants</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="pixelToCentimeter(float)"><!-- --></A><H3>
pixelToCentimeter</H3>
<PRE>
public static float <B>pixelToCentimeter</B>(float&nbsp;measure)</PRE>
<DL>
<DD>将像素转换为厘米。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>measure</CODE> - 度量值(以像素为单位)
<DT><B>返回:</B><DD>转换后的度量值(以厘米为单位) <p> <b>例子:</b> <pre> float centimeter = Utilities.pixelToCentimeter(100.0f); System.out.println("100像素 = "+ centimeter + "厘米"); </pre><DT><B>另请参见:</B><DD><A HREF="../../application/util/Utilities.html#centimeterToPixel(float)"><CODE>centimeterToPixel(float)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="pixelToPoint(float)"><!-- --></A><H3>
pixelToPoint</H3>
<PRE>
public static float <B>pixelToPoint</B>(float&nbsp;measure)</PRE>
<DL>
<DD>将像素转换为磅值。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>measure</CODE> - 度量值(以像素为单位)
<DT><B>返回:</B><DD>转换后的度量值(以磅为单位) <p> <b>例子:</b> <pre> float point = Utilities.pixelToPoint(100.0f); System.out.println("100像素 = "+ point + "磅"); </pre><DT><B>另请参见:</B><DD><A HREF="../../application/util/Utilities.html#pointToPixel(float)"><CODE>pointToPixel(float)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="point2pixel(float)"><!-- --></A><H3>
point2pixel</H3>
<PRE>
public static int <B>point2pixel</B>(float&nbsp;point)</PRE>
<DL>
<DD>将磅值转换为像素。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>point</CODE> - 度量值(以磅为单位)
<DT><B>返回:</B><DD>转换后的度量值(以像素为单位) <p> <b>例子:</b> <pre> int pixel = Utilities.point2pixel(30.0f); System.out.println("30磅 = "+ pixel + "像素"); </pre></DL>
</DD>
</DL>
<HR>

<A NAME="pointToCentimeter(float)"><!-- --></A><H3>
pointToCentimeter</H3>
<PRE>
public static float <B>pointToCentimeter</B>(float&nbsp;measure)</PRE>
<DL>
<DD>将磅值转换为厘米。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>measure</CODE> - 度量值(以磅值为单位)
<DT><B>返回:</B><DD>转换后的度量值(以厘米为单位) <p> <b>例子:</b> <pre> float centimeter = Utilities.pointToCentimeter(30.0f); System.out.println("30磅 = "+ centimeter + "厘米"); </pre><DT><B>另请参见:</B><DD><A HREF="../../application/util/Utilities.html#centimeterToPoint(float)"><CODE>centimeterToPoint(float)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="pointToOther(double, int)"><!-- --></A><H3>
pointToOther</H3>
<PRE>
public static double <B>pointToOther</B>(double&nbsp;length,
                                  int&nbsp;unit)</PRE>
<DL>
<DD>由磅值转换为相应单位(英寸、厘米、毫米以及十二点活字)的值。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>length</CODE> - 长度或距离<DD><CODE>unit</CODE> - 计量单位 <pre> UnitConstants.INCH            英寸 UnitConstants.CENTIMETER      厘米 UnitConstants.MILLIMETER      毫米 UnitConstants.POINT           磅 UnitConstants.PICA            十二点活字 </pre> <p> <b>例子:</b> <pre> float length = 100.0f; System.out.println(length+"磅 = "+Utilities.pointToOther(length,UnitConstants.CENTIMETER)+"厘米"); </pre><DT><B>另请参见:</B><DD><A HREF="../../application/constants/UnitConstants.html" title="application.constants 中的接口"><CODE>UnitConstants</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="pointToPixel(float)"><!-- --></A><H3>
pointToPixel</H3>
<PRE>
public static float <B>pointToPixel</B>(float&nbsp;measure)</PRE>
<DL>
<DD>将磅值转换为像素。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>measure</CODE> - 度量值(以磅为单位)
<DT><B>返回:</B><DD>转换后的度量值(以像素为单位) <p> <b>例子:</b> <pre> float pixel = Utilities.pointToPixel(30.0f); System.out.println("30磅 = "+ pixel + "像素"); </pre><DT><B>另请参见:</B><DD><A HREF="../../application/util/Utilities.html#pixelToPoint(float)"><CODE>pixelToPoint(float)</CODE></A></DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="跳过导航链接"></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>概述</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>软件包</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>类</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>树</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>索引</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>帮助</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;上一个类&nbsp;
&nbsp;下一个类</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../index.html?application/util/Utilities.html" target="_top"><B>框架</B></A>  &nbsp;
&nbsp;<A HREF="Utilities.html" target="_top"><B>无框架</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../allclasses-noframe.html"><B>所有类</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../allclasses-noframe.html"><B>所有类</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  摘要:&nbsp;嵌套&nbsp;|&nbsp;字段&nbsp;|&nbsp;<A HREF="#constructor_summary">构造方法</A>&nbsp;|&nbsp;<A HREF="#method_summary">方法</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
详细信息:&nbsp;字段&nbsp;|&nbsp;<A HREF="#constructor_detail">构造方法</A>&nbsp;|&nbsp;<A HREF="#method_detail">方法</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>
版权所有 2001-2006 无锡永中科技有限公司
</BODY>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -