Subversion Repositories svn.mios

Compare Revisions

Ignore whitespace Rev 648 → Rev 649

/trunk/java/doc/allclasses-frame.html
65,6 → 65,8
<BR>
<A HREF="org/midibox/sidlibr/Ensemble.html" title="class in org.midibox.sidlibr" target="classFrame">Ensemble</A>
<BR>
<A HREF="org/midibox/utils/gui/FaderUI.html" title="class in org.midibox.utils.gui" target="classFrame">FaderUI</A>
<BR>
<A HREF="org/midibox/sidlibr/FileHandler.html" title="class in org.midibox.sidlibr" target="classFrame">FileHandler</A>
<BR>
<A HREF="org/midibox/sidedit/gui/FilterGUI.html" title="class in org.midibox.sidedit.gui" target="classFrame">FilterGUI</A>
/trunk/java/doc/org/midibox/utils/gui/FaderUI.html
New file
0,0 → 1,398
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<TITLE>
FaderUI (midibox.org Java Documentation)
</TITLE>
 
 
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
 
<SCRIPT type="text/javascript">
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="FaderUI (midibox.org Java Documentation)";
}
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
 
</HEAD>
 
<BODY BGCOLOR="white" onload="windowTitle();">
<HR>
 
 
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" 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_top_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-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>
</EM>
</TD>
</TR>
 
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../org/midibox/utils/gui/DialogOwner.html" title="class in org.midibox.utils.gui"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../org/midibox/utils/gui/FontLoader.html" title="class in org.midibox.utils.gui"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?org/midibox/utils/gui/FaderUI.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="FaderUI.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;<A HREF="#nested_classes_inherited_from_class_javax.swing.plaf.basic.BasicSliderUI">NESTED</A>&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_javax.swing.plaf.basic.BasicSliderUI">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;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
 
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
org.midibox.utils.gui</FONT>
<BR>
Class FaderUI</H2>
<PRE>
java.lang.Object
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by ">javax.swing.plaf.ComponentUI
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by ">javax.swing.plaf.SliderUI
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by ">javax.swing.plaf.basic.BasicSliderUI
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.midibox.utils.gui.FaderUI</B>
</PRE>
<HR>
<DL>
<DT><PRE>public class <B>FaderUI</B><DT>extends javax.swing.plaf.basic.BasicSliderUI</DL>
</PRE>
 
<P>
<HR>
 
<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->
 
<A NAME="nested_class_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Nested Class Summary</B></FONT></TH>
</TR>
</TABLE>
&nbsp;<A NAME="nested_classes_inherited_from_class_javax.swing.plaf.basic.BasicSliderUI"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicSliderUI</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>javax.swing.plaf.basic.BasicSliderUI.ActionScroller, javax.swing.plaf.basic.BasicSliderUI.ChangeHandler, javax.swing.plaf.basic.BasicSliderUI.ComponentHandler, javax.swing.plaf.basic.BasicSliderUI.FocusHandler, javax.swing.plaf.basic.BasicSliderUI.PropertyChangeHandler, javax.swing.plaf.basic.BasicSliderUI.ScrollListener, javax.swing.plaf.basic.BasicSliderUI.TrackListener</CODE></TD>
</TR>
</TABLE>
&nbsp;
<!-- =========== FIELD SUMMARY =========== -->
 
<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Field Summary</B></FONT></TH>
</TR>
</TABLE>
&nbsp;<A NAME="fields_inherited_from_class_javax.swing.plaf.basic.BasicSliderUI"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Fields inherited from class javax.swing.plaf.basic.BasicSliderUI</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>changeListener, componentListener, contentRect, focusInsets, focusListener, focusRect, insetCache, labelRect, leftToRightCache, MAX_SCROLL, MIN_SCROLL, NEGATIVE_SCROLL, POSITIVE_SCROLL, propertyChangeListener, scrollListener, scrollTimer, slider, thumbRect, tickRect, trackBuffer, trackListener, trackRect</CODE></TD>
</TR>
</TABLE>
&nbsp;
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
 
