|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container java.awt.Panel visad.browser.Widget
public abstract class Widget
Abstract superclass for all browser widgets.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.awt.Panel |
---|
Panel.AccessibleAWTPanel |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected static boolean |
DEBUG
Debugging flag. |
protected static String |
FALSE
Coded string value for false. |
protected static Color |
PALE_GRAY
|
protected static String |
TRUE
Coded string value for true. |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
Widget()
Performs GUI setup common to all widgets. |
Method Summary | |
---|---|
protected void |
addComponent(Component c,
GridBagLayout layout,
int x,
int y,
int w,
int h,
double wx,
double wy)
Adds a component to the applet with the specified constraints. |
void |
addWidgetListener(WidgetListener l)
Adds a widget listener. |
static boolean |
containedIn(int px,
int py,
int x,
int y,
int w,
int h)
Returns true if (px, py) is inside (x, y, w, h) |
abstract String |
getSaveString()
Gets a string representing this widget's current state. |
void |
notifyListeners(WidgetEvent e)
Notifies all widget listeners of the given widget event. |
void |
removeWidgetListener(WidgetListener l)
Removes a widget listener. |
abstract void |
setSaveString(String save)
Reconstructs this widget's state using the specified save string. |
protected void |
testWidget()
Pops up a frame to test this widget. |
Methods inherited from class java.awt.Panel |
---|
addNotify, getAccessibleContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final boolean DEBUG
protected static final String TRUE
protected static final String FALSE
protected static final Color PALE_GRAY
Constructor Detail |
---|
public Widget()
Method Detail |
---|
public static boolean containedIn(int px, int py, int x, int y, int w, int h)
protected void addComponent(Component c, GridBagLayout layout, int x, int y, int w, int h, double wx, double wy)
protected void testWidget()
public void addWidgetListener(WidgetListener l)
public void removeWidgetListener(WidgetListener l)
public void notifyListeners(WidgetEvent e)
public abstract String getSaveString()
public abstract void setSaveString(String save)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |