CESE 1.4.7

com.simulogic.dataview.cursors
Class CursorSliderAdditionalUI

java.lang.Object
  extended by com.simulogic.dataview.cursors.CursorSliderAdditionalUI

public class CursorSliderAdditionalUI
extends java.lang.Object


Nested Class Summary
 class CursorSliderAdditionalUI.ChangeHandler
           
 class CursorSliderAdditionalUI.TrackListener
           
 
Constructor Summary
CursorSliderAdditionalUI(javax.swing.plaf.basic.BasicSliderUI ui)
           
 
Method Summary
protected  void calculateThumbLocation()
           
protected  void calculateThumbSize()
           
protected  boolean drawInverted()
           
 int getThumbNum()
           
 java.awt.Rectangle[] getThumbRects()
           
 java.awt.Rectangle getTrackRect()
           
 void installUI(javax.swing.JComponent c)
           
 void setThumbLocationAt(double x, double y, int index)
           
 void uninstallUI(javax.swing.JComponent c)
           
 double valueForXPosition(double xPos)
          Returns a value give an x position.
 double valueForYPosition(double yPos)
          Returns a value give a y position.
 double xPositionForValue(double value)
           
 double yPositionForValue(double value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CursorSliderAdditionalUI

public CursorSliderAdditionalUI(javax.swing.plaf.basic.BasicSliderUI ui)
Method Detail

installUI

public void installUI(javax.swing.JComponent c)

uninstallUI

public void uninstallUI(javax.swing.JComponent c)

calculateThumbSize

protected void calculateThumbSize()

calculateThumbLocation

protected void calculateThumbLocation()

getThumbNum

public int getThumbNum()

getThumbRects

public java.awt.Rectangle[] getThumbRects()

setThumbLocationAt

public void setThumbLocationAt(double x,
                               double y,
                               int index)

getTrackRect

public java.awt.Rectangle getTrackRect()

xPositionForValue

public double xPositionForValue(double value)

yPositionForValue

public double yPositionForValue(double value)

valueForYPosition

public double valueForYPosition(double yPos)
Returns a value give a y position. If yPos is past the track at the top or the bottom it will set the value to the min or max of the slider, depending if the slider is inverted or not.


valueForXPosition

public double valueForXPosition(double xPos)
Returns a value give an x position. If xPos is past the track at the left or the right it will set the value to the min or max of the slider, depending if the slider is inverted or not.


drawInverted

protected boolean drawInverted()

CESE 1.4.7

Copyright (c) 1999 - 2007 Cell Electrophysiology Simulation Environment (CESE). All rights reserved.