public class AppletWrapper extends Applet
Applet.AccessibleAppletPanel.AccessibleAWTPanelContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
private Color |
bgcolor |
private int |
clockBaseline |
private int |
clockWidth |
private int |
clockX |
private static String[] |
colorNames |
private static Color[] |
colors |
private Font |
font |
private int |
fontAscent |
private static String |
fontFace |
private int |
fontHeight |
private FontMetrics |
fontMetrics |
private int |
fontSize |
private static int |
fontSizeDivisor |
private boolean |
isSigned |
private MediaTracker |
mediaTracker |
private static int |
MINIMUM_ELAPSED_SECONDS |
private boolean |
needToCompleteInitialization |
private int |
preloadClassIndex |
private String[] |
preloadClassNames |
private Image |
preloadImage |
private String |
preloadImageName |
private boolean |
preloadImagePainted |
private boolean |
preloadImageReadyForDisplay |
private String |
preloadTextMessage |
private int |
preloadThreadCount |
private String |
previousClassName |
private long |
startTime |
private Color |
textColor |
WrappedApplet |
wrappedApplet |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
AppletWrapper(String preloadImageName,
int preloadThreadCount,
String[] preloadClassNames) |
| Modifier and Type | Method and Description |
|---|---|
private boolean |
completeInitialization(Graphics g,
Dimension dim) |
void |
destroy() |
String |
getAppletInfo() |
private Color |
getColorFromName(String strColor) |
private Color |
getContrastingBlackOrWhite(Color color) |
String |
getNextPreloadClassName() |
boolean |
handleEvent(Event e) |
void |
init() |
boolean |
isSigned() |
void |
paint(Graphics g) |
protected void |
repaintClock() |
void |
update(Graphics g) |
getAccessibleContext, getAppletContext, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, isValidateRoot, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stopadd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusDownCycle, validate, validateTreeaction, 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, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic WrappedApplet wrappedApplet
private String preloadImageName
private String preloadTextMessage
private String previousClassName
private int preloadThreadCount
private String[] preloadClassNames
private int preloadClassIndex
private boolean isSigned
private boolean needToCompleteInitialization
private boolean preloadImageReadyForDisplay
private boolean preloadImagePainted
private Color bgcolor
private Color textColor
private Image preloadImage
private MediaTracker mediaTracker
private long startTime
private int clockX
private int clockBaseline
private int clockWidth
private static int MINIMUM_ELAPSED_SECONDS
private static String fontFace
private static int fontSizeDivisor
private int fontSize
private Font font
private FontMetrics fontMetrics
private int fontAscent
private int fontHeight
private static final String[] colorNames
private static final Color[] colors
public boolean isSigned()
public String getAppletInfo()
getAppletInfo in class Appletpublic boolean handleEvent(Event e)
handleEvent in class Componentpublic String getNextPreloadClassName()
protected void repaintClock()