public class BasicSkin extends Skin
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
static String |
ACTIVE |
static String |
AUTO_HIDE |
static String |
BACKGROUND |
static String |
BORDER |
static String |
BUTTON |
static String |
BUTTONS |
static String |
COUNTER |
static String |
COUNTERS |
static String |
DELAY |
static String |
DIGITS |
static String |
DISABLED |
static String |
FILL |
static String |
FOREGROUND |
static String |
FRAME |
static String |
FRAMES |
static String |
IMAGE |
static String |
LABEL |
static String |
MESSAGES |
static String |
MSG_AREA |
static String |
OVER |
static String |
PLAYER |
static String |
POS |
static String |
PREFERRED_SIZE |
static String |
PROGRESS_ANIMATION |
static String |
PROGRESS_BAR |
static String |
SETTINGS |
static String |
SHOW_PERCENT |
static String |
SLICER |
static String |
SOURCE |
static String |
STATUS_BAR |
static String |
STEP |
static String |
STYLE |
static String |
TOGGLE |
AUX, buttons, counters, currentAboutWindow, currentHelpWindow, DEFAULT_PROGRESS_WAKE_ON, ELEMENT_NAME, fileName, hasProgress, INTERNAL_SKIN_PREFIX, MAIN, MEM, msgArea, msgAreaNames, msgBox, name, NAME, NUM_MSG_AREAS, player, progress, progressActive, progressMax, progressStartTime, ps, readyToPaint, RESOURCE_FOLDER, RESOURCE_LIST_FILE, 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 |
BasicSkin()
Creates new BasicSkin
|
Modifier and Type | Method and Description |
---|---|
protected AbstractButton |
createButton(int buttonId,
Dimension d,
Point source,
Point active,
Point over,
Point disabled,
boolean toggle) |
void |
doLayout() |
void |
endProgress() |
protected BoxBase |
getBoxBase(Element e,
BoxBase defaultValue) |
void |
render(Graphics2D g2,
Rectangle clip) |
void |
setLocale(Locale l) |
void |
setProgressMax(int max) |
void |
setProgressValue(int value) |
protected void |
setProperties(Element e,
FileSystem fs) |
void |
startAnimation() |
void |
stopAnimation() |
attach, buildAboutWindow, detach, drawSlicedFrame, emptySkinStack, enableCounter, getActiveBoxes, getButton, getCounter, getCurrentSettings, getMsgBox, getProgressInputStream, getSkin, getSystemSkinList, hasMemMonitor, paintComponent, processEvent, requestFocus, resetAllCounters, setCurrentSettings, setMem, setProgressName, setSystemMessage, setWaitCursor, setWaitCursor, showAboutWindow, showHelp, startProgress
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, 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, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final String IMAGE
public static final String PREFERRED_SIZE
public static final String FRAME
public static final String PLAYER
public static final String FILL
public static final String SLICER
public static final String MESSAGES
public static final String STATUS_BAR
public static final String SETTINGS
public static final String STYLE
public static final String FOREGROUND
public static final String BACKGROUND
public static final String MSG_AREA
public static final String BORDER
public static final String BUTTONS
public static final String BUTTON
public static final String ACTIVE
public static final String OVER
public static final String DISABLED
public static final String POS
public static final String SOURCE
public static final String COUNTERS
public static final String COUNTER
public static final String LABEL
public static final String DIGITS
public static final String TOGGLE
public static final String PROGRESS_BAR
public static final String AUTO_HIDE
public static final String SHOW_PERCENT
public static final String PROGRESS_ANIMATION
public static final String FRAMES
public static final String DELAY
public static final String STEP
protected void setProperties(Element e, FileSystem fs) throws Exception
setProperties
in class Skin
Exception
protected BoxBase getBoxBase(Element e, BoxBase defaultValue) throws Exception
Exception
public void startAnimation()
startAnimation
in class Skin
public void stopAnimation()
stopAnimation
in class Skin
public void render(Graphics2D g2, Rectangle clip)
protected AbstractButton createButton(int buttonId, Dimension d, Point source, Point active, Point over, Point disabled, boolean toggle)
public void setProgressMax(int max)
setProgressMax
in interface ProgressInputStream.ProgressInputStreamListener
setProgressMax
in class Skin
public void setProgressValue(int value)
setProgressValue
in interface ProgressInputStream.ProgressInputStreamListener
setProgressValue
in class Skin
public void endProgress()
endProgress
in interface ProgressInputStream.ProgressInputStreamListener
endProgress
in class Skin
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.