|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfi.helsinki.dacopan.ui.UserInterface
public class UserInterface
This class handles the user interface part of the Main Frame so that the main frame itself can concentrate in controlling the flow of the program.
Field Summary | |
---|---|
static java.awt.Color |
DACOPAN_COLOR_ACTIVE_CAPTION_BG
|
static java.awt.Color |
DACOPAN_COLOR_ACTIVE_CAPTION_TEXT
|
static java.awt.Color |
DACOPAN_COLOR_DKHIGHLIGHT
|
static java.awt.Color |
DACOPAN_COLOR_HIGHLIGHT
|
static java.awt.Color |
DACOPAN_COLOR_INACTIVE_CAPTION_BG
|
static java.awt.Color |
DACOPAN_COLOR_INACTIVE_CAPTION_TEXT
|
static java.awt.Color |
DACOPAN_COLOR_LTHIGHLIGHT
|
static java.awt.Color |
DACOPAN_COLOR_MAIN_PANE_BG
|
static java.awt.Color |
DACOPAN_COLOR_PANE_BG
|
static java.awt.Color |
DACOPAN_COLOR_PANE_TEXT
|
static java.awt.Color |
DACOPAN_COLOR_WINDOW
|
static int |
DACOPAN_DIVIDER_SIZE
The size for the splitpane divider in pixels |
static java.awt.Font |
DACOPAN_FONT_BUTTON
The font to be used in the buttons |
static java.awt.Font |
DACOPAN_FONT_MENU
The font for the menu |
static java.awt.Font |
DACOPAN_FONT_TITLE
The title font used in all animation panels |
static int |
DEFAULT_DISP_MODE_HEIGHT
The default height of the main window |
static int |
DEFAULT_DISP_MODE_WIDTH
The default width of the main window |
static float |
DEFAULT_RATIO_MAIN_2_RIGHT
The default ratio of the main panel to the right panel |
static float |
DEFAULT_RATIO_UFO_2_NOTE
The default ratio of UFO to NotePanel |
static int |
HELP_DIALOG_HEIGHT
Height of the help window |
static int |
HELP_DIALOG_WIDTH
Width of the help window |
Constructor Summary | |
---|---|
UserInterface(MainFrame frame)
Creates the UI for the animator. |
Method Summary | |
---|---|
protected void |
changeSettings()
Creates and dispaly the dialog with the general and MSC settings |
protected void |
changeSettingsMode(int mode)
Creates and displays the settings dialog with given mode selected. |
protected void |
recreateUI()
Re-creates the user interface for example when the language has been changed |
void |
refresh()
Refreshes the UI to reflect any changes in the MainFrame that affect the visual look and feel of the software |
void |
setAnimatorModeInfo(int mode)
Sets the animator mode information in the user interface. |
void |
setControlsEnabledAnimationControl(boolean value)
Sets the enabled value for all controls related to controlling the control signal framework. |
void |
setControlsEnabledAnimatorMode(boolean value)
Sets the enabled value for the animator mode selection |
void |
setControlsEnabledFastForward(boolean value)
Sets the enabled value for fast forward controls |
void |
setControlsEnabledLayerSelection(boolean value)
Sets the enabled value for the layer selection controls |
void |
setControlsEnabledMSC(boolean value)
|
void |
setControlsEnabledPause(boolean value)
Sets the enabled value for the pause control |
void |
setControlsEnabledPlay(boolean value)
Sets the enabled value for the play control |
void |
setControlsEnabledPlayAndPause(boolean value)
Sets the enabled value for the play button, also sets the pause button to the complement of value |
void |
setControlsEnabledRewind(boolean value)
Sets the enabled value for rewind controls |
void |
setControlsEnabledSave(boolean value)
Sets the enabled value for saving controls |
void |
setControlsEnabledSaveAs(boolean value)
Sets the enabled value for saving as controls |
void |
setControlsEnabledSettings(boolean value)
Sets the enabled value for the settings button |
void |
setControlsEnabledStepBack(boolean value)
Sets the enabled value for the stepping backward |
void |
setControlsEnabledStepForward(boolean value)
Sets the enabled value for stepping forward |
void |
setControlsEnabledTSC(boolean value)
|
static void |
setDefaultButtonFont(java.awt.Component component)
This method can be used to set the default button font to the given button |
void |
setMainPanel(javax.swing.JComponent panel)
Sets the given JComponent to the main panel space in the UI. |
void |
setNotePanel(javax.swing.JComponent panel)
Sets the given JComponent to the Note Panel space in the UI. |
void |
setTimePanel(AbstractAnimationPanel panel)
Sets the given AbstractAnimationPanel to the Time Panel space in the UI. |
void |
setUfoPanel(javax.swing.JComponent ufoPanel)
Sets the given JComponent to the UFO Panel space in the UI. |
protected void |
showHelp(int mode)
Opens the HTML help in the current locale in a new window. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.awt.Font DACOPAN_FONT_TITLE
public static final java.awt.Font DACOPAN_FONT_BUTTON
public static final java.awt.Font DACOPAN_FONT_MENU
public static final int DACOPAN_DIVIDER_SIZE
public static final int DEFAULT_DISP_MODE_WIDTH
public static final int DEFAULT_DISP_MODE_HEIGHT
public static final float DEFAULT_RATIO_UFO_2_NOTE
public static final float DEFAULT_RATIO_MAIN_2_RIGHT
public static final int HELP_DIALOG_WIDTH
public static final int HELP_DIALOG_HEIGHT
public static final java.awt.Color DACOPAN_COLOR_ACTIVE_CAPTION_TEXT
public static final java.awt.Color DACOPAN_COLOR_INACTIVE_CAPTION_TEXT
public static final java.awt.Color DACOPAN_COLOR_ACTIVE_CAPTION_BG
public static final java.awt.Color DACOPAN_COLOR_INACTIVE_CAPTION_BG
public static final java.awt.Color DACOPAN_COLOR_HIGHLIGHT
public static final java.awt.Color DACOPAN_COLOR_LTHIGHLIGHT
public static final java.awt.Color DACOPAN_COLOR_DKHIGHLIGHT
public static final java.awt.Color DACOPAN_COLOR_MAIN_PANE_BG
public static final java.awt.Color DACOPAN_COLOR_PANE_BG
public static final java.awt.Color DACOPAN_COLOR_PANE_TEXT
public static final java.awt.Color DACOPAN_COLOR_WINDOW
Constructor Detail |
---|
public UserInterface(MainFrame frame)
frame
- A reference to the MainFrameMethod Detail |
---|
protected void showHelp(int mode)
protected void changeSettings()
protected void changeSettingsMode(int mode)
mode
- public void setUfoPanel(javax.swing.JComponent ufoPanel)
ufoPanel
- public void setNotePanel(javax.swing.JComponent panel)
ufoPanel
- public void setMainPanel(javax.swing.JComponent panel)
ufoPanel
- public void setTimePanel(AbstractAnimationPanel panel)
ufoPanel
- public void setAnimatorModeInfo(int mode)
mode
- The mode to which the animator is changedpublic void setControlsEnabledAnimatorMode(boolean value)
public void setControlsEnabledSettings(boolean value)
public void setControlsEnabledPlayAndPause(boolean value)
public void setControlsEnabledPlay(boolean value)
public void setControlsEnabledPause(boolean value)
public void setControlsEnabledLayerSelection(boolean value)
public void setControlsEnabledStepBack(boolean value)
public void setControlsEnabledStepForward(boolean value)
public void setControlsEnabledRewind(boolean value)
public void setControlsEnabledFastForward(boolean value)
public void setControlsEnabledSave(boolean value)
public void setControlsEnabledSaveAs(boolean value)
public void setControlsEnabledMSC(boolean value)
public void setControlsEnabledTSC(boolean value)
public void setControlsEnabledAnimationControl(boolean value)
public void refresh()
protected void recreateUI()
public static void setDefaultButtonFont(java.awt.Component component)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |