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

📄 boundedrangemodel.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 2 页
字号:
</TR></TABLE><A NAME="getMinimum()"><!-- --></A><H3>getMinimum</H3><PRE>public int <B>getMinimum</B>()</PRE><DL><DD>Returns the minimum acceptable value.<DD><DL><DT><B>Returns:</B><DD>the value of the minimum property<DT><B>See Also: </B><DD><A HREF="../../javax/swing/BoundedRangeModel.html#setMinimum(int)"><CODE>setMinimum(int)</CODE></A></DL></DD></DL><HR><A NAME="setMinimum(int)"><!-- --></A><H3>setMinimum</H3><PRE>public void <B>setMinimum</B>(int&nbsp;newMinimum)</PRE><DL><DD>Sets the model's minimum to <I>newMinimum</I>.   The  other three properties may be changed as well, to ensure  that: <pre> minimum <= value <= value+extent <= maximum </pre> <p> Notifies any listeners if the model changes.<DD><DL><DT><B>Parameters:</B><DD><CODE>newMinimum</CODE> - the model's new minimum<DT><B>See Also: </B><DD><A HREF="../../javax/swing/BoundedRangeModel.html#getMinimum()"><CODE>getMinimum()</CODE></A>, <A HREF="../../javax/swing/BoundedRangeModel.html#addChangeListener(javax.swing.event.ChangeListener)"><CODE>addChangeListener(javax.swing.event.ChangeListener)</CODE></A></DL></DD></DL><HR><A NAME="getMaximum()"><!-- --></A><H3>getMaximum</H3><PRE>public int <B>getMaximum</B>()</PRE><DL><DD>Returns the model's maximum.  Note that the upper limit on the model's value is (maximum - extent).<DD><DL><DT><B>Returns:</B><DD>the value of the maximum property.<DT><B>See Also: </B><DD><A HREF="../../javax/swing/BoundedRangeModel.html#setMaximum(int)"><CODE>setMaximum(int)</CODE></A>, <A HREF="../../javax/swing/BoundedRangeModel.html#setExtent(int)"><CODE>setExtent(int)</CODE></A></DL></DD></DL><HR><A NAME="setMaximum(int)"><!-- --></A><H3>setMaximum</H3><PRE>public void <B>setMaximum</B>(int&nbsp;newMaximum)</PRE><DL><DD>Sets the model's maximum to <I>newMaximum</I>. The other  three properties may be changed as well, to ensure that <pre> minimum <= value <= value+extent <= maximum </pre> <p> Notifies any listeners if the model changes.<DD><DL><DT><B>Parameters:</B><DD><CODE>newMaximum</CODE> - the model's new maximum<DT><B>See Also: </B><DD><A HREF="../../javax/swing/BoundedRangeModel.html#getMaximum()"><CODE>getMaximum()</CODE></A>, <A HREF="../../javax/swing/BoundedRangeModel.html#addChangeListener(javax.swing.event.ChangeListener)"><CODE>addChangeListener(javax.swing.event.ChangeListener)</CODE></A></DL></DD></DL><HR><A NAME="getValue()"><!-- --></A><H3>getValue</H3><PRE>public int <B>getValue</B>()</PRE><DL><DD>Returns the model's current value.  Note that the upper limit on the model's value is <code>maximum - extent</code>  and the lower limit is <code>minimum</code>.<DD><DL><DT><B>Returns:</B><DD>the model's value<DT><B>See Also: </B><DD><A HREF="../../javax/swing/BoundedRangeModel.html#setValue(int)"><CODE>setValue(int)</CODE></A></DL></DD></DL><HR><A NAME="setValue(int)"><!-- --></A><H3>setValue</H3><PRE>public void <B>setValue</B>(int&nbsp;newValue)</PRE><DL><DD>Sets the model's current value to <code>newValue</code> if <code>newValue</code> satisfies the model's constraints. Those constraints are: <pre> minimum <= value <= value+extent <= maximum </pre> Otherwise, if <code>newValue</code> is less than <code>minimum</code>  it's set to <code>minimum</code>, if its greater than  <code>maximum</code> then it's set to <code>maximum</code>, and  if it's greater than <code>value+extent</code> then it's set to  <code>value+extent</code>. <p> When a BoundedRange model is used with a scrollbar the value specifies the origin of the scrollbar knob (aka the "thumb" or "elevator").  The value usually represents the origin of the  visible part of the object being scrolled. <p> Notifies any listeners if the model changes.<DD><DL><DT><B>Parameters:</B><DD><CODE>newValue</CODE> - the model's new value<DT><B>See Also: </B><DD><A HREF="../../javax/swing/BoundedRangeModel.html#getValue()"><CODE>getValue()</CODE></A></DL></DD></DL><HR><A NAME="setValueIsAdjusting(boolean)"><!-- --></A><H3>setValueIsAdjusting</H3><PRE>public void <B>setValueIsAdjusting</B>(boolean&nbsp;b)</PRE><DL><DD>This attribute indicates that any upcoming changes to the value of the model should be considered a single event. This attribute will be set to true at the start of a series of changes to the value, and will be set to false when the value has finished changing.  Normally this allows a listener to only take action when the final value change in committed, instead of having to do updates for all intermediate values. <p> Sliders and scrollbars use this property when a drag is underway.<DD><DL><DT><B>Parameters:</B><DD><CODE>b</CODE> - true if the upcoming changes to the value property are part of a series</DL></DD></DL><HR><A NAME="getValueIsAdjusting()"><!-- --></A><H3>getValueIsAdjusting</H3><PRE>public boolean <B>getValueIsAdjusting</B>()</PRE><DL><DD>Returns true if the current changes to the value property are part  of a series of changes.<DD><DL><DT><B>Returns:</B><DD>the valueIsAdjustingProperty.<DT><B>See Also: </B><DD><A HREF="../../javax/swing/BoundedRangeModel.html#setValueIsAdjusting(boolean)"><CODE>setValueIsAdjusting(boolean)</CODE></A></DL></DD></DL><HR><A NAME="getExtent()"><!-- --></A><H3>getExtent</H3><PRE>public int <B>getExtent</B>()</PRE><DL><DD>Returns the model's extent, the length of the inner range that begins at the model's value.<DD><DL><DT><B>Returns:</B><DD>the value of the model's extent property<DT><B>See Also: </B><DD><A HREF="../../javax/swing/BoundedRangeModel.html#setExtent(int)"><CODE>setExtent(int)</CODE></A>, <A HREF="../../javax/swing/BoundedRangeModel.html#setValue(int)"><CODE>setValue(int)</CODE></A></DL></DD></DL><HR><A NAME="setExtent(int)"><!-- --></A><H3>setExtent</H3><PRE>public void <B>setExtent</B>(int&nbsp;newExtent)</PRE><DL><DD>Sets the model's extent.  The <I>newExtent</I> is forced to  be greater than or equal to zero and less than or equal to maximum - value.    <p> When a BoundedRange model is used with a scrollbar the extent defines the length of the scrollbar knob (aka the "thumb" or "elevator").  The extent usually represents how much of the  object being scrolled is visible. When used with a slider, the extent determines how much the value can "jump", for example when the user presses PgUp or PgDn. <p> Notifies any listeners if the model changes.<DD><DL><DT><B>Parameters:</B><DD><CODE>newExtent</CODE> - the model's new extent<DT><B>See Also: </B><DD><A HREF="../../javax/swing/BoundedRangeModel.html#getExtent()"><CODE>getExtent()</CODE></A>, <A HREF="../../javax/swing/BoundedRangeModel.html#setValue(int)"><CODE>setValue(int)</CODE></A></DL></DD></DL><HR><A NAME="setRangeProperties(int, int, int, int, boolean)"><!-- --></A><H3>setRangeProperties</H3><PRE>public void <B>setRangeProperties</B>(int&nbsp;value,                               int&nbsp;extent,                               int&nbsp;min,                               int&nbsp;max,                               boolean&nbsp;adjusting)</PRE><DL><DD>This method sets all of the model's data with a single method call. The method results in a single change event being generated. This is convenient when you need to adjust all the model data simulaneously and do not want individual change events to occur.<DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - an int giving the current value<DD><CODE>extent</CODE> - an int giving the amount by which the value can "jump"<DD><CODE>min</CODE> - an int giving the minimum value<DD><CODE>max</CODE> - an int giving the maximum value<DD><CODE>isAdjusting</CODE> - a boolean, true if a series of changes are in                    progress<DT><B>See Also: </B><DD><A HREF="../../javax/swing/BoundedRangeModel.html#setValue(int)"><CODE>setValue(int)</CODE></A>, <A HREF="../../javax/swing/BoundedRangeModel.html#setExtent(int)"><CODE>setExtent(int)</CODE></A>, <A HREF="../../javax/swing/BoundedRangeModel.html#setMinimum(int)"><CODE>setMinimum(int)</CODE></A>, <A HREF="../../javax/swing/BoundedRangeModel.html#setMaximum(int)"><CODE>setMaximum(int)</CODE></A>, <A HREF="../../javax/swing/BoundedRangeModel.html#setValueIsAdjusting(boolean)"><CODE>setValueIsAdjusting(boolean)</CODE></A></DL></DD></DL><HR><A NAME="addChangeListener(javax.swing.event.ChangeListener)"><!-- --></A><H3>addChangeListener</H3><PRE>public void <B>addChangeListener</B>(<A HREF="../../javax/swing/event/ChangeListener.html">ChangeListener</A>&nbsp;x)</PRE><DL><DD>Adds a ChangeListener to the model's listener list.<DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the ChangeListener to add<DT><B>See Also: </B><DD><A HREF="../../javax/swing/BoundedRangeModel.html#removeChangeListener(javax.swing.event.ChangeListener)"><CODE>removeChangeListener(javax.swing.event.ChangeListener)</CODE></A></DL></DD></DL><HR><A NAME="removeChangeListener(javax.swing.event.ChangeListener)"><!-- --></A><H3>removeChangeListener</H3><PRE>public void <B>removeChangeListener</B>(<A HREF="../../javax/swing/event/ChangeListener.html">ChangeListener</A>&nbsp;x)</PRE><DL><DD>Removes a ChangeListener from the model's listener list.<DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the ChangeListener to remove<DT><B>See Also: </B><DD><A HREF="../../javax/swing/BoundedRangeModel.html#addChangeListener(javax.swing.event.ChangeListener)"><CODE>addChangeListener(javax.swing.event.ChangeListener)</CODE></A></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <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/BoundedRangeModel.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><b>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Std.&nbsp;Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../javax/swing/Action.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../javax/swing/ButtonModel.html"><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>  &nbsp;&nbsp;<A HREF="BoundedRangeModel.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation  contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A.  All Rights Reserved.</font></BODY></HTML>

⌨️ 快捷键说明

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