Free.awt
Class FreePanel

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--Free.awt.FreePanel

public class FreePanel
extends java.awt.Panel

FreePanel

Since:
1.5
Version:
0.1 30 January 2001
Author:
Rajagopal C.V
See Also:
Serialized Form

Inner classes inherited from class java.awt.Component
java.awt.Component.AWTTreeLock
 
Field Summary
(package private)  int anchor
           
(package private)  java.awt.Color backgroundColor
           
(package private)  int bottom
           
(package private)  java.awt.Color darkerColor
           
(package private)  java.awt.GridBagLayout gbl
           
(package private)  int left
           
(package private)  java.awt.Color lighterColor
           
protected  int myHeight
           
protected  int myWidth
           
static int RAISED
           
(package private)  int right
           
protected  int style
           
protected  java.lang.String text
           
static int TEXT_OFFSET
           
protected  int thickness
           
(package private)  int top
           
 
Fields inherited from class java.awt.Container
component, containerListener, layoutMgr, ncomponents
 
Fields inherited from class java.awt.Component
actionListenerK, adjustmentListenerK, appContext, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, componentListener, componentListenerK, componentOrientation, containerListenerK, cursor, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, hasFocus, height, incRate, inputMethodListener, inputMethodListenerK, isInc, isPacked, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, newEventsOnly, ownedWindowK, parent, peer, peerFont, popups, prefSize, RIGHT_ALIGNMENT, textListenerK, TOP_ALIGNMENT, valid, visible, width, windowListenerK, x, y
 
Constructor Summary
FreePanel()
           
FreePanel(int style)
           
FreePanel(java.lang.String text)
           
 
Method Summary
 void addComponent(int row, int col, int high, int wide, int padx, int pady, int fill, float weightx, float weighty, java.awt.Component theComponent)
           
 void addNotify()
           
 void drawRaisedFrame(java.awt.Graphics g)
           
 java.awt.Insets getInsets()
           
 void getMetrics()
           
 void paint(java.awt.Graphics g)
           
 void printCaption(java.awt.Graphics g)
           
 void setAnchor(int Anchor)
           
 void setFont(java.awt.Font f)
           
 void setGridHeights(int[] rowHeights)
           
 void setGridWidths(int[] colWidths)
           
 void setInsets(int Top, int Left, int Bottom, int Right)
           
static void showSplash(int duration)
          A simple little method, adatped from O'Reilly's 'Java Swing', to show a title screen in the centre of the screen for a certain time.
 
Methods inherited from class java.awt.Panel
, constructComponentName
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyOrientation, countComponents, deliverEvent, dispatchEventImpl, dispatchEventToSelf, doLayout, eventEnabled, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents_NoClientCode, getComponents, getCursorTarget, getLayout, getMaximumSize, getMinimumSize, getMouseEventTarget, getPreferredSize, getWindow, insets, invalidate, invalidateTree, isAncestorOf, layout, lightweightPrint, list, list, locate, minimumSize, nextFocus, paintComponents, paramString, postProcessKeyEvent, postsOldMouseEvents, preferredSize, preProcessKeyEvent, print, printComponents, printHeavyweightComponents, processContainerEvent, processEvent, proxyEnableEvents, proxyRequestFocus, remove, remove, removeAll, removeContainerListener, removeNotify, setCursor, setFocusOwner, setLayout, transferFocus, update, updateCursor, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, areInputMethodsEnabled, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getIntrinsicCursor, getLocale, getLocation, getLocation, getLocationOnScreen, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getSize, getSize, getToolkit, getToolkitImpl, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isEnabledImpl, isFocusTraversable, isLightweight, isOpaque, 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, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TEXT_OFFSET

public static final int TEXT_OFFSET

style

protected int style

thickness

protected int thickness

myWidth

protected int myWidth

myHeight

protected int myHeight

text

protected java.lang.String text

gbl

java.awt.GridBagLayout gbl

RAISED

public static final int RAISED

top

int top

left

int left

bottom

int bottom

right

int right

backgroundColor

java.awt.Color backgroundColor

lighterColor

java.awt.Color lighterColor

darkerColor

java.awt.Color darkerColor

anchor

int anchor
Constructor Detail

FreePanel

public FreePanel()

FreePanel

public FreePanel(int style)

FreePanel

public FreePanel(java.lang.String text)
Method Detail

addComponent

public void addComponent(int row,
                         int col,
                         int high,
                         int wide,
                         int padx,
                         int pady,
                         int fill,
                         float weightx,
                         float weighty,
                         java.awt.Component theComponent)

setInsets

public void setInsets(int Top,
                      int Left,
                      int Bottom,
                      int Right)

setAnchor

public void setAnchor(int Anchor)

setGridWidths

public void setGridWidths(int[] colWidths)

setGridHeights

public void setGridHeights(int[] rowHeights)

addNotify

public void addNotify()
Overrides:
addNotify in class java.awt.Panel

getInsets

public java.awt.Insets getInsets()
Overrides:
getInsets in class java.awt.Container

getMetrics

public void getMetrics()

setFont

public void setFont(java.awt.Font f)
Overrides:
setFont in class java.awt.Container

paint

public void paint(java.awt.Graphics g)
Overrides:
paint in class java.awt.Container

drawRaisedFrame

public void drawRaisedFrame(java.awt.Graphics g)

printCaption

public void printCaption(java.awt.Graphics g)

showSplash

public static void showSplash(int duration)
A simple little method, adatped from O'Reilly's 'Java Swing', to show a title screen in the centre of the screen for a certain time.
Parameters:
duration - The time to show the screen for