Class AlchemistSwingUI
-
- All Implemented Interfaces:
-
java.awt.MenuContainer
,java.awt.image.ImageObserver
,java.io.Serializable
,javax.accessibility.Accessible
,javax.swing.RootPaneContainer
,javax.swing.TransferHandler.HasGetTransferHandler
,javax.swing.WindowConstants
@Deprecated() public final class AlchemistSwingUI extends JFrame
The main frame for the standard Alchemist GUI.
-
-
Field Summary
Fields Modifier and Type Field Description public final static byte
DEFAULT_ICON_SIZE
public int
defaultCloseOperation
public TransferHandler
transferHandler
public final static int
DEFAULT_CURSOR
public final static int
CROSSHAIR_CURSOR
public final static int
TEXT_CURSOR
public final static int
WAIT_CURSOR
public final static int
SW_RESIZE_CURSOR
public final static int
SE_RESIZE_CURSOR
public final static int
NW_RESIZE_CURSOR
public final static int
NE_RESIZE_CURSOR
public final static int
N_RESIZE_CURSOR
public final static int
S_RESIZE_CURSOR
public final static int
W_RESIZE_CURSOR
public final static int
E_RESIZE_CURSOR
public final static int
HAND_CURSOR
public final static int
MOVE_CURSOR
public final static int
NORMAL
public final static int
ICONIFIED
public final static int
MAXIMIZED_HORIZ
public final static int
MAXIMIZED_VERT
public final static int
MAXIMIZED_BOTH
public Rectangle
maximizedBounds
public String
title
public MenuBar
menuBar
public int
state
public final static int
DO_NOTHING_ON_CLOSE
public final static int
HIDE_ON_CLOSE
public final static int
DISPOSE_ON_CLOSE
public final static int
EXIT_ON_CLOSE
public String
warningString
public Dialog.ModalExclusionType
modalExclusionType
public transient InputContext
inputContext
public boolean
focusableWindowState
public volatile float
opacity
public Shape
shape
public Window.Type
type
public transient FocusTraversalPolicy
focusTraversalPolicy
public transient Container
parent
public int
x
public int
y
public int
width
public int
height
public Color
foreground
public Color
background
public volatile Font
font
public Cursor
cursor
public Locale
locale
public transient BufferStrategy
bufferStrategy
public boolean
ignoreRepaint
public DropTarget
dropTarget
public String
name
public boolean
focusTraversalKeysEnabled
public transient ComponentOrientation
componentOrientation
public final static float
TOP_ALIGNMENT
public final static float
CENTER_ALIGNMENT
public final static float
BOTTOM_ALIGNMENT
public final static float
LEFT_ALIGNMENT
public final static float
RIGHT_ALIGNMENT
public final static int
WIDTH
public final static int
HEIGHT
public final static int
PROPERTIES
public final static int
SOMEBITS
public final static int
FRAMEBITS
public final static int
ALLBITS
public final static int
ERROR
public final static int
ABORT
-
Constructor Summary
Constructors Constructor Description AlchemistSwingUI()
-
Method Summary
Modifier and Type Method Description static ImageIcon
loadScaledImage(String p)
Loads an image and scales it to the default Alchemist's icon size. static ImageIcon
loadScaledImage(String p, int size)
Loads an image and scales it to the desired size. -
Methods inherited from class javax.swing.JFrame
getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setTransferHandler, update
-
Methods inherited from class java.awt.Frame
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecorated
-
Methods inherited from class java.awt.Window
addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getFocusableWindowState, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, getWindows, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusCycleRoot, isFocusableWindow, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setFocusCycleRoot, setFocusableWindowState, setIconImages, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setType, setVisible, show, toBack, toFront
-
Methods inherited from class java.awt.Container
add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentCount, getComponentZOrder, getComponents, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate
-
Methods inherited from class java.awt.Component
action, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, contains, createImage, createVolatileImage, disable, dispatchEvent, enable, enableInputMethods, getBaseline, getBaselineResizeBehavior, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusOwner, isFocusTraversable, isFocusable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, printAll, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, requestFocus, requestFocusInWindow, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusTraversalKeysEnabled, setFocusable, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setMixingCutoutShape, setName, setPreferredSize, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Methods inherited from class java.awt.MenuContainer
getFont
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
loadScaledImage
static ImageIcon loadScaledImage(String p)
Loads an image and scales it to the default Alchemist's icon size.
- Parameters:
p
- the path where to load the image.- Returns:
the resized icon
-
loadScaledImage
static ImageIcon loadScaledImage(String p, int size)
Loads an image and scales it to the desired size.
- Parameters:
p
- the path where to load the image.size
- the size which will be used both for x and y axes- Returns:
the resized icon
-
-
-
-