<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../org/midibox/utils/gui/FaderUI.html#FaderUI(javax.swing.ImageIcon, javax.swing.ImageIcon, boolean)">FaderUI</A></B>(javax.swing.ImageIcon&nbsp;horizThumbIcon2,
javax.swing.ImageIcon&nbsp;vertThumbIcon2,
boolean&nbsp;drawGroove)</CODE>
 
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->
 
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.awt.Dimension</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/midibox/utils/gui/FaderUI.html#getThumbSize()">getThumbSize</A></B>()</CODE>
 
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/midibox/utils/gui/FaderUI.html#getTrackLength()">getTrackLength</A></B>()</CODE>
 
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the longer dimension of the slide bar.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/midibox/utils/gui/FaderUI.html#getTrackWidth()">getTrackWidth</A></B>()</CODE>
 
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/midibox/utils/gui/FaderUI.html#paintThumb(java.awt.Graphics)">paintThumb</A></B>(java.awt.Graphics&nbsp;g)</CODE>
 
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/midibox/utils/gui/FaderUI.html#paintTrack(java.awt.Graphics)">paintTrack</A></B>(java.awt.Graphics&nbsp;g)</CODE>
 
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_javax.swing.plaf.basic.BasicSliderUI"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class javax.swing.plaf.basic.BasicSliderUI</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>calculateContentRect, calculateFocusRect, calculateGeometry, calculateLabelRect, calculateThumbLocation, calculateThumbSize, calculateTickRect, calculateTrackBuffer, calculateTrackRect, createChangeListener, createComponentListener, createFocusListener, createPropertyChangeListener, createScrollListener, createTrackListener, createUI, drawInverted, getBaseline, getBaselineResizeBehavior, getFocusColor, getHeightOfHighValueLabel, getHeightOfLowValueLabel, getHeightOfTallestLabel, getHighestValue, getHighestValueLabel, getHighlightColor, getLowestValue, getLowestValueLabel, getMaximumSize, getMinimumHorizontalSize, getMinimumSize, getMinimumVerticalSize, getPreferredHorizontalSize, getPreferredSize, getPreferredVerticalSize, getShadowColor, getTickLength, getWidthOfHighValueLabel, getWidthOfLowValueLabel, getWidthOfWidestLabel, installDefaults, installKeyboardActions, installListeners, installUI, isDragging, labelsHaveSameBaselines, paint, paintFocus, paintHorizontalLabel, paintLabels, paintMajorTickForHorizSlider, paintMajorTickForVertSlider, paintMinorTickForHorizSlider, paintMinorTickForVertSlider, paintTicks, paintVerticalLabel, recalculateIfInsetsChanged, recalculateIfOrientationChanged, scrollByBlock, scrollByUnit, scrollDueToClickInTrack, setThumbLocation, uninstallKeyboardActions, uninstallListeners, uninstallUI, valueForXPosition, valueForYPosition, xPositionForValue, yPositionForValue, yPositionForValue</CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_javax.swing.plaf.ComponentUI"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class javax.swing.plaf.ComponentUI</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>contains, getAccessibleChild, getAccessibleChildrenCount, update</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.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>
 
<!-- ========= 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="FaderUI(javax.swing.ImageIcon, javax.swing.ImageIcon, boolean)"><!-- --></A><H3>
FaderUI</H3>
<PRE>
public <B>FaderUI</B>(javax.swing.ImageIcon&nbsp;horizThumbIcon2,
javax.swing.ImageIcon&nbsp;vertThumbIcon2,
boolean&nbsp;drawGroove)</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="paintThumb(java.awt.Graphics)"><!-- --></A><H3>
paintThumb</H3>
<PRE>
public void <B>paintThumb</B>(java.awt.Graphics&nbsp;g)</PRE>
<DL>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE>paintThumb</CODE> in class <CODE>javax.swing.plaf.basic.BasicSliderUI</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
 
<A NAME="paintTrack(java.awt.Graphics)"><!-- --></A><H3>
paintTrack</H3>
<PRE>
public void <B>paintTrack</B>(java.awt.Graphics&nbsp;g)</PRE>
<DL>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE>paintTrack</CODE> in class <CODE>javax.swing.plaf.basic.BasicSliderUI</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
 
<A NAME="getThumbSize()"><!-- --></A><H3>
getThumbSize</H3>
<PRE>
public java.awt.Dimension <B>getThumbSize</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE>getThumbSize</CODE> in class <CODE>javax.swing.plaf.basic.BasicSliderUI</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
 
<A NAME="getTrackWidth()"><!-- --></A><H3>
getTrackWidth</H3>
<PRE>
protected int <B>getTrackWidth</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
 
<A NAME="getTrackLength()"><!-- --></A><H3>
getTrackLength</H3>
<PRE>
protected int <B>getTrackLength</B>()</PRE>
<DL>
<DD>Returns the longer dimension of the slide bar. (The slide bar is only the
part that runs directly under the thumb)
<P>
<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-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>
</EM>
</TD>
</TR>
 
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../org/midibox/utils/gui/DialogOwner.html" title="class in org.midibox.utils.gui"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../org/midibox/utils/gui/FontLoader.html" title="class in org.midibox.utils.gui"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?org/midibox/utils/gui/FaderUI.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="FaderUI.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;<A HREF="#nested_classes_inherited_from_class_javax.swing.plaf.basic.BasicSliderUI">NESTED</A>&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_javax.swing.plaf.basic.BasicSliderUI">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;FIELD&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>
/trunk/java/doc/org/midibox/utils/gui/package-frame.html
25,6 → 25,8
<BR>
<A HREF="DialogOwner.html" title="class in org.midibox.utils.gui" target="classFrame">DialogOwner</A>
<BR>
<A HREF="FaderUI.html" title="class in org.midibox.utils.gui" target="classFrame">FaderUI</A>
<BR>
<A HREF="FontLoader.html" title="class in org.midibox.utils.gui" target="classFrame">FontLoader</A>
<BR>
<A HREF="GuiUtils.html" title="class in org.midibox.utils.gui" target="classFrame">GuiUtils</A>
/trunk/java/doc/org/midibox/utils/gui/package-summary.html
94,6 → 94,10
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD WIDTH="15%"><B><A HREF="../../../../org/midibox/utils/gui/FaderUI.html" title="class in org.midibox.utils.gui">FaderUI</A></B></TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD WIDTH="15%"><B><A HREF="../../../../org/midibox/utils/gui/FontLoader.html" title="class in org.midibox.utils.gui">FontLoader</A></B></TD>
<TD>&nbsp;</TD>
</TR>
/trunk/java/doc/org/midibox/utils/gui/package-tree.html
124,7 → 124,7
</UL>
<LI TYPE="circle">javax.swing.plaf.SliderUI<UL>
<LI TYPE="circle">javax.swing.plaf.basic.BasicSliderUI<UL>
<LI TYPE="circle">org.midibox.utils.gui.<A HREF="../../../../org/midibox/utils/gui/SliderWheelUI.html" title="class in org.midibox.utils.gui"><B>SliderWheelUI</B></A></UL>
<LI TYPE="circle">org.midibox.utils.gui.<A HREF="../../../../org/midibox/utils/gui/FaderUI.html" title="class in org.midibox.utils.gui"><B>FaderUI</B></A><LI TYPE="circle">org.midibox.utils.gui.<A HREF="../../../../org/midibox/utils/gui/SliderWheelUI.html" title="class in org.midibox.utils.gui"><B>SliderWheelUI</B></A></UL>
</UL>
</UL>
<LI TYPE="circle">org.midibox.utils.gui.<A HREF="../../../../org/midibox/utils/gui/DialogOwner.html" title="class in org.midibox.utils.gui"><B>DialogOwner</B></A><LI TYPE="circle">javax.swing.filechooser.FileFilter<UL>
/trunk/java/doc/org/midibox/utils/gui/FontLoader.html
52,7 → 52,7
 
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../org/midibox/utils/gui/DialogOwner.html" title="class in org.midibox.utils.gui"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../org/midibox/utils/gui/FaderUI.html" title="class in org.midibox.utils.gui"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../org/midibox/utils/gui/GuiUtils.html" title="class in org.midibox.utils.gui"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?org/midibox/utils/gui/FontLoader.html" target="_top"><B>FRAMES</B></A> &nbsp;
215,7 → 215,7
 
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../org/midibox/utils/gui/DialogOwner.html" title="class in org.midibox.utils.gui"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../org/midibox/utils/gui/FaderUI.html" title="class in org.midibox.utils.gui"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../org/midibox/utils/gui/GuiUtils.html" title="class in org.midibox.utils.gui"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?org/midibox/utils/gui/FontLoader.html" target="_top"><B>FRAMES</B></A> &nbsp;
/trunk/java/doc/org/midibox/utils/gui/DialogOwner.html
53,7 → 53,7
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../org/midibox/utils/gui/Blinker.html" title="class in org.midibox.utils.gui"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../org/midibox/utils/gui/FontLoader.html" title="class in org.midibox.utils.gui"><B>NEXT CLASS</B></A></FONT></TD>
&nbsp;<A HREF="../../../../org/midibox/utils/gui/FaderUI.html" title="class in org.midibox.utils.gui"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?org/midibox/utils/gui/DialogOwner.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="DialogOwner.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
271,7 → 271,7
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../org/midibox/utils/gui/Blinker.html" title="class in org.midibox.utils.gui"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../org/midibox/utils/gui/FontLoader.html" title="class in org.midibox.utils.gui"><B>NEXT CLASS</B></A></FONT></TD>
&nbsp;<A HREF="../../../../org/midibox/utils/gui/FaderUI.html" title="class in org.midibox.utils.gui"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?org/midibox/utils/gui/DialogOwner.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="DialogOwner.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
/trunk/java/doc/overview-tree.html
220,7 → 220,7
</UL>
<LI TYPE="circle">javax.swing.plaf.SliderUI<UL>
<LI TYPE="circle">javax.swing.plaf.basic.BasicSliderUI<UL>
<LI TYPE="circle">org.midibox.utils.gui.<A HREF="org/midibox/utils/gui/SliderWheelUI.html" title="class in org.midibox.utils.gui"><B>SliderWheelUI</B></A></UL>
<LI TYPE="circle">org.midibox.utils.gui.<A HREF="org/midibox/utils/gui/FaderUI.html" title="class in org.midibox.utils.gui"><B>FaderUI</B></A><LI TYPE="circle">org.midibox.utils.gui.<A HREF="org/midibox/utils/gui/SliderWheelUI.html" title="class in org.midibox.utils.gui"><B>SliderWheelUI</B></A></UL>
</UL>
</UL>
<LI TYPE="circle">org.midibox.mios.<A HREF="org/midibox/mios/DebugFunctionParameters.html" title="class in org.midibox.mios"><B>DebugFunctionParameters</B></A> (implements java.io.Serializable)
/trunk/java/doc/index-files/index-16.html
121,6 → 121,9
<DT><A HREF="../org/midibox/utils/gui/Knob.html#paintKnob(java.awt.Graphics)"><B>paintKnob(Graphics)</B></A> -
Method in class org.midibox.utils.gui.<A HREF="../org/midibox/utils/gui/Knob.html" title="class in org.midibox.utils.gui">Knob</A>
<DD>&nbsp;
<DT><A HREF="../org/midibox/utils/gui/FaderUI.html#paintThumb(java.awt.Graphics)"><B>paintThumb(Graphics)</B></A> -
Method in class org.midibox.utils.gui.<A HREF="../org/midibox/utils/gui/FaderUI.html" title="class in org.midibox.utils.gui">FaderUI</A>
<DD>&nbsp;
<DT><A HREF="../org/midibox/utils/gui/SliderWheelUI.html#paintThumb(java.awt.Graphics)"><B>paintThumb(Graphics)</B></A> -
Method in class org.midibox.utils.gui.<A HREF="../org/midibox/utils/gui/SliderWheelUI.html" title="class in org.midibox.utils.gui">SliderWheelUI</A>
<DD>&nbsp;
127,6 → 130,9
<DT><A HREF="../org/midibox/utils/gui/Knob.html#paintTicks(java.awt.Graphics)"><B>paintTicks(Graphics)</B></A> -
Method in class org.midibox.utils.gui.<A HREF="../org/midibox/utils/gui/Knob.html" title="class in org.midibox.utils.gui">Knob</A>
<DD>&nbsp;
<DT><A HREF="../org/midibox/utils/gui/FaderUI.html#paintTrack(java.awt.Graphics)"><B>paintTrack(Graphics)</B></A> -
Method in class org.midibox.utils.gui.<A HREF="../org/midibox/utils/gui/FaderUI.html" title="class in org.midibox.utils.gui">FaderUI</A>
<DD>&nbsp;
<DT><A HREF="../org/midibox/utils/gui/SliderWheelUI.html#paintTrack(java.awt.Graphics)"><B>paintTrack(Graphics)</B></A> -
Method in class org.midibox.utils.gui.<A HREF="../org/midibox/utils/gui/SliderWheelUI.html" title="class in org.midibox.utils.gui">SliderWheelUI</A>
<DD>&nbsp;
/trunk/java/doc/index-files/index-6.html
79,6 → 79,9
<A NAME="_F_"><!-- --></A><H2>
<B>F</B></H2>
<DL>
<DT><A HREF="../org/midibox/utils/gui/FaderUI.html" title="class in org.midibox.utils.gui"><B>FaderUI</B></A> - Class in <A HREF="../org/midibox/utils/gui/package-summary.html">org.midibox.utils.gui</A><DD>&nbsp;<DT><A HREF="../org/midibox/utils/gui/FaderUI.html#FaderUI(javax.swing.ImageIcon, javax.swing.ImageIcon, boolean)"><B>FaderUI(ImageIcon, ImageIcon, boolean)</B></A> -
Constructor for class org.midibox.utils.gui.<A HREF="../org/midibox/utils/gui/FaderUI.html" title="class in org.midibox.utils.gui">FaderUI</A>
<DD>&nbsp;
<DT><A HREF="../org/midibox/sidlibr/FileHandler.html#fc"><B>fc</B></A> -
Variable in class org.midibox.sidlibr.<A HREF="../org/midibox/sidlibr/FileHandler.html" title="class in org.midibox.sidlibr">FileHandler</A>
<DD>&nbsp;
/trunk/java/doc/index-files/index-7.html
847,6 → 847,9
<DT><A HREF="../org/midibox/midi/MidiDeviceRouting.LogicalConnection.html#getTargetDevice()"><B>getTargetDevice()</B></A> -
Method in class org.midibox.midi.<A HREF="../org/midibox/midi/MidiDeviceRouting.LogicalConnection.html" title="class in org.midibox.midi">MidiDeviceRouting.LogicalConnection</A>
<DD>&nbsp;
<DT><A HREF="../org/midibox/utils/gui/FaderUI.html#getThumbSize()"><B>getThumbSize()</B></A> -
Method in class org.midibox.utils.gui.<A HREF="../org/midibox/utils/gui/FaderUI.html" title="class in org.midibox.utils.gui">FaderUI</A>
<DD>&nbsp;
<DT><A HREF="../org/midibox/utils/gui/SliderWheelUI.html#getThumbSize()"><B>getThumbSize()</B></A> -
Method in class org.midibox.utils.gui.<A HREF="../org/midibox/utils/gui/SliderWheelUI.html" title="class in org.midibox.utils.gui">SliderWheelUI</A>
<DD>&nbsp;
865,6 → 868,12
<DT><A HREF="../org/midibox/sidedit/SIDSysexParameterControl.html#getTooltipListener()"><B>getTooltipListener()</B></A> -
Method in class org.midibox.sidedit.<A HREF="../org/midibox/sidedit/SIDSysexParameterControl.html" title="class in org.midibox.sidedit">SIDSysexParameterControl</A>
<DD>&nbsp;
<DT><A HREF="../org/midibox/utils/gui/FaderUI.html#getTrackLength()"><B>getTrackLength()</B></A> -
Method in class org.midibox.utils.gui.<A HREF="../org/midibox/utils/gui/FaderUI.html" title="class in org.midibox.utils.gui">FaderUI</A>
<DD>Returns the longer dimension of the slide bar.
<DT><A HREF="../org/midibox/utils/gui/FaderUI.html#getTrackWidth()"><B>getTrackWidth()</B></A> -
Method in class org.midibox.utils.gui.<A HREF="../org/midibox/utils/gui/FaderUI.html" title="class in org.midibox.utils.gui">FaderUI</A>
<DD>&nbsp;
<DT><A HREF="../org/midibox/midi/gui/MidiDeviceTransferable.html#getTransferData(java.awt.datatransfer.DataFlavor)"><B>getTransferData(DataFlavor)</B></A> -
Method in class org.midibox.midi.gui.<A HREF="../org/midibox/midi/gui/MidiDeviceTransferable.html" title="class in org.midibox.midi.gui">MidiDeviceTransferable</A>
<DD>&nbsp;
/trunk/java/doc/allclasses-noframe.html
65,6 → 65,8
<BR>
<A HREF="org/midibox/sidlibr/Ensemble.html" title="class in org.midibox.sidlibr">Ensemble</A>
<BR>
<A HREF="org/midibox/utils/gui/FaderUI.html" title="class in org.midibox.utils.gui">FaderUI</A>
<BR>
<A HREF="org/midibox/sidlibr/FileHandler.html" title="class in org.midibox.sidlibr">FileHandler</A>
<BR>
<A HREF="org/midibox/sidedit/gui/FilterGUI.html" title="class in org.midibox.sidedit.gui">FilterGUI</A>
/trunk/java/images/metalfader.pov
New file
0,0 → 1,112
 
#include "colors.inc"
#include "metals.inc"
 
camera
{
angle 10
location <0, 0, -50>
look_at <0,0,0>
}
 
background
{
colour Clear
}
 
light_source
{
<-20,20,-20> colour White
}
 
#declare metalfader =
union
{
difference
{
difference
{ box
{
<-2,0,2.5><2,2.8,-2.5>
}
cylinder
{
<-2.1,5,4.5><2.1,5,4.5>,4.6
}
cylinder
{
<-2.1,5,-4.5><2.1,5,-4.5>,4.6
}
pigment { LightGray }
}
union
{
box
{
<-2.5,-.01,-.1><-1.95,4,.1>
}
box
{
<-2.5,2.7,-.1><2.5,4,.1>
}
box
{
<2.5,-.01,-.1><1.95,4,.1>
}
pigment { Black }
finish { reflection 0 }
}
}
 
difference
{
box
{
<-5,0,13><5,-.5,-13>
}
box
{
<-2,1,10><2,-.2,-10>
}
box
{
<-.2,1,8.75><.2,-1,-8.75>
}
pigment { White }
}
}
object
{
metalfader
//Rotation
rotate y*0
 
// Top View
rotate -x*90 //scale .3 translate y*2.36
 
// Bottom View
// rotate x*45 scale .72 translate y*2.36
// Side View
// scale .68 translate y*-.8
// Angle View
// rotate -x*45 scale .58 translate y*.63
}
/trunk/java/images/plasticfader_vert.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/trunk/java/images/plasticfader_vert.png
New file
Property changes:
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Index: trunk/java/images/plasticfader_horiz.png
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: trunk/java/images/plasticfader_horiz.png
===================================================================
--- trunk/java/images/plasticfader_horiz.png (revision 0)
+++ trunk/java/images/plasticfader_horiz.png (revision 649)
/trunk/java/images/plasticfader_horiz.png
Property changes:
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Index: trunk/java/images/metalfader_horiz.png
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: trunk/java/images/metalfader_horiz.png
===================================================================
--- trunk/java/images/metalfader_horiz.png (revision 0)
+++ trunk/java/images/metalfader_horiz.png (revision 649)
/trunk/java/images/metalfader_horiz.png
Property changes:
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Index: trunk/java/images/plasticfader.pov
===================================================================
--- trunk/java/images/plasticfader.pov (revision 0)
+++ trunk/java/images/plasticfader.pov (revision 649)
@@ -0,0 +1,115 @@
+#include "colors.inc"
+
+camera
+{
+ angle 10
+ location <0, 0, -50>
+ look_at <0,0,0>
+}
+
+background
+{
+ colour Clear
+}
+
+light_source
+{
+ <-20,20,-20> colour Grey
+}
+
+#declare plasticfader =
+
+ union{
+ difference
+ {
+ difference
+ {
+ box
+ {
+ <-2,0,-1.1><2,3.8,1.1>
+ pigment { Gray10 }
+ finish
+ {
+ ambient .75
+ phong .9
+ brilliance 25
+ reflection .06
+ }
+ }
+
+ box
+ {
+ <-2.1,-1,-1.6><2.1,3.9,-.6>
+ rotate x*5
+ translate z*-.2
+ }
+ box
+ {
+ <-2.1,-1,1.6><2.1,3.9,.6>
+ rotate x*-5
+ translate z*.2
+ }
+
+ union
+ {
+ box
+ {
+ <-2.5,-.01,-.12><-1.9,4,.12>
+
+ }
+
+ box
+ {
+ <-2.5,3.79,-.12><2.5,4,.12>
+
+ }
+
+ box
+ {
+ <2.5,-.01,-.12><1.9,4,.12>
+
+ }
+ pigment { White }
+ finish { reflection .8 }
+
+ }
+
+
+ }
+ }
+ /* difference
+{
+ box
+ {
+ <-5,0,13><5,-.5,-13>
+
+ }
+
+ box
+ {
+ <-.2,1,7><.2,-1,-7>
+ }
+
+ pigment { White }
+} */
+ }
+
+object
+{
+ plasticfader
+
+ //Rotation
+ rotate y*90
+
+ // Top View
+ rotate -x*90// scale 1.4 //translate y*2.36
+
+ // Bottom View
+ // rotate x*90 scale .72 translate y*2.36
+
+ // Side View
+ // scale .68 translate y*-.8
+
+ // Angle View
+ // rotate -x*45 scale .58 translate y*.63
+}
Index: trunk/java/images/metalfader_vert.png
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: trunk/java/images/metalfader_vert.png
===================================================================
--- trunk/java/images/metalfader_vert.png (revision 0)
+++ trunk/java/images/metalfader_vert.png (revision 649)
/trunk/java/images/metalfader_vert.png
Property changes:
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Index: trunk/java/org/midibox/utils/gui/FaderUI.java
===================================================================
--- trunk/java/org/midibox/utils/gui/FaderUI.java (revision 0)
+++ trunk/java/org/midibox/utils/gui/FaderUI.java (revision 649)
@@ -0,0 +1,244 @@
+/*
+ * @(#)
+ *
+ * Copyright (C) 2006 Adam King (adamjking@optusnet.com.au)
+ *
+ * This application is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This application is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this application; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+package org.midibox.utils.gui;
+
+import java.awt.Color;
+import java.awt.Dimension;
+import java.awt.Graphics;
+import java.awt.Rectangle;
+
+import javax.swing.ImageIcon;
+import javax.swing.JSlider;
+import javax.swing.plaf.basic.BasicSliderUI;
+
+public class FaderUI extends BasicSliderUI {
+
+ private ImageIcon vertThumbIcon2;
+
+ private ImageIcon horizThumbIcon2;
+
+ private boolean drawGroove;
+
+ private Color darkShadow = new Color(102, 102, 102);
+
+ private Color shadow = new Color(55, 55, 55);
+
+ private Color highlight = Color.WHITE;
+
+ public FaderUI(ImageIcon horizThumbIcon2, ImageIcon vertThumbIcon2,
+ boolean drawGroove) {
+ super(null);
+ this.horizThumbIcon2 = horizThumbIcon2;
+ this.vertThumbIcon2 = vertThumbIcon2;
+ this.drawGroove = drawGroove;
+ }
+
+ public void paintThumb(Graphics g) {
+
+ Rectangle knobBounds = thumbRect;
+
+ g.translate(knobBounds.x, knobBounds.y);
+
+ if (slider.getOrientation() == JSlider.HORIZONTAL) {
+ horizThumbIcon2.paintIcon(slider, g, 0, 0);
+ } else {
+ vertThumbIcon2.paintIcon(slider, g, 0, 0);
+ }
+ g.translate(-knobBounds.x, -knobBounds.y);
+ g.dispose();
+ }
+
+ public void paintTrack(Graphics g) {
+ Color trackColor = !slider.isEnabled() ? shadow : slider
+ .getForeground();
+
+ boolean leftToRight = slider.getComponentOrientation().isLeftToRight();
+
+ g.translate(trackRect.x, trackRect.y);
+
+ int trackLeft = 0;
+ int trackTop = 0;
+ int trackRight = 0;
+ int trackBottom = 0;
+
+ // Draw the track
+ if (slider.getOrientation() == JSlider.HORIZONTAL) {
+ trackTop = (int) (getThumbSize().getHeight() / 2)
+ - (getTrackWidth() / 2);
+ trackBottom = (trackTop + getTrackWidth());
+ trackRight = trackRect.width - 1;
+ } else {
+ trackLeft = ((int) (getThumbSize().getWidth() / 2) - (getTrackWidth() / 2));
+ trackRight = (trackLeft + getTrackWidth());
+ trackBottom = trackRect.height - 1;
+ }
+
+ if (slider.isEnabled()) {
+ g.setColor(darkShadow);
+ g.drawRect(trackLeft, trackTop, (trackRight - trackLeft) - 1,
+ (trackBottom - trackTop) - 1);
+
+ g.setColor(highlight);
+ g.drawLine(trackLeft + 1, trackBottom, trackRight, trackBottom);
+ g.drawLine(trackRight, trackTop + 1, trackRight, trackBottom);
+
+ g.setColor(shadow);
+ g.drawLine(trackLeft + 1, trackTop + 1, trackRight - 2,
+ trackTop + 1);
+ g.drawLine(trackLeft + 1, trackTop + 1, trackLeft + 1,
+ trackBottom - 2);
+ } else {
+ g.setColor(shadow);
+ g.drawRect(trackLeft, trackTop, (trackRight - trackLeft) - 1,
+ (trackBottom - trackTop) - 1);
+ }
+
+ int xoff;
+ int yoff;
+
+ if (slider.getOrientation() == JSlider.HORIZONTAL) {
+ xoff = 0;
+ yoff = getTrackWidth() / 2;
+ } else {
+ xoff = getTrackWidth() / 2;
+ yoff = 0;
+ }
+
+ if (drawGroove) {
+
+ int grooveLeft = (trackLeft + xoff)
+ - (int) getThumbSize().getWidth() / 2;
+ int grooveTop = (trackTop + yoff)
+ - (int) getThumbSize().getHeight() / 2;
+ int grooveRight = (trackRight - xoff)
+ + (int) getThumbSize().getWidth() / 2;
+ ;
+ int grooveBottom = (trackBottom - yoff)
+ + (int) getThumbSize().getHeight() / 2;
+
+ if (slider.isEnabled()) {
+ g.setColor(darkShadow);
+ g.drawRect(grooveLeft, grooveTop,
+ (grooveRight - grooveLeft) - 1,
+ (grooveBottom - grooveTop) - 1);
+
+ g.setColor(highlight);
+ g.drawLine(grooveLeft + 1, grooveBottom, grooveRight,
+ grooveBottom);
+ g.drawLine(grooveRight, grooveTop + 1, grooveRight,
+ grooveBottom);
+
+ g.setColor(shadow);
+ g.drawLine(grooveLeft + 1, grooveTop + 1, grooveRight - 2,
+ grooveTop + 1);
+ g.drawLine(grooveLeft + 1, grooveTop + 1, grooveLeft + 1,
+ grooveBottom - 2);
+ } else {
+ g.setColor(shadow);
+ g.drawRect(grooveLeft, grooveTop,
+ (grooveRight - grooveLeft) - 1,
+ (grooveBottom - grooveTop) - 1);
+ }
+ }
+
+ // Draw the fill
+ int middleOfThumb = 0;
+ int fillTop = 0;
+ int fillLeft = 0;
+ int fillBottom = 0;
+ int fillRight = 0;
+
+ if (slider.getOrientation() == JSlider.HORIZONTAL) {
+ middleOfThumb = thumbRect.x + (thumbRect.width / 2);
+ middleOfThumb -= trackRect.x; // To compensate for the
+ // g.translate()
+ fillTop = !slider.isEnabled() ? trackTop : trackTop + 1;
+ fillBottom = !slider.isEnabled() ? trackBottom - 1
+ : trackBottom - 2;
+
+ if (!drawInverted()) {
+ fillLeft = !slider.isEnabled() ? trackLeft : trackLeft + 1;
+ fillRight = middleOfThumb;
+ } else {
+ fillLeft = middleOfThumb;
+ fillRight = !slider.isEnabled() ? trackRight - 1
+ : trackRight - 2;
+ }
+ } else {
+ middleOfThumb = thumbRect.y + (thumbRect.height / 2);
+ middleOfThumb -= trackRect.y; // To compensate for the
+ // g.translate()
+ fillLeft = !slider.isEnabled() ? trackLeft : trackLeft + 1;
+ fillRight = !slider.isEnabled() ? trackRight - 1 : trackRight - 2;
+
+ if (!drawInverted()) {
+ fillTop = middleOfThumb;
+ fillBottom = !slider.isEnabled() ? trackBottom - 1
+ : trackBottom - 2;
+ } else {
+ fillTop = !slider.isEnabled() ? trackTop : trackTop + 1;
+ fillBottom = middleOfThumb;
+ }
+ }
+
+ if (slider.isEnabled()) {
+ g.setColor(slider.getBackground());
+ g.drawLine(fillLeft, fillTop, fillRight, fillTop);
+ g.drawLine(fillLeft, fillTop, fillLeft, fillBottom);
+
+ g.setColor(shadow);
+ g.fillRect(fillLeft + 1, fillTop + 1, fillRight - fillLeft,
+ fillBottom - fillTop);
+ }
+
+ g.setColor(shadow);
+ g.fillRect(trackLeft + 1, trackTop + 1, (trackRight - trackLeft) - 2,
+ (trackBottom - trackTop) - 2);
+
+ g.translate(-trackRect.x, -trackRect.y);
+ }
+
+ public Dimension getThumbSize() {
+ if (slider.getOrientation() == JSlider.HORIZONTAL) {
+ return new Dimension(horizThumbIcon2.getIconWidth(),
+ horizThumbIcon2.getIconHeight());
+ } else {
+ return new Dimension(vertThumbIcon2.getIconWidth(), vertThumbIcon2
+ .getIconHeight());
+ }
+ }
+
+ protected int getTrackWidth() {
+ final double kIdealTrackWidth = 5.0;
+ return (int) kIdealTrackWidth;
+ }
+
+ /**
+ * Returns the longer dimension of the slide bar. (The slide bar is only the
+ * part that runs directly under the thumb)
+ */
+ protected int getTrackLength() {
+ if (slider.getOrientation() == JSlider.HORIZONTAL) {
+ return trackRect.width;
+ }
+ return trackRect.height;
+ }
+}
Index: trunk/java/org/midibox/sidedit/gui/controls/SIDSysexParameterControlSlider.java
===================================================================
--- trunk/java/org/midibox/sidedit/gui/controls/SIDSysexParameterControlSlider.java (revision 648)
+++ trunk/java/org/midibox/sidedit/gui/controls/SIDSysexParameterControlSlider.java (revision 649)
@@ -32,6 +32,8 @@
import javax.swing.event.ChangeListener;
import org.midibox.sidedit.SIDSysexParameterControl;
+import org.midibox.utils.gui.FaderUI;
+import org.midibox.utils.gui.ImageLoader;
public class SIDSysexParameterControlSlider extends SIDSysexParameterControlGUI
implements ChangeListener, MouseWheelListener {
@@ -46,6 +48,22 @@
boolean showValue) {
super(midiParameter, showLabel, labelLocation, valueBelow, showValue);
this.slider = slider;
+
+ // plastic looking fader, matches knobs
+ slider.setUI(new FaderUI(ImageLoader
+ .getImageIcon("metalFader_horiz.png"), ImageLoader
+ .getImageIcon("plasticFader_vert.png"), false));
+
+ // metal looking fader
+ // slider.setUI(new
+ // FaderUI(ImageLoader.getImageIcon("metalFader_horiz.png"),
+ // ImageLoader.getImageIcon("metalFader_vert.png"), false));
+
+ // metal looking fader, sunken
+ // slider.setUI(new
+ // FaderUI(ImageLoader.getImageIcon("metalFader_horiz.png"),
+ // ImageLoader.getImageIcon("metalFader_vert.png"), true));
+
slider.setMaximum(midiParameter.getMidiMaxValue()
- midiParameter.getMidiMinValue());
slider.setOpaque(false);