org.marvinproject.image.transform.skew
Class Skew

java.lang.Object
  extended by marvin.plugin.MarvinAbstractImagePlugin
      extended by org.marvinproject.image.transform.skew.Skew
All Implemented Interfaces:
marvin.plugin.MarvinImagePlugin, marvin.plugin.MarvinPlugin

public class Skew
extends marvin.plugin.MarvinAbstractImagePlugin

Perform a vertical OR horizontal skew of an image.


Constructor Summary
Skew()
           
 
Method Summary
 void load()
           
 void process(marvin.image.MarvinImage a_imageIn, marvin.image.MarvinImage a_imageOut, marvin.util.MarvinAttributes a_attributesOut, marvin.image.MarvinImageMask a_mask, boolean a_previewMode)
          Handles the 'Process' button being pressed.
 void show()
          Displays the interface to the Skew plug-in.
 
Methods inherited from class marvin.plugin.MarvinAbstractImagePlugin
getAttribute, getAttributes, getImagePanel, setAttribute, setImagePanel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Skew

public Skew()
Method Detail

load

public void load()

show

public void show()
Displays the interface to the Skew plug-in. Adds a horizontal/vertical combo box so the direction can be selected. Adds a slider so the magnitude of the angle can be selected.

Parameters:
- - none.

process

public void process(marvin.image.MarvinImage a_imageIn,
                    marvin.image.MarvinImage a_imageOut,
                    marvin.util.MarvinAttributes a_attributesOut,
                    marvin.image.MarvinImageMask a_mask,
                    boolean a_previewMode)
Handles the 'Process' button being pressed. Determines the angle to skew and if the user wants a horizontal or vertical skew.

Parameters:
MarvinImage - - the image to be skewed
boolean - - if a preview is being performed