Class hungry.tabs.Tab
All Packages Class Hierarchy This Package Previous Next Index
Class hungry.tabs.Tab
java.lang.Object
|
+----hungry.tabs.Tab
- public class Tab
- extends Object
-
Tab(String, String, String, Color, Color, Color, Font, int, TabApplet)
- Creates a new Tab.
-
Tab(String, String, String, TabApplet)
- Creates a new Tab
-
activate()
- Activates the tab, by opening the URL into the frame
specified when the tab was created.
-
erase(Graphics)
- Erases the tab.
-
getBounds()
- Returns the bounding box for this tab.
-
getURL()
- Returns the URL associated with this tab.
-
move(int, int)
- Moves the tab to a new position within the applet.
-
paint(Graphics)
- Paints the tab.
-
resize(int, int)
- Resizes the tab to a new width and height.
-
setSelected(boolean)
- Sets whether or not this tab is selected
Tab
public Tab(String name,
String url,
String frame,
Color background,
Color text,
Color select,
Font font,
int orientation,
TabApplet applet)
- Creates a new Tab.
- Parameters:
- name - the name to use for this tab.
- url - the url to associate with this tab.
- frame - the frame in which to open the url.
- background - the color of the tab.
- text - the normal text color.
- select - the selected (armed) text color.
- font - the font used to draw the text.
- orientation - the orientation of this tab.
- applet - the applet containing this tab.
Tab
public Tab(String name,
String url,
String frame,
TabApplet applet)
- Creates a new Tab
- Parameters:
- name - the text displayed in this tab
- url - the url to open when we're activated
- frame - the frame in which we open the url
- applet - the applet containing this tab
erase
public void erase(Graphics g)
- Erases the tab.
- Parameters:
- g - the graphics object used to erase the tab
paint
public void paint(Graphics g)
- Paints the tab.
- Parameters:
- g - the graphics object used to paint the tab.
move
public void move(int x,
int y)
- Moves the tab to a new position within the applet.
- Parameters:
- x - the new x position.
- y - the new y position.
resize
public void resize(int width,
int height)
- Resizes the tab to a new width and height.
- Parameters:
- width - the new width.
- height - the new height.
getBounds
public Rectangle getBounds()
- Returns the bounding box for this tab.
setSelected
public void setSelected(boolean flag)
- Sets whether or not this tab is selected
- Parameters:
- flag - whether or not this tab is selected.
activate
public void activate()
- Activates the tab, by opening the URL into the frame
specified when the tab was created.
getURL
public String getURL()
- Returns the URL associated with this tab.
All Packages Class Hierarchy This Package Previous Next Index