Class cynosurex.awt.TabPanel
All Packages Class Hierarchy This Package Previous Next Index
Class cynosurex.awt.TabPanel
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Canvas
|
+----cynosurex.awt.TabPanel
- public class TabPanel
- extends Canvas
A panel showing only tabs. This object is used by the
TabbedPanel. It generates a event for its parent when one
of the tab is clicked.
-
border_height
- the height of the border (predefined).
-
border_width
- the width of the border (predefined).
-
margin_height
- the height of the margin is predefined.
-
margin_width
- the width of the margin is predefined.
-
TabPanel()
- Constructs and initializes a tabbed panel.
-
add(String)
- Adds a name to the list of tabs.
-
minimumSize()
- Returns the minimum size of the panel.
-
mouseDown(Event, int, int)
- Determine which tab the mouse clicked on.
-
paint(Graphics)
- Paint routine to fill in the panel with tabs.
-
preferredSize()
- Returns the preferred size of the panel.
border_height
public static int border_height
- the height of the border (predefined).
border_width
public static int border_width
- the width of the border (predefined).
margin_height
public static int margin_height
- the height of the margin is predefined.
margin_width
public static int margin_width
- the width of the margin is predefined.
TabPanel
public TabPanel()
- Constructs and initializes a tabbed panel.
add
public void add(String name)
- Adds a name to the list of tabs.
- Parameters:
- name - name to add
mouseDown
public boolean mouseDown(Event e,
int x,
int y)
- Determine which tab the mouse clicked on.
- Overrides:
- mouseDown in class Component
paint
public void paint(Graphics g)
- Paint routine to fill in the panel with tabs.
- Parameters:
- g - graphics object passed in by the Java Virtual Machine
- Overrides:
- paint in class Canvas
preferredSize
public Dimension preferredSize()
- Returns the preferred size of the panel.
- Overrides:
- preferredSize in class Component
minimumSize
public Dimension minimumSize()
- Returns the minimum size of the panel.
- Overrides:
- minimumSize in class Component
All Packages Class Hierarchy This Package Previous Next Index