All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dtai.gwt.DisplayGadget

java.lang.Object
   |
   +----dtai.gwt.Gadget
           |
           +----dtai.gwt.DisplayGadget

public abstract class DisplayGadget
extends Gadget
DisplayGadget


Variable Index

 o HORIZ_ALIGN_CENTER
 o HORIZ_ALIGN_LEFT
 o HORIZ_ALIGN_RIGHT
 o VERT_ALIGN_BOTTOM
 o VERT_ALIGN_MIDDLE
 o VERT_ALIGN_TOP

Constructor Index

 o DisplayGadget()

Method Index

 o contains(int, int, Gadget)
Checks whether this component "contains" the specified (x, y) location, where x and y are defined to be relative to the coordinate system of this component.
 o getDisabledBottom(Color, Color)
getDisabledBottom
 o getDisabledTop(Color, Color)
getDisabledTop
 o getHorizAlign()
gets the horizontal alignment
 o getInnerRect()
getInnerRect
 o getMinimumSize()
gets the minimum dimensions
 o getPreferredSize()
gets the preffered dimensions
 o getVertAlign()
gets the vertical alignment
 o paint(GadgetGraphics)
paints the GadgetGraphics window
 o paintDisabledForeground(GadgetGraphics, int, int, int, int)
paintDisabledForeground
 o paintForeground(GadgetGraphics, int, int, int, int)
paints a specified area of the foreground
 o resetForegroundSize(GadgetGraphics)
resets the foreground size
 o setHorizAlign(int)
sets the horizontal alignment
 o setVertAlign(int)
seta the vertical alignment
 o validate()
validate

Variables

 o HORIZ_ALIGN_LEFT
 public static final int HORIZ_ALIGN_LEFT
 o HORIZ_ALIGN_CENTER
 public static final int HORIZ_ALIGN_CENTER
 o HORIZ_ALIGN_RIGHT
 public static final int HORIZ_ALIGN_RIGHT
 o VERT_ALIGN_TOP
 public static final int VERT_ALIGN_TOP
 o VERT_ALIGN_MIDDLE
 public static final int VERT_ALIGN_MIDDLE
 o VERT_ALIGN_BOTTOM
 public static final int VERT_ALIGN_BOTTOM

Constructors

 o DisplayGadget
 public DisplayGadget()

Methods

 o getHorizAlign
 public final int getHorizAlign()
gets the horizontal alignment

Returns:
int
 o setHorizAlign
 public void setHorizAlign(int horizAlign)
sets the horizontal alignment

Parameters:
horizAlign - new value for horizAlign
 o getVertAlign
 public final int getVertAlign()
gets the vertical alignment

Returns:
int
 o setVertAlign
 public void setVertAlign(int vertAlign)
seta the vertical alignment

Parameters:
vertAlign - new value for vertAlign
 o paintForeground
 protected abstract void paintForeground(GadgetGraphics g,
                                         int x,
                                         int y,
                                         int width,
                                         int height)
paints a specified area of the foreground

Parameters:
g - the GadgetGraphics window
x - x coordinate
y - y coordinate
width - width of window
height - height of window
 o paintDisabledForeground
 protected void paintDisabledForeground(GadgetGraphics g,
                                        int x,
                                        int y,
                                        int width,
                                        int height)
paintDisabledForeground

Parameters:
g - the GadgetGraphics window
x - x coordinate
y - y coordinate
width - width of window
height - height of window
 o resetForegroundSize
 protected abstract void resetForegroundSize(GadgetGraphics g)
resets the foreground size

Parameters:
g - the GadgetGraphics window
 o getMinimumSize
 public Dimension getMinimumSize()
gets the minimum dimensions

Returns:
Dimension
Overrides:
getMinimumSize in class Gadget
 o getPreferredSize
 public Dimension getPreferredSize()
gets the preffered dimensions

Returns:
Dimension
Overrides:
getPreferredSize in class Gadget
 o validate
 protected void validate()
validate

Overrides:
validate in class Gadget
 o getInnerRect
 public Rectangle getInnerRect()
getInnerRect

Returns:
Rectangle
 o paint
 public void paint(GadgetGraphics g)
paints the GadgetGraphics window

Parameters:
g - the GadgetGraphics window
Overrides:
paint in class Gadget
 o getDisabledBottom
 protected Color getDisabledBottom(Color fg,
                                   Color bg)
getDisabledBottom

Parameters:
fg - Color
bg - Color fed to GadgetGraphics.brighter
Returns:
GadgetGraphics.brighter(bg)
 o getDisabledTop
 protected Color getDisabledTop(Color fg,
                                Color bg)
getDisabledTop

Parameters:
fg - Color
bg - Color fed to GadgetGraphics.darker
Returns:
GadgetGraphics.darker(bg)
 o contains
 public boolean contains(int x,
                         int y,
                         Gadget exclude)
Checks whether this component "contains" the specified (x, y) location, where x and y are defined to be relative to the coordinate system of this component.

Parameters:
x - the x coordinate
y - the y coordinate
exclude - the Gadget to exclude
Returns:
inside/not inside
Overrides:
contains in class Gadget

All Packages  Class Hierarchy  This Package  Previous  Next  Index