dsto.dfc.swing.controls
Class BillBoard
java.lang.Object
dsto.dfc.swing.controls.BillBoard
- All Implemented Interfaces:
- ImageObserver
public class BillBoard
- extends Object
- implements ImageObserver
BillBoard will let you place images in a certain layout, and
a certain alignment. For example:
addImage (image, BillBoard.LAYOUT_SINGLE,
BillBoard.ALIGNMENT_BOTTOM_RIGHT);
Alignment is obviously not necessary when using LAYOUT_TILED,
and this is why there is two addImage(...) methods.
- Version:
- $Revision$
Nested Class Summary |
static class |
BillBoard.LayoutEnum
This is used to store the layout and the alignment in |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LAYOUT_SINGLE
public static final int LAYOUT_SINGLE
- See Also:
- Constant Field Values
LAYOUT_TILED
public static final int LAYOUT_TILED
- See Also:
- Constant Field Values
LAYOUT_STRETCHED_NOASPECT
public static final int LAYOUT_STRETCHED_NOASPECT
- See Also:
- Constant Field Values
LAYOUT_STRETCHED_ASPECT
public static final int LAYOUT_STRETCHED_ASPECT
- See Also:
- Constant Field Values
ALIGNMENT_TOP_LEFT
public static final int ALIGNMENT_TOP_LEFT
- See Also:
- Constant Field Values
ALIGNMENT_MID_TOP
public static final int ALIGNMENT_MID_TOP
- See Also:
- Constant Field Values
ALIGNMENT_TOP_RIGHT
public static final int ALIGNMENT_TOP_RIGHT
- See Also:
- Constant Field Values
ALIGNMENT_MID_RIGHT
public static final int ALIGNMENT_MID_RIGHT
- See Also:
- Constant Field Values
ALIGNMENT_BOTTOM_RIGHT
public static final int ALIGNMENT_BOTTOM_RIGHT
- See Also:
- Constant Field Values
ALIGNMENT_MID_BOTTOM
public static final int ALIGNMENT_MID_BOTTOM
- See Also:
- Constant Field Values
ALIGNMENT_BOTTOM_LEFT
public static final int ALIGNMENT_BOTTOM_LEFT
- See Also:
- Constant Field Values
ALIGNMENT_MID_LEFT
public static final int ALIGNMENT_MID_LEFT
- See Also:
- Constant Field Values
ALIGNMENT_CENTER
public static final int ALIGNMENT_CENTER
- See Also:
- Constant Field Values
TILED
public static final EnumerationValue TILED
CENTERED
public static final EnumerationValue CENTERED
STRETCHED
public static final EnumerationValue STRETCHED
STRETCHED_ASPECT
public static final EnumerationValue STRETCHED_ASPECT
TOP_LEFT
public static final EnumerationValue TOP_LEFT
TOP_CENTER
public static final EnumerationValue TOP_CENTER
TOP_RIGHT
public static final EnumerationValue TOP_RIGHT
CENTER_LEFT
public static final EnumerationValue CENTER_LEFT
CENTER_RIGHT
public static final EnumerationValue CENTER_RIGHT
BOTTOM_LEFT
public static final EnumerationValue BOTTOM_LEFT
BOTTOM_CENTER
public static final EnumerationValue BOTTOM_CENTER
BOTTOM_RIGHT
public static final EnumerationValue BOTTOM_RIGHT
ENUM_VALUES
public static final EnumerationValue[] ENUM_VALUES
imageArray
protected ArrayList imageArray
backgroundColor
protected Color backgroundColor
size
protected Dimension size
BillBoard
public BillBoard()
setBackgroundColor
public void setBackgroundColor(Color c)
getBackgroundColor
public Color getBackgroundColor()
setSize
public void setSize(Dimension size)
getSize
public Dimension getSize()
addImage
public void addImage(Image image,
int layout,
int alignment)
addImage
public void addImage(Image image,
EnumerationValue layoutAlignment)
removeImage
public void removeImage(Image image)
removeAllImages
public void removeAllImages()
paint
public void paint(Graphics g)
imageUpdate
public boolean imageUpdate(Image image,
int infoflags,
int x,
int y,
int width,
int height)
- Specified by:
imageUpdate
in interface ImageObserver
Copyright © 2008 Commonwealth of Australia