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
-
o
-
-
TRPanel()
-
-
disableAllComponents()
- For some reason Panel.disable() does not disable the
components in a Panel - this one does.
-
disableAllComponents(Panel)
- Disable all components in a Panel (unlike Panel.dispose).
-
dispose()
-
-
enableAllComponents()
-
-
enableAllComponents(Panel)
- Enable all components in a Panel (unlike Panel.dispose).
-
getFrame()
-
-
getInsets()
- If we are the main panel then we give out decent insets.
-
getMainPanel()
-
-
paint(Graphics)
-
-
paintComponents(Graphics)
-
-
repaint()
-
-
repaint(int, int, int, int)
-
-
repaint(long)
-
-
repaint(long, int, int, int, int)
-
-
setBatched(boolean)
- Should we batch updates? If you set this to true then
draw() will not be called until you call setBatched(false).
-
setEnabled(boolean)
- Enable or disable all components we have - for some reason
this is not done by Panel or Container.
-
setMainPanel(boolean)
- Are we the main panel? If so then we give out insets
so that we are not touching the edges.
-
takeDownFrame()
- Take down the frame we're in.
-
update(Graphics)
-
o
protected static final PrintStream o
TRPanel
public TRPanel()
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
repaint
public void repaint()
- Overrides:
- repaint in class Component
repaint
public void repaint(long ms)
- Overrides:
- repaint in class Component
repaint
public void repaint(int x,
int y,
int w,
int h)
- Overrides:
- repaint in class Component
repaint
public void repaint(long ms,
int x,
int y,
int w,
int h)
- Overrides:
- repaint in class Component
update
public void update(Graphics g)
- Overrides:
- update in class Component
paint
public void paint(Graphics g)
- Overrides:
- paint in class Container
paintComponents
public void paintComponents(Graphics g)
- Overrides:
- paintComponents in class Container
takeDownFrame
public void takeDownFrame()
- Take down the frame we're in.
getFrame
public Frame getFrame()
- Returns:
- the Frame we're in.
- See Also:
- Util.getFrame
dispose
public void dispose()
disableAllComponents
public void disableAllComponents()
- For some reason Panel.disable() does not disable the
components in a Panel - this one does.
- See Also:
- disableAllComponents, dispose
enableAllComponents
public void enableAllComponents()
disableAllComponents
public static void disableAllComponents(Panel p)
- Disable all components in a Panel (unlike Panel.dispose).
- See Also:
- dispose
enableAllComponents
public static void enableAllComponents(Panel p)
- Enable all components in a Panel (unlike Panel.dispose).
- See Also:
- dispose
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
getInsets
public Insets getInsets()
- If we are the main panel then we give out decent insets.
- Overrides:
- getInsets in class Container
- See Also:
- setMainPanel
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
getMainPanel
public boolean getMainPanel()
All Packages Class Hierarchy This Package Previous Next Index