All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class tropo.awt.TRPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----tropo.awt.TRPanel

public class TRPanel
extends Panel

Variable Index

 o o

Constructor Index

 o TRPanel()

Method Index

 o disableAllComponents()
For some reason Panel.disable() does not disable the components in a Panel - this one does.
 o disableAllComponents(Panel)
Disable all components in a Panel (unlike Panel.dispose).
 o dispose()
 o enableAllComponents()
 o enableAllComponents(Panel)
Enable all components in a Panel (unlike Panel.dispose).
 o getFrame()
 o getInsets()
If we are the main panel then we give out decent insets.
 o getMainPanel()
 o paint(Graphics)
 o paintComponents(Graphics)
 o repaint()
 o repaint(int, int, int, int)
 o repaint(long)
 o repaint(long, int, int, int, int)
 o setBatched(boolean)
Should we batch updates? If you set this to true then draw() will not be called until you call setBatched(false).
 o setEnabled(boolean)
Enable or disable all components we have - for some reason this is not done by Panel or Container.
 o setMainPanel(boolean)
Are we the main panel? If so then we give out insets so that we are not touching the edges.
 o takeDownFrame()
Take down the frame we're in.
 o update(Graphics)

Variables

 o o
 protected static final PrintStream o

Constructors

 o TRPanel
 public TRPanel()

Methods

 o setBatched
 public void setBatched(boolean b)
Should we batch updates? If you set this to true then draw() will not be called until you call setBatched(false). We basically override all repaint() calls and don't call super.repaint() if batch mode is on. This is used if you're going to make a lot of changes to your component and each change results in a repaint() call to force a draw.

Parameters:
b - true if we should be batched
 o repaint
 public void repaint()
Overrides:
repaint in class Component
 o repaint
 public void repaint(long ms)
Overrides:
repaint in class Component
 o repaint
 public void repaint(int x,
                     int y,
                     int w,
                     int h)
Overrides:
repaint in class Component
 o repaint
 public void repaint(long ms,
                     int x,
                     int y,
                     int w,
                     int h)
Overrides:
repaint in class Component
 o update
 public void update(Graphics g)
Overrides:
update in class Component
 o paint
 public void paint(Graphics g)
Overrides:
paint in class Container
 o paintComponents
 public void paintComponents(Graphics g)
Overrides:
paintComponents in class Container
 o takeDownFrame
 public void takeDownFrame()
Take down the frame we're in.

 o getFrame
 public Frame getFrame()
Returns:
the Frame we're in.
See Also:
Util.getFrame
 o dispose
 public void dispose()
 o disableAllComponents
 public void disableAllComponents()
For some reason Panel.disable() does not disable the components in a Panel - this one does.

See Also:
disableAllComponents, dispose
 o enableAllComponents
 public void enableAllComponents()
 o disableAllComponents
 public static void disableAllComponents(Panel p)
Disable all components in a Panel (unlike Panel.dispose).

See Also:
dispose
 o enableAllComponents
 public static void enableAllComponents(Panel p)
Enable all components in a Panel (unlike Panel.dispose).

See Also:
dispose
 o setEnabled
 public void setEnabled(boolean e)
Enable or disable all components we have - for some reason this is not done by Panel or Container.

Overrides:
setEnabled in class Component
 o getInsets
 public Insets getInsets()
If we are the main panel then we give out decent insets.

Overrides:
getInsets in class Container
See Also:
setMainPanel
 o setMainPanel
 public void setMainPanel(boolean mp)
Are we the main panel? If so then we give out insets so that we are not touching the edges.

See Also:
getInsets
 o getMainPanel
 public boolean getMainPanel()

All Packages  Class Hierarchy  This Package  Previous  Next  Index