fable.imageviewer.internal
Class CustomCoordinatesDialog

java.lang.Object
  extended by org.eclipse.swt.widgets.Dialog
      extended by fable.imageviewer.internal.CustomCoordinatesDialog

public class CustomCoordinatesDialog
extends org.eclipse.swt.widgets.Dialog

Class to implement a dialog to get the parameters for a custom Coordinate.

Author:
evans

Constructor Summary
CustomCoordinatesDialog(org.eclipse.swt.widgets.Shell parent)
          Constructor that gets its parameters from the Preferences,has the default style, and is modal.
CustomCoordinatesDialog(org.eclipse.swt.widgets.Shell parent, double x0, double y0, double pixelWidth, double pixelHeight, java.lang.String xName, java.lang.String yName)
          Constructor that gives the default style and makes the dialog modal.
CustomCoordinatesDialog(org.eclipse.swt.widgets.Shell parent, double x0, double y0, double pixelWidth, double pixelHeight, java.lang.String xName, java.lang.String yName, int style)
          Constructor that allows setting the style, including modality.
 
Method Summary
 double getPixelHeight()
           
 double getPixelWidth()
           
 double getX0()
           
 java.lang.String getXName()
           
 double getY0()
           
 java.lang.String getYName()
           
 boolean open()
           
 
Methods inherited from class org.eclipse.swt.widgets.Dialog
getParent, getStyle, getText, setText
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomCoordinatesDialog

public CustomCoordinatesDialog(org.eclipse.swt.widgets.Shell parent,
                               double x0,
                               double y0,
                               double pixelWidth,
                               double pixelHeight,
                               java.lang.String xName,
                               java.lang.String yName)
Constructor that gives the default style and makes the dialog modal.

Parameters:
parent -
x0 -
y0 -
pixelWidth -
pixelHeight -
xName -
yName -

CustomCoordinatesDialog

public CustomCoordinatesDialog(org.eclipse.swt.widgets.Shell parent)
Constructor that gets its parameters from the Preferences,has the default style, and is modal.

Parameters:
parent -

CustomCoordinatesDialog

public CustomCoordinatesDialog(org.eclipse.swt.widgets.Shell parent,
                               double x0,
                               double y0,
                               double pixelWidth,
                               double pixelHeight,
                               java.lang.String xName,
                               java.lang.String yName,
                               int style)
Constructor that allows setting the style, including modality.

Parameters:
parent -
x0 -
y0 -
pixelWidth -
pixelHeight -
xName -
yName -
style -
Method Detail

open

public boolean open()

getX0

public double getX0()
Returns:
the x0

getY0

public double getY0()
Returns:
the y0

getPixelWidth

public double getPixelWidth()
Returns:
the pixelWidth

getPixelHeight

public double getPixelHeight()
Returns:
the pixelHeight

getXName

public java.lang.String getXName()
Returns:
the xName

getYName

public java.lang.String getYName()
Returns:
the yName