ikayaki
Class Ikayaki
java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
ikayaki.Ikayaki
- All Implemented Interfaces:
- ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants
public class Ikayaki
- extends JFrame
Starts the program. Lays out MainViewPanel, MainMenuBar and MainStatusBar in a JFrame.
- Author:
- Esko Luontola
- See Also:
- Serialized Form
Fields inherited from class java.awt.Frame |
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
Constructor Summary |
Ikayaki(Project project)
Starts the user interface of the program. |
Method Summary |
private static void |
logDirCleanup(File directory,
int maxDays)
Removes all old files from the specified directory. |
private static void |
logFileCleanup(File logFile,
long maxLength,
int maxFiles)
Removes the old entries of a log file. |
static void |
main(String[] args)
Starts the program with the provided command line parameters. |
void |
setTitle(String title)
Sets the title of the program. |
Methods inherited from class javax.swing.JFrame |
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update |
Methods inherited from class java.awt.Frame |
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setUndecorated |
Methods inherited from class java.awt.Window |
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setAlwaysOnTop, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationByPlatform, setLocationRelativeTo, show, toBack, toFront |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle |
APP_NAME
public static final String APP_NAME
- See Also:
- Constant Field Values
APP_VERSION
public static final String APP_VERSION
- See Also:
- Constant Field Values
APP_BUILD
public static final String APP_BUILD
- See Also:
- Constant Field Values
APP_HOME_PAGE
public static final String APP_HOME_PAGE
- See Also:
- Constant Field Values
FILE_TYPE
public static final String FILE_TYPE
- See Also:
- Constant Field Values
FILE_DESCRIPTION
public static final String FILE_DESCRIPTION
- See Also:
- Constant Field Values
AUTHORS
public static final String[] AUTHORS
STARTUP_DIRECTORY
public static final File STARTUP_DIRECTORY
PROGRAM_JAR_NAME
public static final String PROGRAM_JAR_NAME
- See Also:
- Constant Field Values
PROPERTIES_FILE
public static final File PROPERTIES_FILE
SEQUENCES_FILE
public static final File SEQUENCES_FILE
CALIBRATION_PROJECT_DIR
public static final File CALIBRATION_PROJECT_DIR
DEBUG_LOG_DIR
public static final File DEBUG_LOG_DIR
DEBUG_LOG_FILE
public static final File DEBUG_LOG_FILE
HELP_PAGES
public static final String HELP_PAGES
Ikayaki
public Ikayaki(Project project)
throws HeadlessException
- Starts the user interface of the program.
- Parameters:
project
- a project to be opened when the program starts, or null to open no project.
- Throws:
HeadlessException
- if GraphicsEnvironment.isHeadless() returns true.
main
public static void main(String[] args)
- Starts the program with the provided command line parameters. If the location of a project file is given as a
parameter, the program will try to load it.
- Parameters:
args
- command line parameters.
logFileCleanup
private static void logFileCleanup(File logFile,
long maxLength,
int maxFiles)
- Removes the old entries of a log file. When the maximum size for the current log file is reached, it will be
renamed to file.1, file.2 and so on.
- Parameters:
logFile
- the log file to be cleaned.maxLength
- maximum size in bytes for an individual log file.maxFiles
- maximum number of log files. When the number is reached, the oldest file will be deleted.
logDirCleanup
private static void logDirCleanup(File directory,
int maxDays)
- Removes all old files from the specified directory.
- Parameters:
directory
- the directory from which the old files will be removed.maxDays
- the maximum age for the files in days.
setTitle
public void setTitle(String title)
- Sets the title of the program. Appends the name and version of the program with the supplied parameter.
- Overrides:
setTitle
in class Frame
- Parameters:
title
- the text to be shown in the title, or null to show only the program's name and version.