📄 jslider.html
字号:
<A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JSlider.html#addChangeListener(javax.swing.event.ChangeListener)">addChangeListener</A></B>(<A HREF="../../javax/swing/event/ChangeListener.html">ChangeListener</A> l)</CODE><BR> Adds a ChangeListener to the slider.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../javax/swing/event/ChangeListener.html">ChangeListener</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JSlider.html#createChangeListener()">createChangeListener</A></B>()</CODE><BR> Subclasses that want to handle model ChangeEvents differently can override this method to return their own ChangeListener implementation.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/util/Hashtable.html">Hashtable</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JSlider.html#createStandardLabels(int)">createStandardLabels</A></B>(int increment)</CODE><BR> Creates a hashtable that will draw text labels starting at the slider minimum using the increment specified.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/util/Hashtable.html">Hashtable</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JSlider.html#createStandardLabels(int, int)">createStandardLabels</A></B>(int increment, int start)</CODE><BR> Creates a hashtable that will draw text labels starting at the start point specified using the increment specified.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JSlider.html#fireStateChanged()">fireStateChanged</A></B>()</CODE><BR> Send a ChangeEvent, whose source is this Slider, to each listener.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/accessibility/AccessibleContext.html">AccessibleContext</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JSlider.html#getAccessibleContext()">getAccessibleContext</A></B>()</CODE><BR> Gets the AccessibleContext associated with this JSlider.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JSlider.html#getExtent()">getExtent</A></B>()</CODE><BR> Returns the "extent" -- the range of values "covered" by the knob.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JSlider.html#getInverted()">getInverted</A></B>()</CODE><BR> Returns true if the value-range shown for the slider is reversed,</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/util/Dictionary.html">Dictionary</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JSlider.html#getLabelTable()">getLabelTable</A></B>()</CODE><BR> Returns the dictionary of what labels to draw at which values.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JSlider.html#getMajorTickSpacing()">getMajorTickSpacing</A></B>()</CODE><BR> This method returns the major tick spacing.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JSlider.html#getMaximum()">getMaximum</A></B>()</CODE><BR> Returns the maximum value supported by the slider.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JSlider.html#getMinimum()">getMinimum</A></B>()</CODE><BR> Returns the minimum value supported by the slider.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JSlider.html#getMinorTickSpacing()">getMinorTickSpacing</A></B>()</CODE><BR> This method returns the minor tick spacing.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/swing/BoundedRangeModel.html">BoundedRangeModel</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JSlider.html#getModel()">getModel</A></B>()</CODE><BR> Returns data model that handles the sliders three fundamental properties: minimum, maximum, value.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JSlider.html#getOrientation()">getOrientation</A></B>()</CODE><BR> Return this slider's vertical or horizontal orientation.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JSlider.html#getPaintLabels()">getPaintLabels</A></B>()</CODE><BR> Tells if labels are to be painted.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JSlider.html#getPaintTicks()">getPaintTicks</A></B>()</CODE><BR> Tells if tick marks are to be painted.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JSlider.html#getPaintTrack()">getPaintTrack</A></B>()</CODE><BR> Tells if the track (area the slider slides in) is to be painted.</TD></TR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -