📄 classificationfunction.html
字号:
<DD><DL></DL></DD></DL><HR><A NAME="getExpression()"><!-- --></A><H3>getExpression</H3><PRE>public <A HREF="../../../../org/geotools/filter/Expression.html" title="interface in org.geotools.filter">Expression</A> <B>getExpression</B>()</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setExpression(org.geotools.filter.Expression)"><!-- --></A><H3>setExpression</H3><PRE>public void <B>setExpression</B>(<A HREF="../../../../org/geotools/filter/Expression.html" title="interface in org.geotools.filter">Expression</A> e)</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getProgressListener()"><!-- --></A><H3>getProgressListener</H3><PRE>public <A HREF="../../../../org/geotools/util/ProgressListener.html" title="interface in org.geotools.util">ProgressListener</A> <B>getProgressListener</B>()</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setProgressListener(org.geotools.util.ProgressListener)"><!-- --></A><H3>setProgressListener</H3><PRE>public void <B>setProgressListener</B>(<A HREF="../../../../org/geotools/util/ProgressListener.html" title="interface in org.geotools.util">ProgressListener</A> progress)</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getArgs()"><!-- --></A><H3>getArgs</H3><PRE>public <A HREF="../../../../org/geotools/filter/Expression.html" title="interface in org.geotools.filter">Expression</A>[] <B>getArgs</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/geotools/filter/FunctionExpression.html" title="interface in org.geotools.filter">FunctionExpression</A></CODE></B></DD><DD>Gets the arguments to be evaluated by this function.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/geotools/filter/FunctionExpression.html#getArgs()">getArgs</A></CODE> in interface <CODE><A HREF="../../../../org/geotools/filter/FunctionExpression.html" title="interface in org.geotools.filter">FunctionExpression</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/geotools/filter/FunctionExpressionImpl.html#getArgs()">getArgs</A></CODE> in class <CODE><A HREF="../../../../org/geotools/filter/FunctionExpressionImpl.html" title="class in org.geotools.filter">FunctionExpressionImpl</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getName()"><!-- --></A><H3>getName</H3><PRE>public abstract <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getName</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/geotools/filter/FunctionExpression.html" title="interface in org.geotools.filter">FunctionExpression</A></CODE></B></DD><DD>Gets the name of this function.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/geotools/filter/FunctionExpression.html#getName()">getName</A></CODE> in interface <CODE><A HREF="../../../../org/geotools/filter/FunctionExpression.html" title="interface in org.geotools.filter">FunctionExpression</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/geotools/filter/FunctionExpressionImpl.html#getName()">getName</A></CODE> in class <CODE><A HREF="../../../../org/geotools/filter/FunctionExpressionImpl.html" title="class in org.geotools.filter">FunctionExpressionImpl</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the name of the function.</DL></DD></DL><HR><A NAME="setArgs(org.geotools.filter.Expression[])"><!-- --></A><H3>setArgs</H3><PRE>public void <B>setArgs</B>(<A HREF="../../../../org/geotools/filter/Expression.html" title="interface in org.geotools.filter">Expression</A>[] args)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/geotools/filter/FunctionExpression.html" title="interface in org.geotools.filter">FunctionExpression</A></CODE></B></DD><DD>Sets the arguments to be evaluated by this function.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/geotools/filter/FunctionExpression.html#setArgs(org.geotools.filter.Expression[])">setArgs</A></CODE> in interface <CODE><A HREF="../../../../org/geotools/filter/FunctionExpression.html" title="interface in org.geotools.filter">FunctionExpression</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/geotools/filter/FunctionExpressionImpl.html#setArgs(org.geotools.filter.Expression[])">setArgs</A></CODE> in class <CODE><A HREF="../../../../org/geotools/filter/FunctionExpressionImpl.html" title="class in org.geotools.filter">FunctionExpressionImpl</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="evaluate(org.geotools.feature.Feature)"><!-- --></A><H3>evaluate</H3><PRE>public abstract <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <B>evaluate</B>(<A HREF="../../../../org/geotools/feature/Feature.html" title="interface in org.geotools.feature">Feature</A> feature)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/geotools/filter/Expression.html" title="interface in org.geotools.filter">Expression</A></CODE></B></DD><DD>Evaluates the expression against an instance of <A HREF="../../../../org/geotools/feature/Feature.html" title="interface in org.geotools.feature"><CODE>Feature</CODE></A>.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/geotools/filter/Expression.html#evaluate(org.geotools.feature.Feature)">evaluate</A></CODE> in interface <CODE><A HREF="../../../../org/geotools/filter/Expression.html" title="interface in org.geotools.filter">Expression</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/geotools/filter/DefaultExpression.html#evaluate(org.geotools.feature.Feature)">evaluate</A></CODE> in class <CODE><A HREF="../../../../org/geotools/filter/DefaultExpression.html" title="class in org.geotools.filter">DefaultExpression</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>feature</CODE> - Specified feature to use when returning value.<DT><B>Returns:</B><DD>The value of this expression based on the feature.</DL></DD></DL><HR><A NAME="getValue(int)"><!-- --></A><H3>getValue</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <B>getValue</B>(int index)</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="decimalPlaces(double)"><!-- --></A><H3>decimalPlaces</H3><PRE>protected int <B>decimalPlaces</B>(double slotWidth)</PRE><DL><DD>Determines the number of decimal places to truncate the interval at (public for testing purposes only).<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>slotWidth</CODE> - </DL></DD></DL><HR><A NAME="round(double, int)"><!-- --></A><H3>round</H3><PRE>protected double <B>round</B>(double value, int decimalPlaces)</PRE><DL><DD>Truncates a double to a certain number of decimals places. Note: truncation at zero decimal places will still show up as x.0, since we're using the double type.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - number to round-off<DD><CODE>decimalPlaces</CODE> - number of decimal places to leave<DT><B>Returns:</B><DD>the rounded value</DL></DD></DL><HR><A NAME="fixRound(double, int, boolean)"><!-- --></A><H3>fixRound</H3><PRE>protected double <B>fixRound</B>(double value, int decimalPlaces, boolean up)</PRE><DL><DD>Corrects a round off operation by incrementing or decrementing the decimal place (preferably the smallest one). This should usually be used to adjust the bounds to include a value. Example: 0.31-->0.44 where 0.44 is the maximum value and end of the range. We could just make the , round(0.31, 1)=0.3; round(0.44 max value = 0.49<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - <DD><CODE>decimalPlaces</CODE> - <DD><CODE>up</CODE> - </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=3 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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ClassificationFunction.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS <A HREF="../../../../org/geotools/filter/function/Collection_AverageFunction.html" title="class in org.geotools.filter.function"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="ClassificationFunction.html" target="_top"><B>NO FRAMES</B></A> <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: NESTED | <A HREF="#fields_inherited_from_class_DefaultExpression">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR>Copyright © 1996-2007 <a href="http://www.geotools.org">Geotools</a>. All Rights Reserved.</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -