plugins.adufour.ezplug
Class EzGUI

java.lang.Object
  extended by icy.gui.frame.IcyFrame
      extended by plugins.adufour.ezplug.EzDialog
          extended by plugins.adufour.ezplug.EzGUI
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.WindowListener, java.awt.image.ImageObserver, java.beans.PropertyChangeListener, java.util.EventListener, javax.swing.event.InternalFrameListener, EzGroup.FoldListener

public class EzGUI
extends EzDialog
implements java.awt.event.ActionListener


Nested Class Summary
 
Nested classes/interfaces inherited from class icy.gui.frame.IcyFrame
icy.gui.frame.IcyFrame.IcyFrameState
 
Field Summary
static int LOGO_HEIGHT
           
 
Fields inherited from class plugins.adufour.ezplug.EzDialog
currentParametersPath, FONT_SIZE, fullPackingTask, logoTitleColor
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
EzGUI(EzPlug ezPlug)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void addEzComponent(EzComponent component, boolean isSingle)
           
 void clickRun()
          Simulates a click on the run button (useful to execute the plug-in right after initialization)
 VarDouble getProgressBarValue()
          Returns the variable used by the interface's progress bar.
 void onClosed()
           
 void setActionPanelVisible(boolean visible)
          Sets whether the action panel (buttons and progress bar) are visible or not
 void setParametersIOVisible(boolean visible)
           
 void setProgressBarMessage(java.lang.String string)
           
 void setProgressBarValue(double value)
           
 void setProgressBarVisible(boolean visible)
           
 void setRunButtonEnabled(boolean runnable)
          Sets the state of the "Run" button on the interface
 void setRunButtonText(java.lang.String text)
          Sets the text of the run button
 void setStopButtonText(java.lang.String text)
          Sets the text of the run button
 
Methods inherited from class plugins.adufour.ezplug.EzDialog
addComponent, addEzComponent, close, createExternalFrame, createInternalFrame, foldStateChanged, hideDialog, paintTitlePane, repack, setHighlightedState, setOptimalLocation, showDialog, showDialog
 
Methods inherited from class icy.gui.frame.IcyFrame
add, add, add, addComponentListener, addFrameListener, addKeyListener, addTo, addTo, addTo, addToMainDesktopPane, attach, canBeInternalized, center, detach, dispose, externalize, findIcyFrame, frameClosed, getAllFrames, getAllFrames, getBounds, getBoundsExternal, getBoundsInternal, getContentPane, getDefaultSystemMenu, getExternalFrame, getFrame, getHeight, getHeightExternal, getHeightInternal, getIcyExternalFrame, getIcyInternalFrame, getInternalFrame, getJMenuBar, getLocation, getLocationExternal, getLocationInternal, getMaximumSize, getMaximumSizeExternal, getMaximumSizeInternal, getMinimumSize, getMinimumSizeExternal, getMinimumSizeInternal, getMousePosition, getParent, getPreferredSize, getPreferredSizeExternal, getPreferredSizeInternal, getRootPane, getSize, getSizeExternal, getSizeInternal, getSwitchStateAction, getSystemMenuCallback, getTitle, getTitleBarVisible, getToolkit, getVisibleRect, getWidth, getWidthExternal, getWidthInternal, getX, getXExternal, getXInternal, getY, getYExternal, getYInternal, hasFocus, imageUpdate, internalFrameActivated, internalFrameClosed, internalFrameClosing, internalFrameDeactivated, internalFrameDeiconified, internalFrameIconified, internalFrameOpened, internalize, isActive, isAlwaysOnTop, isClosable, isExternalized, isInternalized, isMaximized, isMaximizedExternal, isMaximizedInternal, isMinimized, isMinimizedExternal, isMinimizedInternal, isResizable, isSwitchStateItemVisible, isSyncProcess, isVisible, pack, propertyChange, remove, removeAll, removeComponentListener, removeFrameListener, removeFrom, removeFromMainDesktopPane, removeKeyListener, repaint, requestFocus, revalidate, setAlwaysOnTop, setBackground, setBorder, setBounds, setClosable, setContentPane, setDefaultCloseOperation, setFocusable, setForeground, setJMenuBar, setLayout, setLocation, setLocation, setLocationExternal, setLocationExternal, setLocationInternal, setLocationInternal, setMaximisable, setMaximized, setMaximizedExternal, setMaximizedInternal, setMaximumSize, setMaximumSizeExternal, setMaximumSizeInternal, setMinimized, setMinimizedExternal, setMinimizedInternal, setMinimumSize, setMinimumSizeExternal, setMinimumSizeInternal, setPreferredSize, setPreferredSizeExternal, setPreferredSizeInternal, setResizable, setSize, setSize, setSizeExternal, setSizeExternal, setSizeInternal, setSizeInternal, setSwitchStateItemVisible, setSyncProcess, setSystemMenuCallback, setTitle, setTitleBarVisible, setToolTipText, setVisible, stateChanged, switchState, toBack, toFront, updateSystemMenu, updateUI, validate, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGO_HEIGHT

public static final int LOGO_HEIGHT
See Also:
Constant Field Values
Constructor Detail

EzGUI

public EzGUI(EzPlug ezPlug)
Method Detail

addEzComponent

public void addEzComponent(EzComponent component,
                           boolean isSingle)
Overrides:
addEzComponent in class EzDialog

setRunButtonEnabled

public void setRunButtonEnabled(boolean runnable)
Sets the state of the "Run" button on the interface


setRunButtonText

public void setRunButtonText(java.lang.String text)
Sets the text of the run button


setStopButtonText

public void setStopButtonText(java.lang.String text)
Sets the text of the run button


setActionPanelVisible

public void setActionPanelVisible(boolean visible)
Sets whether the action panel (buttons and progress bar) are visible or not

Parameters:
visible - the new visibility state of the action panel

getProgressBarValue

public VarDouble getProgressBarValue()
Returns the variable used by the interface's progress bar. Any change to this variable will automatically affect the corresponding progress bar

Returns:
the variable controlling the progress bar

setProgressBarValue

public void setProgressBarValue(double value)
Parameters:
value - A value between 0 and 1 (any other value will set an infinitely active state)

setProgressBarVisible

public void setProgressBarVisible(boolean visible)

setParametersIOVisible

public void setParametersIOVisible(boolean visible)

clickRun

public void clickRun()
Simulates a click on the run button (useful to execute the plug-in right after initialization)


actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

onClosed

public void onClosed()
Overrides:
onClosed in class EzDialog

setProgressBarMessage

public void setProgressBarMessage(java.lang.String string)