JIDE 3.5.15

com.jidesoft.transform
Class SimpleTwoDScreenTransform

java.lang.Object
  extended by com.jidesoft.transform.AbstractMutableTwoDScreenTransform
      extended by com.jidesoft.transform.SimpleTwoDScreenTransform
All Implemented Interfaces:
MutableTwoDScreenTransform, TwoDScreenTransform

public class SimpleTwoDScreenTransform
extends AbstractMutableTwoDScreenTransform

Default implementation of a TwoDScreenTransform.


Constructor Summary
SimpleTwoDScreenTransform(BoundedInterval x, BoundedInterval y, int screenSize)
           
 
Method Summary
 Dimension getScreenSize()
           
 Interval getXWorldInterval()
           
 Interval getYWorldInterval()
           
 boolean isAffine()
           
 Point2D screenToWorld(Point screen)
           
 Rectangle2D screenToWorld(Rectangle screen)
           
 void setScreenSize(Dimension screenSize)
           
 Point worldToScreen(Point2D world)
           
 Rectangle worldToScreen(Rectangle2D world)
           
 
Methods inherited from class com.jidesoft.transform.AbstractMutableTwoDScreenTransform
addSelectionListener, addWeakSelectionListener, notifyTransformChanged, removeSelectionListener, removeSelectionListeners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleTwoDScreenTransform

public SimpleTwoDScreenTransform(BoundedInterval x,
                                 BoundedInterval y,
                                 int screenSize)
Method Detail

screenToWorld

public Point2D screenToWorld(Point screen)

screenToWorld

public Rectangle2D screenToWorld(Rectangle screen)

worldToScreen

public Point worldToScreen(Point2D world)

worldToScreen

public Rectangle worldToScreen(Rectangle2D world)

getXWorldInterval

public Interval getXWorldInterval()

getYWorldInterval

public Interval getYWorldInterval()

getScreenSize

public Dimension getScreenSize()

isAffine

public boolean isAffine()

setScreenSize

public void setScreenSize(Dimension screenSize)

JIDE 3.5.15