|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
jview.JMosaic
public class JMosaic
A mosaic consists of equals-sized images that are arranged in a grid layout.
| Nested Class Summary | |
|---|---|
static class |
JMosaic.Stella
Test the mosaic with a simple 2row-1column mosaic showing the STELLA telescope in its bay. |
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| 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 | |
|---|---|
private static Color |
DEFBORDERCOLOR
The default border color. |
private static int |
DEFBORDERSIZE
The default border size. |
private static int |
DEFCOLUMNSMOSAIC
The default column number, zero for arbitrary number. |
private static int |
DEFROWSMOSAIC
The default row number, zero for arbitrary number. |
private PropertySupplying |
info
My properties. |
static String |
KEY_BORDERCOLOR
The color of the border on the tiles. |
static String |
KEY_BORDERSIZE
The size of the border on each tile. |
static String |
KEY_COLUMNSMOSAIC
The number of rows in the mosaic |
static String |
KEY_ROWSMOSAIC
The number of rows in the mosaic |
static String |
KEY_TILESHRINK
The size of the tiles. |
static String |
KEY_TILESIZE
The size of the tiles. |
private List |
mosaic
The list of labels that are displayed in this mosaic. |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| 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 | |
|---|---|
JMosaic(PropertySupplying info)
Constructs a new JMosaic with at least one of the row and column numbers specified. |
|
| Method Summary | |
|---|---|
PropertySupplying |
getComposedProperties()
Returns my properties. |
void |
init()
Initializes the mosaic by setting its layout. |
void |
setComposedProperties(PropertySupplying prop)
Sets the proberties of the mosaic and defines its layout as grid layout. |
void |
setImages(List images)
Sets images to this mosaic. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String KEY_ROWSMOSAIC
public static final String KEY_COLUMNSMOSAIC
public static final String KEY_BORDERSIZE
public static final String KEY_BORDERCOLOR
public static final String KEY_TILESIZE
public static final String KEY_TILESHRINK
private static final int DEFROWSMOSAIC
private static final int DEFCOLUMNSMOSAIC
private static final int DEFBORDERSIZE
private static final Color DEFBORDERCOLOR
private PropertySupplying info
private List mosaic
| Constructor Detail |
|---|
public JMosaic(PropertySupplying info)
| Method Detail |
|---|
public PropertySupplying getComposedProperties()
getComposedProperties in interface PropertyComposedpublic void setComposedProperties(PropertySupplying prop)
setComposedProperties in interface PropertyAwarepublic void init()
init in interface Initializablepublic void setImages(List images)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||