jview
Interface UserCoordinates

All Superinterfaces:
NormalizedCoordinates
All Known Implementing Classes:
JBoxedCanvas, JCameraCanvas, JDataCanvas, JExpressionCanvas, JFitsCanvas, JGuiderCanvas, JGuiderOffsets, JNight, JSkyCanvas, JSkyGrid, JTargetHistory, JTrackingFrequencies, JWeatherCanvas

public interface UserCoordinates
extends NormalizedCoordinates

An interface defining further that an object can convert user-space coordinates into normalized user coordinates and screen coordinates.


Method Summary
 CoordinateTransforming getUserTransformation()
          Return the coordinate transformation to get from user space to normalized pixel space.
 CoordinateTransforming getUserTransformation(int type)
          Return the coordinate transformation to get from user space to normalized pixel space.
 void setUserTransformation(CoordinateTransforming user)
          This method set the coordinate transformation from user space to normalized pixel space.
 void setUserTransformation(CoordinateTransforming user, int type)
          This method set the coordinate transformation from user space to normalized pixel space.
 
Methods inherited from interface jview.NormalizedCoordinates
getArea, getNormalized, getNormalizedRect, getScreen, getScreenRect, getViewport, isNormalizedOnScreen, isScreenInNormalized
 

Method Detail

setUserTransformation

void setUserTransformation(CoordinateTransforming user)
This method set the coordinate transformation from user space to normalized pixel space. To get to screen coordinates, you must use the methods provided in the super-interface.


setUserTransformation

void setUserTransformation(CoordinateTransforming user,
                           int type)
This method set the coordinate transformation from user space to normalized pixel space. To get to screen coordinates, you must use the methods provided in the super-interface.


getUserTransformation

CoordinateTransforming getUserTransformation()
Return the coordinate transformation to get from user space to normalized pixel space. To get to screen coordinates, you must use the methods provided in the super-interface. This method returns the main user transformation. It should return the same transformation as getUserTransformation(int) called with zero.


getUserTransformation

CoordinateTransforming getUserTransformation(int type)
Return the coordinate transformation to get from user space to normalized pixel space. To get to screen coordinates, you must use the methods provided in the super-interface.

Parameters:
type - Zero for main type, others for special use.