JIDE 3.5.15

com.jidesoft.transform
Class SimpleOneDScreenTransform

java.lang.Object
  extended by com.jidesoft.transform.AbstractMutableOneDScreenTransform
      extended by com.jidesoft.transform.SimpleOneDScreenTransform
All Implemented Interfaces:
MutableOneDScreenTransform, OneDScreenTransform

public class SimpleOneDScreenTransform
extends AbstractMutableOneDScreenTransform

Default implementation of a OneDScreenTransform.


Constructor Summary
SimpleOneDScreenTransform(BoundedInterval world, int screenSize)
           
SimpleOneDScreenTransform(BoundedInterval world, int screenSize, boolean invertDeviceCoordinates, boolean invertWorldCoordinates)
           
 
Method Summary
 int getScreenSize()
           
 Interval getWorldInterval()
           
 double getWorldMax()
           
 double getWorldMin()
           
 double getWorldRange()
           
 boolean isAffine()
           
 boolean isWorldCoordinatesInverted()
           
 double screenToWorld(int screen)
           
 void setScreenSize(int screenSize)
           
 int worldToScreen(double world)
           
 double worldToScreenPrecise(double world)
           
 
Methods inherited from class com.jidesoft.transform.AbstractMutableOneDScreenTransform
addScreenTransformListener, addWeakScreenTransformListener, notifyTransformChanged, removeScreenTransformListener, removeScreenTransformListeners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleOneDScreenTransform

public SimpleOneDScreenTransform(BoundedInterval world,
                                 int screenSize)

SimpleOneDScreenTransform

public SimpleOneDScreenTransform(BoundedInterval world,
                                 int screenSize,
                                 boolean invertDeviceCoordinates,
                                 boolean invertWorldCoordinates)
Method Detail

screenToWorld

public double screenToWorld(int screen)

worldToScreen

public int worldToScreen(double world)

worldToScreenPrecise

public double worldToScreenPrecise(double world)

getWorldInterval

public Interval getWorldInterval()

getScreenSize

public int getScreenSize()

isAffine

public boolean isAffine()

getWorldMin

public double getWorldMin()

getWorldMax

public double getWorldMax()

getWorldRange

public double getWorldRange()

isWorldCoordinatesInverted

public boolean isWorldCoordinatesInverted()

setScreenSize

public void setScreenSize(int screenSize)

JIDE 3.5.15