format.numericformat.html

来自「基于mondrian 开源框架进行OLAP多维分析」· HTML 代码 · 共 618 行 · 第 1/2 页

HTML
618
字号
<TD><CODE><A HREF="../../mondrian/util/Format.FallbackFormat.html#format(java.util.Calendar, java.lang.StringBuilder)">format</A>, <A HREF="../../mondrian/util/Format.FallbackFormat.html#format(java.lang.String, java.lang.StringBuilder)">format</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_mondrian.util.Format.BasicFormat"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class mondrian.util.<A HREF="../../mondrian/util/Format.BasicFormat.html" title="class in mondrian.util">Format.BasicFormat</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../mondrian/util/Format.BasicFormat.html#format(java.util.Date, java.lang.StringBuilder)">format</A>, <A HREF="../../mondrian/util/Format.BasicFormat.html#formatNull(java.lang.StringBuilder)">formatNull</A>, <A HREF="../../mondrian/util/Format.BasicFormat.html#isApplicableTo(long)">isApplicableTo</A>, <A HREF="../../mondrian/util/Format.BasicFormat.html#isDate()">isDate</A>, <A HREF="../../mondrian/util/Format.BasicFormat.html#isNumeric()">isNumeric</A>, <A HREF="../../mondrian/util/Format.BasicFormat.html#isString()">isString</A></CODE></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://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#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="locale"><!-- --></A><H3>locale</H3><PRE><A HREF="../../mondrian/util/Format.FormatLocale.html" title="class in mondrian.util">Format.FormatLocale</A> <B>locale</B></PRE><DL><DL></DL></DL><HR><A NAME="digitsLeftOfPoint"><!-- --></A><H3>digitsLeftOfPoint</H3><PRE>int <B>digitsLeftOfPoint</B></PRE><DL><DL></DL></DL><HR><A NAME="zeroesLeftOfPoint"><!-- --></A><H3>zeroesLeftOfPoint</H3><PRE>int <B>zeroesLeftOfPoint</B></PRE><DL><DL></DL></DL><HR><A NAME="digitsRightOfPoint"><!-- --></A><H3>digitsRightOfPoint</H3><PRE>int <B>digitsRightOfPoint</B></PRE><DL><DL></DL></DL><HR><A NAME="zeroesRightOfPoint"><!-- --></A><H3>zeroesRightOfPoint</H3><PRE>int <B>zeroesRightOfPoint</B></PRE><DL><DL></DL></DL><HR><A NAME="digitsRightOfExp"><!-- --></A><H3>digitsRightOfExp</H3><PRE>int <B>digitsRightOfExp</B></PRE><DL><DL></DL></DL><HR><A NAME="zeroesRightOfExp"><!-- --></A><H3>zeroesRightOfExp</H3><PRE>int <B>zeroesRightOfExp</B></PRE><DL><DL></DL></DL><HR><A NAME="decimalShift"><!-- --></A><H3>decimalShift</H3><PRE>int <B>decimalShift</B></PRE><DL><DD>Number of decimal places to shift the number left before formatting it: 2 means multiply by 100; -3 means divide by 1000.<P><DL></DL></DL><HR><A NAME="expChar"><!-- --></A><H3>expChar</H3><PRE>char <B>expChar</B></PRE><DL><DL></DL></DL><HR><A NAME="expSign"><!-- --></A><H3>expSign</H3><PRE>boolean <B>expSign</B></PRE><DL><DL></DL></DL><HR><A NAME="useDecimal"><!-- --></A><H3>useDecimal</H3><PRE>boolean <B>useDecimal</B></PRE><DL><DL></DL></DL><HR><A NAME="useThouSep"><!-- --></A><H3>useThouSep</H3><PRE>boolean <B>useThouSep</B></PRE><DL><DL></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="Format.NumericFormat(java.lang.String, mondrian.util.Format.FormatLocale, int, int, int, int, int, int, int, boolean, boolean)"><!-- --></A><H3>Format.NumericFormat</H3><PRE><B>Format.NumericFormat</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;token,                     <A HREF="../../mondrian/util/Format.FormatLocale.html" title="class in mondrian.util">Format.FormatLocale</A>&nbsp;locale,                     int&nbsp;expFormat,                     int&nbsp;digitsLeftOfPoint,                     int&nbsp;zeroesLeftOfPoint,                     int&nbsp;digitsRightOfPoint,                     int&nbsp;zeroesRightOfPoint,                     int&nbsp;digitsRightOfExp,                     int&nbsp;zeroesRightOfExp,                     boolean&nbsp;useDecimal,                     boolean&nbsp;useThouSep)</PRE><DL></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="format(double, java.lang.StringBuilder)"><!-- --></A><H3>format</H3><PRE>void <B>format</B>(double&nbsp;n,            <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/StringBuilder.html" title="class or interface in java.lang">StringBuilder</A>&nbsp;buf)</PRE><DL><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../mondrian/util/Format.FallbackFormat.html#format(double, java.lang.StringBuilder)">format</A></CODE> in class <CODE><A HREF="../../mondrian/util/Format.FallbackFormat.html" title="class in mondrian.util">Format.FallbackFormat</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="isApplicableTo(double)"><!-- --></A><H3>isApplicableTo</H3><PRE>boolean <B>isApplicableTo</B>(double&nbsp;n)</PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../mondrian/util/Format.BasicFormat.html#isApplicableTo(double)">Format.BasicFormat</A></CODE></B></DD><DD>Returns whether this format can handle a given value. <p>Usually returns true; one notable exception is a format for negative numbers which causes the number to be underflow to zero and therefore be ineligible for the negative format.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../mondrian/util/Format.BasicFormat.html#isApplicableTo(double)">isApplicableTo</A></CODE> in class <CODE><A HREF="../../mondrian/util/Format.BasicFormat.html" title="class in mondrian.util">Format.BasicFormat</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>n</CODE> - value<DT><B>Returns:</B><DD>Whether this format is applicable for a given value</DL></DD></DL><HR><A NAME="format(long, java.lang.StringBuilder)"><!-- --></A><H3>format</H3><PRE>void <B>format</B>(long&nbsp;n,            <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/StringBuilder.html" title="class or interface in java.lang">StringBuilder</A>&nbsp;buf)</PRE><DL><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../mondrian/util/Format.FallbackFormat.html#format(long, java.lang.StringBuilder)">format</A></CODE> in class <CODE><A HREF="../../mondrian/util/Format.FallbackFormat.html" title="class in mondrian.util">Format.FallbackFormat</A></CODE></DL></DD><DD><DL></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="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-all.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><a href="http://sourceforge.net/projects/mondrian"><img src="http://sourceforge.net/sflogo.php?group_id=35302&type=1" width="88" height="31" border="0" alt="SourceForge.net_Logo"></a></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../mondrian/util/Format.MacroToken.html" title="class in mondrian.util"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../mondrian/util/Format.Token.html" title="class in mondrian.util"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../index.html?mondrian/util/Format.NumericFormat.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="Format.NumericFormat.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;NESTED&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></BODY></HTML>

⌨️ 快捷键说明

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