public abstract class Skin extends JPanel implements ProgressInputStream.ProgressInputStreamListener
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
static int |
AUX |
protected AbstractButton[] |
buttons |
protected Counter[] |
counters |
JDialog |
currentAboutWindow |
JDialog |
currentHelpWindow |
static int |
DEFAULT_PROGRESS_WAKE_ON |
static String |
ELEMENT_NAME |
String |
fileName |
protected boolean |
hasProgress |
static String |
INTERNAL_SKIN_PREFIX |
static int |
MAIN |
static int |
MEM |
protected ActiveBox[] |
msgArea |
static String[] |
msgAreaNames |
protected ActiveBox |
msgBox |
String |
name |
static String |
NAME |
static int |
NUM_MSG_AREAS |
protected Component |
player |
protected int |
progress |
protected boolean |
progressActive |
protected int |
progressMax |
protected long |
progressStartTime |
protected PlayStation |
ps |
protected boolean |
readyToPaint |
static String |
RESOURCE_FOLDER |
static String |
RESOURCE_LIST_FILE |
protected static HashSet<Skin> |
skinStack |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Modifier | Constructor and Description |
---|---|
protected |
Skin()
Creates new Skin
|
Modifier and Type | Method and Description |
---|---|
void |
attach(Component setPlayer) |
AboutWindow |
buildAboutWindow() |
void |
detach() |
protected void |
drawSlicedFrame(Graphics g,
Rectangle dest,
Rectangle source,
Image img,
int leftSlicer,
int rightSlicer,
int topSlicer,
int bottomSlicer) |
void |
emptySkinStack() |
void |
enableCounter(int counterId,
boolean bEnabled) |
void |
endProgress() |
protected Iterator<ActiveBox> |
getActiveBoxes() |
AbstractButton |
getButton(int buttonId) |
Counter |
getCounter(int counterId) |
Object[] |
getCurrentSettings() |
ActiveBox |
getMsgBox() |
InputStream |
getProgressInputStream(InputStream is,
int expectedLength,
String fName) |
static Skin |
getSkin(String skinName,
FileSystem fs,
PlayStation ps) |
static String[] |
getSystemSkinList(boolean withEmptyEntry) |
boolean |
hasMemMonitor() |
void |
paintComponent(Graphics g) |
protected void |
processEvent(AWTEvent e) |
abstract void |
render(Graphics2D g2,
Rectangle clip) |
void |
requestFocus() |
void |
resetAllCounters(boolean bEnabled) |
void |
setCurrentSettings(Object[] settings) |
void |
setMem(long newMem) |
void |
setProgressMax(int max) |
void |
setProgressName(String name) |
void |
setProgressValue(int value) |
protected abstract void |
setProperties(Element e,
FileSystem fs) |
void |
setSystemMessage(String msg1,
String msg2) |
void |
setWaitCursor() |
void |
setWaitCursor(boolean status) |
void |
showAboutWindow(AboutWindow aw) |
void |
showHelp(JComponent solution,
String msg) |
void |
startAnimation() |
void |
startProgress(String name) |
void |
stopAnimation() |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final int DEFAULT_PROGRESS_WAKE_ON
public static final String RESOURCE_FOLDER
public static final String RESOURCE_LIST_FILE
public static final int MAIN
public static final int AUX
public static final int MEM
public static final int NUM_MSG_AREAS
public static final String[] msgAreaNames
public String name
public String fileName
protected AbstractButton[] buttons
protected Counter[] counters
protected ActiveBox[] msgArea
protected Component player
protected PlayStation ps
protected ActiveBox msgBox
protected boolean readyToPaint
public JDialog currentHelpWindow
public JDialog currentAboutWindow
protected int progressMax
protected int progress
protected boolean hasProgress
protected boolean progressActive
protected long progressStartTime
public static final String ELEMENT_NAME
public static final String INTERNAL_SKIN_PREFIX
public static final String NAME
public void emptySkinStack()
public void attach(Component setPlayer)
public void detach()
public static Skin getSkin(String skinName, FileSystem fs, PlayStation ps) throws Exception
Exception
protected abstract void setProperties(Element e, FileSystem fs) throws Exception
Exception
public void paintComponent(Graphics g)
paintComponent
in class JComponent
public abstract void render(Graphics2D g2, Rectangle clip)
protected void processEvent(AWTEvent e)
processEvent
in class Container
public void setProgressMax(int max)
setProgressMax
in interface ProgressInputStream.ProgressInputStreamListener
public void setProgressValue(int value)
setProgressValue
in interface ProgressInputStream.ProgressInputStreamListener
public void setProgressName(String name)
public void startProgress(String name)
startProgress
in interface ProgressInputStream.ProgressInputStreamListener
public void endProgress()
endProgress
in interface ProgressInputStream.ProgressInputStreamListener
public InputStream getProgressInputStream(InputStream is, int expectedLength, String fName)
public ActiveBox getMsgBox()
public Counter getCounter(int counterId)
public void enableCounter(int counterId, boolean bEnabled)
public void resetAllCounters(boolean bEnabled)
public AbstractButton getButton(int buttonId)
public Object[] getCurrentSettings()
public void setCurrentSettings(Object[] settings)
protected void drawSlicedFrame(Graphics g, Rectangle dest, Rectangle source, Image img, int leftSlicer, int rightSlicer, int topSlicer, int bottomSlicer)
public boolean hasMemMonitor()
public void setMem(long newMem)
public void startAnimation()
public void stopAnimation()
public void setWaitCursor(boolean status)
public void setWaitCursor()
public void showHelp(JComponent solution, String msg)
public AboutWindow buildAboutWindow()
public void showAboutWindow(AboutWindow aw)
public void requestFocus()
requestFocus
in class JComponent
public static String[] getSystemSkinList(boolean withEmptyEntry)
Copyright © 2004-15 Francesc Busquets (fbusquets@xtec.cat) & Departament d'Educació de la Generalitat de Catalunya (info@xtec.cat)
Licensed under the terms of the GNU General Public License.