Class TaskWindow

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
org.openide.windows.TopComponent
cz.fidentis.analyst.gui.task.TaskWindow
All Implemented Interfaces:
ImageObserver, MenuContainer, Externalizable, Serializable, Accessible, org.openide.util.HelpCtx.Provider, org.openide.util.Lookup.Provider

public class TaskWindow extends org.openide.windows.TopComponent
The non-singleton window/tab for the analysis of one, two or many to many faces
See Also:
  • Constructor Details

    • TaskWindow

      public TaskWindow(FacesProxy faces, ActionListener endTaskListener)
      Constructor.
      Parameters:
      faces - faces of analytical task
      endTaskListener - action endTaskListener
  • Method Details

    • setAskWhenClosing

      public void setAskWhenClosing(boolean ask)
      Determines whether a dialogue window is opened when the window is closing.
      Parameters:
      ask - If true, then dialogue window pups up
    • canClose

      public boolean canClose()
      Overrides:
      canClose in class org.openide.windows.TopComponent
    • getPersistenceType

      public int getPersistenceType()
      Overrides:
      getPersistenceType in class org.openide.windows.TopComponent
    • hasFace

      public boolean hasFace(String name)
      Checks whether this tab contains a face with given name
      Parameters:
      name - String name of face
      Returns:
      true if face with this name is in this tab
    • getCanvas

      public Canvas getCanvas()
    • getFacesProxy

      public FacesProxy getFacesProxy()
    • setCamera

      public void setCamera(Camera camera)
      Sets camera to canvas
      Parameters:
      camera - Camera
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object