Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class uk.co.ist.mwt.FramedPanel

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--uk.co.ist.mwt.FramedPanel

public class FramedPanel
extends java.awt.Panel
A convenience class for using the FrameLayoutManager; creates itself with an appropriate manager, and has accessors for its various attributes. Also calls the manager's frame-painting code when necessary.

See Also:
Serialized Form

Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
FramedPanel()
          Constructor - simply sets an appropriate layout manager
 
Method Summary
int getMarginHeight()
          Accessor for getting the margin height on the Frame
int getMarginWidth()
          Accessor for getting the margin width on the Frame
int getShadowType()
          Accessor for getting the type of shadowing the frame should use
int getTitleHorizAlignment()
          Accessor for getting the title's horizontal alignment
int getTitleHorizSpacing()
          Accessor for getting the title's horizontal spacing
int getTitleVertAlignment()
          Accessor for getting the title's vertical alignment
void paint(java.awt.Graphics g)
          Overridden paint function which tells the layout manager to draw its frame
void setMarginHeight(int height)
          Accessor for setting the margin height on the Frame
void setMarginWidth(int width)
          Accessor for setting the margin width on the Frame
void setShadowType(int type)
          Accessor for setting the type of shadowing the frame should use
void setTitle(java.awt.Component comp)
          Set the title component for the layout manager
void setTitleHorizAlignment(int a)
          Accessor for setting the title's horizontal alignment
void setTitleHorizSpacing(int space)
          Accessor for setting the title's horizontal spacing
void setTitleVertAlignment(int a)
          Accessor for setting the title's vertical alignment
 
Methods inherited from class java.awt.Panel
addNotify
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addNotify, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponentAt, getComponentAt, getComponent, getComponentCount, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, paint, preferredSize, printComponents, print, removeAll, remove, remove, removeContainerListener, removeNotify, setLayout, update, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, deliverEvent, disable, dispatchEvent, doLayout, enable, enable, enableInputMethods, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getParent, getPeer, getPreferredSize, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paint, postEvent, preferredSize, prepareImage, prepareImage, printAll, print, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, update, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Constructor Detail

FramedPanel

public FramedPanel()
Constructor - simply sets an appropriate layout manager
Method Detail

setMarginWidth

public void setMarginWidth(int width)
Accessor for setting the margin width on the Frame

getMarginWidth

public int getMarginWidth()
Accessor for getting the margin width on the Frame

setMarginHeight

public void setMarginHeight(int height)
Accessor for setting the margin height on the Frame

getMarginHeight

public int getMarginHeight()
Accessor for getting the margin height on the Frame

setShadowType

public void setShadowType(int type)
Accessor for setting the type of shadowing the frame should use

getShadowType

public int getShadowType()
Accessor for getting the type of shadowing the frame should use

setTitleHorizAlignment

public void setTitleHorizAlignment(int a)
Accessor for setting the title's horizontal alignment

getTitleHorizAlignment

public int getTitleHorizAlignment()
Accessor for getting the title's horizontal alignment

setTitleVertAlignment

public void setTitleVertAlignment(int a)
Accessor for setting the title's vertical alignment

getTitleVertAlignment

public int getTitleVertAlignment()
Accessor for getting the title's vertical alignment

setTitleHorizSpacing

public void setTitleHorizSpacing(int space)
Accessor for setting the title's horizontal spacing

getTitleHorizSpacing

public int getTitleHorizSpacing()
Accessor for getting the title's horizontal spacing

paint

public void paint(java.awt.Graphics g)
Overridden paint function which tells the layout manager to draw its frame
Overrides:
paint in class java.awt.Container

setTitle

public void setTitle(java.awt.Component comp)
Set the title component for the layout manager

Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD