|
||||||||||
| 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
ucar.visad.display.AnimationBoxPanel
public class AnimationBoxPanel
A widget to graphically display animation times
| Nested Class Summary | |
|---|---|
static class |
AnimationBoxPanel.Box
Class Box represents a time step |
| 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.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| 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 | |
|---|---|
AnimationBoxPanel(AnimationWidget widget)
Default Constructor |
|
AnimationBoxPanel(AnimationWidget widget,
boolean[] okArray)
Default Constructor |
|
| Method Summary | |
|---|---|
protected void |
applyProperties(AnimationBoxPanel that)
Apply the properties from the that |
List |
getBoxes()
Get the list of boxes |
boolean[] |
getStepsOk()
Get the array of boolean that shows what steps are ok |
String |
getToolTipText(MouseEvent event)
Get the tooltip |
void |
keyPressed(KeyEvent e)
handle event |
void |
keyReleased(KeyEvent e)
handle event |
void |
keyTyped(KeyEvent e)
handle event |
void |
mouseClicked(MouseEvent event)
Noop |
void |
mouseDragged(MouseEvent event)
Noop |
void |
mouseEntered(MouseEvent e)
noop |
void |
mouseExited(MouseEvent e)
Noop |
void |
mouseMoved(MouseEvent e)
Handle event |
void |
mousePressed(MouseEvent event)
Handle event |
void |
mouseReleased(MouseEvent event)
Noop |
void |
paint(Graphics graphics)
Paint the boxes |
void |
setNumTimes(int numTimes)
Set the number of boxes |
void |
setNumTimes(int numTimes,
boolean[] okArray)
Set the number of boxes. |
void |
setOnIndex(int index)
set the current index to on |
| 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 |
| Constructor Detail |
|---|
public AnimationBoxPanel(AnimationWidget widget)
widget - The widget
public AnimationBoxPanel(AnimationWidget widget,
boolean[] okArray)
widget - The widgetokArray - initial array of what is| Method Detail |
|---|
public void keyPressed(KeyEvent e)
keyPressed in interface KeyListenere - eventpublic void keyReleased(KeyEvent e)
keyReleased in interface KeyListenere - eventpublic void keyTyped(KeyEvent e)
keyTyped in interface KeyListenere - eventpublic String getToolTipText(MouseEvent event)
getToolTipText in class JComponentevent - event
public void paint(Graphics graphics)
paint in class JComponentgraphics - graphicspublic void setOnIndex(int index)
index - current indexpublic void setNumTimes(int numTimes)
numTimes - number of times
public void setNumTimes(int numTimes,
boolean[] okArray)
numTimes - Number of timesokArray - Values for boxespublic List getBoxes()
protected void applyProperties(AnimationBoxPanel that)
that - Object to get properties frompublic void mousePressed(MouseEvent event)
mousePressed in interface MouseListenerevent - eventpublic boolean[] getStepsOk()
public void mouseMoved(MouseEvent e)
mouseMoved in interface MouseMotionListenere - eventpublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenere - eventpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenere - The eventpublic void mouseClicked(MouseEvent event)
mouseClicked in interface MouseListenerevent - eventpublic void mouseDragged(MouseEvent event)
mouseDragged in interface MouseMotionListenerevent - eventpublic void mouseReleased(MouseEvent event)
mouseReleased in interface MouseListenerevent - event
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||