|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcore.ProjectWindow
public class ProjectWindow
Instances of this class represents a project in use by the main window. Every time a image file is opened by the main window a instance of this class is created to deal with all the aspects of the image.
| Field Summary | |
|---|---|
SubImage |
eyesSubImage
The high quality eyes image area |
SubImage |
lipsSubImage
The high quality lips image area |
int |
MAX_UNDO_HISTORY
The maximum allowed history steps for doing undo |
| Constructor Summary | |
|---|---|
ProjectWindow(MainWindow parent,
java.lang.String fileName)
Creates a new instance of this class given it's parent, and the name of the file to be used by this project which if null then this class asks for a file using a FileDialog |
|
| Method Summary | |
|---|---|
org.eclipse.swt.widgets.Composite |
getParentMainContainer()
Returns the MainWindow's main container used as a parent for the tabs |
org.eclipse.swt.widgets.Shell |
getSShell()
The shell used by this project |
void |
pushClear(org.eclipse.swt.widgets.Event e)
Notifies the clear menu item with the given event |
void |
pushFullScreen(org.eclipse.swt.widgets.Event e)
Notifies the full screen menu item with the given event |
void |
pushRedo(org.eclipse.swt.widgets.Event e)
Notifies the redo menu item with the given event if the menu is enabled, otherwise nothing is done |
void |
pushUndo(org.eclipse.swt.widgets.Event e)
Notifies the undo menu item with the given event if the menu is enabled, otherwise nothing is done |
void |
redrawImageArea()
Asks the image area to redraw it's current content |
void |
registerMouseListener(java.awt.event.MouseListener mouseListener)
Adds the specified mouse listener to receive mouse motion events from the project's drawing container. |
void |
registerMouseMotionListener(java.awt.event.MouseMotionListener mouseMotionListener)
Adds the specified mouse motion listener to receive mouse motion events from the project's drawing container. |
void |
setEnabledRedo(boolean enabled)
Enables the redo menu item if the argument is true,
and disables it otherwise. |
void |
setEnabledUndo(boolean enabled)
Enables the undo menu item if the argument is true,
and disables it otherwise. |
void |
setEyesTracerEnabled(boolean enabled)
Enables the eyes tracer menu item if the argument is true,
and disables it otherwise. |
void |
setLensTracerEnabled(boolean enabled)
Enables the lens tracer menu item if the argument is true,
and disables it otherwise. |
void |
setLipsTracerEnabled(boolean enabled)
Enables the lips tracer menu item if the argument is true,
and disables it otherwise. |
void |
setShowHairEnabled(boolean enabled)
Enables the showHair menu item if the argument is true,
and disables it otherwise. |
void |
setShowHairSelected(boolean selected)
Sets the selection state of the showHair menu item. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final int MAX_UNDO_HISTORY
public SubImage eyesSubImage
public SubImage lipsSubImage
| Constructor Detail |
|---|
public ProjectWindow(MainWindow parent,
java.lang.String fileName)
parent - the main window parentfileName - the file that should be opened by this instance or null| Method Detail |
|---|
public org.eclipse.swt.widgets.Composite getParentMainContainer()
public org.eclipse.swt.widgets.Shell getSShell()
public void setEnabledUndo(boolean enabled)
true,
and disables it otherwise. A disabled menu item is typically
not selectable from the user interface and draws with an
inactive or "grayed" look.
enabled - the new enabled state
org.eclipse.swt.SWTException - public void setEnabledRedo(boolean enabled)
true,
and disables it otherwise. A disabled menu item is typically
not selectable from the user interface and draws with an
inactive or "grayed" look.
enabled - the new enabled state
org.eclipse.swt.SWTException - public void pushUndo(org.eclipse.swt.widgets.Event e)
e - the event used to notify the menu item
org.eclipse.swt.SWTException - public void pushRedo(org.eclipse.swt.widgets.Event e)
e - the event used to notify the menu item
org.eclipse.swt.SWTException - public void redrawImageArea()
public void pushFullScreen(org.eclipse.swt.widgets.Event e)
e - the event used to notify the menu item
org.eclipse.swt.SWTException - public void pushClear(org.eclipse.swt.widgets.Event e)
e - the event used to notify the menu item
org.eclipse.swt.SWTException - public void setShowHairEnabled(boolean enabled)
true,
and disables it otherwise. A disabled menu item is typically
not selectable from the user interface and draws with an
inactive or "grayed" look.
enabled - the new enabled state
org.eclipse.swt.SWTException - public void setEyesTracerEnabled(boolean enabled)
true,
and disables it otherwise. A disabled menu item is typically
not selectable from the user interface and draws with an
inactive or "grayed" look.
enabled - the new enabled state
org.eclipse.swt.SWTException - public void setLipsTracerEnabled(boolean enabled)
true,
and disables it otherwise. A disabled menu item is typically
not selectable from the user interface and draws with an
inactive or "grayed" look.
enabled - the new enabled state
org.eclipse.swt.SWTException - public void setLensTracerEnabled(boolean enabled)
true,
and disables it otherwise. A disabled menu item is typically
not selectable from the user interface and draws with an
inactive or "grayed" look.
enabled - the new enabled state
org.eclipse.swt.SWTException - public void setShowHairSelected(boolean selected)
selected - the new selection state
org.eclipse.swt.SWTException - public void registerMouseListener(java.awt.event.MouseListener mouseListener)
null,
no exception is thrown and no action is performed.
mouseListener - the mouse listenerpublic void registerMouseMotionListener(java.awt.event.MouseMotionListener mouseMotionListener)
null,
no exception is thrown and no action is performed.
mouseMotionListener - the mouse motion listener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||