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
-
HORIZ_ALIGN_CENTER
-
-
HORIZ_ALIGN_LEFT
-
-
HORIZ_ALIGN_RIGHT
-
-
VERT_ALIGN_BOTTOM
-
-
VERT_ALIGN_MIDDLE
-
-
VERT_ALIGN_TOP
-
-
DisplayGadget()
-
-
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.
-
getDisabledBottom(Color, Color)
- getDisabledBottom
-
getDisabledTop(Color, Color)
- getDisabledTop
-
getHorizAlign()
- gets the horizontal alignment
-
getInnerRect()
- getInnerRect
-
getMinimumSize()
- gets the minimum dimensions
-
getPreferredSize()
- gets the preffered dimensions
-
getVertAlign()
- gets the vertical alignment
-
paint(GadgetGraphics)
- paints the GadgetGraphics window
-
paintDisabledForeground(GadgetGraphics, int, int, int, int)
- paintDisabledForeground
-
paintForeground(GadgetGraphics, int, int, int, int)
- paints a specified area of the foreground
-
resetForegroundSize(GadgetGraphics)
- resets the foreground size
-
setHorizAlign(int)
- sets the horizontal alignment
-
setVertAlign(int)
- seta the vertical alignment
-
validate()
- validate
HORIZ_ALIGN_LEFT
public static final int HORIZ_ALIGN_LEFT
HORIZ_ALIGN_CENTER
public static final int HORIZ_ALIGN_CENTER
HORIZ_ALIGN_RIGHT
public static final int HORIZ_ALIGN_RIGHT
VERT_ALIGN_TOP
public static final int VERT_ALIGN_TOP
VERT_ALIGN_MIDDLE
public static final int VERT_ALIGN_MIDDLE
VERT_ALIGN_BOTTOM
public static final int VERT_ALIGN_BOTTOM
DisplayGadget
public DisplayGadget()
getHorizAlign
public final int getHorizAlign()
- gets the horizontal alignment
- Returns:
- int
setHorizAlign
public void setHorizAlign(int horizAlign)
- sets the horizontal alignment
- Parameters:
- horizAlign - new value for horizAlign
getVertAlign
public final int getVertAlign()
- gets the vertical alignment
- Returns:
- int
setVertAlign
public void setVertAlign(int vertAlign)
- seta the vertical alignment
- Parameters:
- vertAlign - new value for vertAlign
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
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
resetForegroundSize
protected abstract void resetForegroundSize(GadgetGraphics g)
- resets the foreground size
- Parameters:
- g - the GadgetGraphics window
getMinimumSize
public Dimension getMinimumSize()
- gets the minimum dimensions
- Returns:
- Dimension
- Overrides:
- getMinimumSize in class Gadget
getPreferredSize
public Dimension getPreferredSize()
- gets the preffered dimensions
- Returns:
- Dimension
- Overrides:
- getPreferredSize in class Gadget
validate
protected void validate()
- validate
- Overrides:
- validate in class Gadget
getInnerRect
public Rectangle getInnerRect()
- getInnerRect
- Returns:
- Rectangle
paint
public void paint(GadgetGraphics g)
- paints the GadgetGraphics window
- Parameters:
- g - the GadgetGraphics window
- Overrides:
- paint in class Gadget
getDisabledBottom
protected Color getDisabledBottom(Color fg,
Color bg)
- getDisabledBottom
- Parameters:
- fg - Color
- bg - Color fed to GadgetGraphics.brighter
- Returns:
- GadgetGraphics.brighter(bg)
getDisabledTop
protected Color getDisabledTop(Color fg,
Color bg)
- getDisabledTop
- Parameters:
- fg - Color
- bg - Color fed to GadgetGraphics.darker
- Returns:
- GadgetGraphics.darker(bg)
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