com.tensegrity.graphics
Class GraphicUtilities

java.lang.Object
  extended bycom.tensegrity.graphics.GraphicUtilities

public class GraphicUtilities
extends java.lang.Object

This class is only a utility class, which provides a set of methods needed within the graphics package.

Version:
$Id: GraphicUtilities.java,v 1.3 2004/02/11 08:45:57 MichaelKegel Exp $
Author:
MichaelKegel

Method Summary
static int devToDev(int dpiFrom, int dpiTo, double size)
          The method devToDev converts the given size, which is specified within the given measurement, into the corresponding size within another measurement.
static int devToDev(int dpiFrom, int dpiTo, int size)
          The method devToDev converts the given size, which is specified within the given measurement, into the corresponding size within another measurement.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

devToDev

public static int devToDev(int dpiFrom,
                           int dpiTo,
                           int size)
The method devToDev converts the given size, which is specified within the given measurement, into the corresponding size within another measurement.

Parameters:
dpiFrom - the measurement the size belongs to
dpiTo - the measurement to convert to
size - the size to convert
Returns:
int the size within the other measurement

devToDev

public static int devToDev(int dpiFrom,
                           int dpiTo,
                           double size)
The method devToDev converts the given size, which is specified within the given measurement, into the corresponding size within another measurement.

Parameters:
dpiFrom - the measurement the size belongs to
dpiTo - the measurement to convert to
size - the size to convert
Returns:
int the size within the other measurement


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.