|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Interface implemented by top-level, heavyweight components that support the double-buffering of lightweight components. These components can render a background image in various ways.
| Field Summary | |
static int |
CENTER
The centre alignment. |
static int |
CENTER_TILE
Tiles the background image in the panel from the centre. |
static int |
INTEGER_TILE
Tiles the background image in the panel, resizing the image such that it its dimensions are factors of the panel dimensions. |
static int |
MAXIMIZE
Renders the background image to fit exactly into the panel, resizing its dimensions as necessary. |
static int |
MAXIMIZE_ASPECT
Renders the background image to fit into the panel, preserving the aspect ratio. |
static int |
MAXIMIZE_HORIZONTAL
Renders the background image to fit the width of the image into the panel. |
static int |
MAXIMIZE_VERTICAL
Renders the background image to fit the height of the image into the panel. |
static int |
TILE
Tiles the background image in the panel from the top left-hand corner. |
| Method Summary | |
java.awt.Component |
add(java.awt.Component component)
Adds the specified component to this pane. |
java.awt.Image |
getBackgroundImage()
Returns the background image. |
DButton |
getCancelButton()
Returns the cancel button in this pane. |
DButton |
getDefaultButton()
Returns the default button in this pane. |
java.awt.Font |
getFont()
Returns the font for this root pane. |
java.awt.FontMetrics |
getFontMetrics(java.awt.Font font)
Returns the font metrics for the specified font in this root pane. |
java.awt.Frame |
getFrame()
Returns the frame this root pane represents or is part of. |
java.awt.Insets |
getInsets()
Returns the insets of this root pane. |
int |
getMode()
Returns the rendering mode for the background image. |
java.awt.Dimension |
getSize()
Returns the size of this root pane. |
java.lang.String |
getTitle()
Returns the title of this pane. |
void |
processCancelAction(java.awt.event.ActionEvent event)
Activates the cancel button in the pane. |
void |
processDefaultAction(java.awt.event.ActionEvent event)
Activates the default button in the pane. |
void |
remove(java.awt.Component component)
Removes the specified component from this pane. |
void |
setBackgroundImage(java.awt.Image image)
Sets the background image. |
void |
setBackgroundImage(java.lang.String file)
Sets the background image from a file. |
void |
setBackgroundImage(java.net.URL url)
Sets the background image from a URL. |
void |
setCancelButton(DButton button)
Sets the cancel button in this pane. |
void |
setCursor(java.awt.Cursor cursor)
Sets the cursor on this root pane. |
void |
setDefaultButton(DButton button)
Sets the default button in this pane. |
void |
setMode(int mode)
Sets the rendering mode for the background image. |
void |
setTitle(java.lang.String title)
Sets the title of this pane. |
| Field Detail |
public static final int CENTER
public static final int TILE
public static final int INTEGER_TILE
public static final int CENTER_TILE
public static final int MAXIMIZE
public static final int MAXIMIZE_ASPECT
public static final int MAXIMIZE_VERTICAL
public static final int MAXIMIZE_HORIZONTAL
| Method Detail |
public int getMode()
setMode(int)public void setMode(int mode)
mode - one of CENTER, TILE, INTEGER_TILE, CENTER_TILE, MAXIMIZE, MAXIMIZE_ASPECT, MAXIMIZE_VERTICAL, or MAXIMIZE_HORIZONTALgetMode()public java.awt.Image getBackgroundImage()
setBackgroundImage(java.awt.Image)public void setBackgroundImage(java.awt.Image image)
image - the background image.getBackgroundImage()public void setBackgroundImage(java.lang.String file)
file - the image file.getBackgroundImage()public void setBackgroundImage(java.net.URL url)
url - the image URL.getBackgroundImage()public DButton getDefaultButton()
public void setDefaultButton(DButton button)
public void processDefaultAction(java.awt.event.ActionEvent event)
public DButton getCancelButton()
public void setCancelButton(DButton button)
public void processCancelAction(java.awt.event.ActionEvent event)
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
public java.awt.Frame getFrame()
public java.awt.Dimension getSize()
public java.awt.Insets getInsets()
public java.awt.FontMetrics getFontMetrics(java.awt.Font font)
public java.awt.Font getFont()
public java.awt.Component add(java.awt.Component component)
component - the component to be added.public void remove(java.awt.Component component)
component - the component to be removedadd(java.awt.Component)public void setCursor(java.awt.Cursor cursor)
cursor - the cursor
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||