ini.trakem2.display
Class ManualAlignMode

java.lang.Object
  extended by ini.trakem2.display.ManualAlignMode
All Implemented Interfaces:
Mode

public class ManualAlignMode
extends java.lang.Object
implements Mode


Nested Class Summary
 class ManualAlignMode.Landmarks
           
 
Constructor Summary
ManualAlignMode(Display display)
           
 
Method Summary
 boolean apply()
           
 boolean cancel()
           
 boolean canChangeLayer()
           
 boolean canPan()
           
 boolean canZoom()
           
 boolean exportLandmarks()
          Export landmarks into XML file, in patch coordinates.
 GraphicsSource getGraphicsSource()
           
 java.awt.Rectangle getRepaintBounds()
           
 boolean importLandmarks()
          Import landmarks from XML file.
 boolean isDragging()
           
 void magnificationUpdated(java.awt.Rectangle srcRect, double magnification)
           
 void mouseDragged(java.awt.event.MouseEvent me, int x_p, int y_p, int x_d, int y_d, int x_d_old, int y_d_old)
           
 void mousePressed(java.awt.event.MouseEvent me, int x_p, int y_p, double magnification)
           
 void mouseReleased(java.awt.event.MouseEvent me, int x_p, int y_p, int x_d, int y_d, int x_r, int y_r)
           
 void redoOneStep()
           
 void srcRectUpdated(java.awt.Rectangle srcRect, double magnification)
           
 void undoOneStep()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManualAlignMode

public ManualAlignMode(Display display)
Method Detail

getGraphicsSource

public GraphicsSource getGraphicsSource()
Specified by:
getGraphicsSource in interface Mode

canChangeLayer

public boolean canChangeLayer()
Specified by:
canChangeLayer in interface Mode

canZoom

public boolean canZoom()
Specified by:
canZoom in interface Mode

canPan

public boolean canPan()
Specified by:
canPan in interface Mode

isDragging

public boolean isDragging()
Specified by:
isDragging in interface Mode

mousePressed

public void mousePressed(java.awt.event.MouseEvent me,
                         int x_p,
                         int y_p,
                         double magnification)
Specified by:
mousePressed in interface Mode

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent me,
                         int x_p,
                         int y_p,
                         int x_d,
                         int y_d,
                         int x_d_old,
                         int y_d_old)
Specified by:
mouseDragged in interface Mode

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent me,
                          int x_p,
                          int y_p,
                          int x_d,
                          int y_d,
                          int x_r,
                          int y_r)
Specified by:
mouseReleased in interface Mode

undoOneStep

public void undoOneStep()
Specified by:
undoOneStep in interface Mode

redoOneStep

public void redoOneStep()
Specified by:
redoOneStep in interface Mode

apply

public boolean apply()
Specified by:
apply in interface Mode

cancel

public boolean cancel()
Specified by:
cancel in interface Mode

getRepaintBounds

public java.awt.Rectangle getRepaintBounds()
Specified by:
getRepaintBounds in interface Mode

srcRectUpdated

public void srcRectUpdated(java.awt.Rectangle srcRect,
                           double magnification)
Specified by:
srcRectUpdated in interface Mode

magnificationUpdated

public void magnificationUpdated(java.awt.Rectangle srcRect,
                                 double magnification)
Specified by:
magnificationUpdated in interface Mode

exportLandmarks

public boolean exportLandmarks()
Export landmarks into XML file, in patch coordinates.


importLandmarks

public boolean importLandmarks()
Import landmarks from XML file.