Class JDialogTrim

All Implemented Interfaces:
DialogDefaultsInterface, ActionListener, FocusListener, ItemListener, WindowListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ChangeListener, RootPaneContainer, WindowConstants

public class JDialogTrim extends JDialogBase implements ActionListener, ChangeListener, WindowListener
Simple dialog to change trim parameters.
Version:
2.0 Jul 3, 2012
Author:
Matthew J. McAuliffe, Justin Senseney
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Use serialVersionUID for interoperability.
      See Also:
    • voiCurrent

      private JLabel voiCurrent
      Labels for values of the voi trim points property
    • voiMaximum

      private JLabel voiMaximum
      Labels for values of the voi trim points property
    • voiMinimum

      private JLabel voiMinimum
      Labels for values of the voi trim points property
    • trimCheckbox

      private JCheckBox trimCheckbox
      Checkbox for whether adjacent points are trimmed
    • voiTrimSlider

      private JSlider voiTrimSlider
      Sliders for setting the mask and voi trim parameters
    • maskTrimSlider

      private JSlider maskTrimSlider
      Sliders for setting the mask and voi trim parameters
    • activeImage

      private ModelImage activeImage
      The currently selected image
    • maskMaximum

      private JLabel maskMaximum
      Labels for values of the mask trim points property
    • maskCurrent

      private JLabel maskCurrent
      Labels for values of the mask trim points property
    • maskMinimum

      private JLabel maskMinimum
      Labels for values of the mask trim points property
  • Constructor Details

    • JDialogTrim

      public JDialogTrim(Frame theParentFrame, ModelImage active)
      Creates new trim parameter dialog with slider.
      Parameters:
      theParentFrame - Parent frame
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Calls various methods depending on the action.
      Specified by:
      actionPerformed in interface ActionListener
      Overrides:
      actionPerformed in class JDialogBase
      Parameters:
      event - Event that triggered function
    • stateChanged

      public void stateChanged(ChangeEvent e)
      Sets values based on knob along slider.
      Specified by:
      stateChanged in interface ChangeListener
      Parameters:
      e - Event that triggered this function
    • init

      private void init()
      Makes slider to set opacity of VOI. Opaque = 1, Transparency = 0.