public final class GRIP
extends javax.swing.JFrame
implements java.awt.datatransfer.ClipboardOwner
This is the main application class of GRIP (GR's Image Processor), with the entry point. It displays a small window with a menu bar, the code for which is in this class. The menu bar has two menus: one for opening images, listing and selecting them, the other for applying batch processes to multiple selected image files. This window is the parent for all others in the application, so closing it closes all other windows (if the user confirms the closing operation).
This is a singleton class so its constructor is private and a reference to the one object is obtained by getInstance ().
GRIP is partly a general purpose image processor and measurer but it also has some specific purposes. It is aimed more at technical and scientific applications of digital imaging rather than graphic arts. It concentrates on things which Adobe Photoshop cannot do, or does only awkwardly:
GRIP can handle 8-, 16-, 32- or 64-bit images, the latter being important for getting the maximum detail out of astrophotographs. In practice most digital SLRs cameras collect 12 or 14 bits per channel in RAW mode. GRIP can read some RAW format images directly, by using the jrawio plug-in. GRIP can load and save any image formats for which the relevant plug-in for the javax.imageio package is available. As supplied with GRIP at present that means TIFF, JPEG, PNG, GIF (reading GIF but not saving), BMP and most RAW formats. GRIP can also load and save images in the standard format for astrophotography, FITS. Files in the FITS format can have up to 64 bits per colour channel.
javax.swing.JFrame.AccessibleJFrame
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
Modifier and Type | Field and Description |
---|---|
static java.awt.Cursor |
GRIP_DEFAULT_CURSOR |
static java.awt.Cursor |
GRIP_HAND_CURSOR |
static java.awt.Cursor |
GRIP_WAIT_CURSOR |
static boolean |
INCLUDE_EXPERIMENTS |
protected static java.lang.String |
OK_STATUS |
static java.lang.String |
VERSION |
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
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
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Modifier and Type | Method and Description |
---|---|
static void |
about()
Display the "about" message for the application.
|
protected static javax.swing.ImageIcon |
createImageIcon(java.lang.String path)
Returns a javax.swing.ImageIcon, or null if the path was invalid.
|
protected void |
exit() |
java.util.List<StarChartFrame> |
getAllStarChartFrames()
Find all ImFrames that contain star charts.
|
static javax.swing.ImageIcon |
getIcon() |
static java.util.List<ImFrame> |
getImFramesList()
Get a list of all the ImFrames which are currently on display.
|
static GRIP |
getInstance()
Get a reference to the application object itself (singleton).
|
protected static int |
getNNewImages()
Get the number of images which have been created as new (empty) images
rather than by loading from disc.
|
static ImTable |
getTable()
Get the window displaying a list of all currently displayed ImFrames.
|
protected static void |
incNNewImages() |
void |
lostOwnership(java.awt.datatransfer.Clipboard clipboard,
java.awt.datatransfer.Transferable contents)
Implementing ClipboardOwner but does nothing.
|
static void |
main(java.lang.String... args)
Entry point for the application
|
void |
openAAVSO_Chart()
Open saved HTML reference sequence from AAVSO as a StarChart.
|
void |
openBlobs()
Enable the user to reopen serialised blob data and the image they
came from.
|
void |
openChart() |
void |
openFiles()
Ask the user to select image file(s) and open it/them in ImFrame(s).
|
protected static void |
setTable(ImTable aTable) |
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecorated
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFront
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, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
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, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, 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, 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, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final java.lang.String VERSION
public static final boolean INCLUDE_EXPERIMENTS
public static final java.awt.Cursor GRIP_DEFAULT_CURSOR
public static final java.awt.Cursor GRIP_HAND_CURSOR
public static final java.awt.Cursor GRIP_WAIT_CURSOR
protected static final java.lang.String OK_STATUS
public static void main(java.lang.String... args) throws java.lang.Exception
java.lang.Exception
public static GRIP getInstance()
protected void exit()
public static void about()
protected static int getNNewImages()
protected static void incNNewImages()
public static java.util.List<ImFrame> getImFramesList()
public java.util.List<StarChartFrame> getAllStarChartFrames()
public static ImTable getTable()
protected static void setTable(ImTable aTable)
public static javax.swing.ImageIcon getIcon()
protected static javax.swing.ImageIcon createImageIcon(java.lang.String path)
public void openFiles()
public void openBlobs()
public void openChart()
public void openAAVSO_Chart()
public void lostOwnership(java.awt.datatransfer.Clipboard clipboard, java.awt.datatransfer.Transferable contents)
lostOwnership
in interface java.awt.datatransfer.ClipboardOwner