TPTP 4.5.0 Platform Project
Public API Specification

org.eclipse.hyades.ui.widgets.zoomslider
Class ZoomSliderUtilities

java.lang.Object
  extended by org.eclipse.hyades.ui.widgets.zoomslider.ZoomSliderUtilities

public class ZoomSliderUtilities
extends java.lang.Object

A general utilities class for zoom slider functionality


Constructor Summary
ZoomSliderUtilities()
           
 
Method Summary
static int calculateOOM(double number)
          Calculate the order of magnitude of a double
static java.lang.String double2String(double n)
          Convert a double value to a string representation
static double round(double roundee, double rounder)
          Round to the nearest multiple of rounder
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZoomSliderUtilities

public ZoomSliderUtilities()
Method Detail

calculateOOM

public static int calculateOOM(double number)
Calculate the order of magnitude of a double

Parameters:
number - the double to calculate the magnitude of
Returns:
the order of magnitude as an int

round

public static double round(double roundee,
                           double rounder)
Round to the nearest multiple of rounder

Parameters:
roundee -
rounder -
Returns:
the rounded value

double2String

public static java.lang.String double2String(double n)
Convert a double value to a string representation

Parameters:
n - the double value
Returns:
a string representation of the double value

TPTP 4.5.0 Platform Project
Public API Specification