|
||||||||||
| 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
jfits.JAbstractShapePanel
public abstract class JAbstractShapePanel
A base class for fits shape providers that present themself as a panel, allow some adjustment of the principal shape, and can be queried for the final shape. This class implements a change listener to update its display whenever the overall shape has changed.
| Nested Class Summary |
|---|
| 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 int |
DEFICONHEIGHT
The format string for the average of the first index. |
private static int |
DEFICONWIDTH
The format string for the average of the first index. |
private JButton |
icon
From the generic fits shape, we draw into an icon. |
private PropertySupplying |
info
The properties I'm composed of. |
static String |
KEY_ICONHEIGHT
The format string for the average of the first index. |
static String |
KEY_ICONWIDTH
The format string for the average of the first index. |
| 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 | |
|---|---|
private |
JAbstractShapePanel()
|
protected |
JAbstractShapePanel(PropertySupplying i)
Use this constructor in daughter classes, call the empty super constructor and registers the properties, but does not call init. |
| Method Summary | |
|---|---|
void |
addActionListener(ActionListener al)
We add action listeners to the button. |
PropertySupplying |
getComposedProperties()
Returns my properties. |
String |
getID()
ID is the class name of the generic shape. |
JButton |
getLabel()
Returns the label |
void |
init()
This creates the shape label and sets up the redraws on property changes. |
void |
setComposedProperties(PropertySupplying i)
Defaults the icon width and height. |
void |
stateChanged(ChangeEvent ce)
When the state has changed, we issue a redraw on the shape label. |
| 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 |
| Methods inherited from interface jfits.FitsShapeProviding |
|---|
getGeneric |
| Field Detail |
|---|
public static final String KEY_ICONWIDTH
public static final String KEY_ICONHEIGHT
private static final int DEFICONWIDTH
private static final int DEFICONHEIGHT
private JButton icon
private PropertySupplying info
| Constructor Detail |
|---|
private JAbstractShapePanel()
protected JAbstractShapePanel(PropertySupplying i)
| Method Detail |
|---|
public String getID()
getID in interface FitsShapeProvidingpublic void setComposedProperties(PropertySupplying i)
setComposedProperties in interface PropertyAwarepublic PropertySupplying getComposedProperties()
getComposedProperties in interface PropertyComposedpublic void init()
init in interface Initializablepublic void stateChanged(ChangeEvent ce)
stateChanged in interface ChangeListenerpublic JButton getLabel()
public void addActionListener(ActionListener al)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||