| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvisad.Control
public abstract class Control
Control is the abstract VisAD superclass for controls for DisplayRealTypes.
| Constructor Summary | |
|---|---|
| Control(DisplayImpl d)construct a Control for the given DisplayImpl | |
| Method Summary | |
|---|---|
|  void | addControlListener(ControlListener listener)add a ControlListener | 
|  void | animation_string(RealType real,
                 Set set,
                 double value,
                 int current)build String representation of current animation step and pass it to DisplayRenderer.setAnimationString() called by java3d.AnimationControlJ3D and java2d.AnimationControlJ2D | 
|  void | changeControl(boolean tick)invoked every time values of this Control change | 
|  boolean | checkTicks(DataRenderer r,
           DataDisplayLink link)check if this Control changed and requires re-Transform | 
|  Object | clone() | 
|  boolean | equals(Object o)Indicates whether or not this instance equals an Object | 
|  DisplayImpl | getDisplay() | 
|  DisplayRenderer | getDisplayRenderer() | 
|  int | getInstanceNumber() | 
| abstract  String | getSaveString() | 
|  long | incTick()increment long counter NewTick: NewTick > OldTick indicates that there is event in this Control that the DisplayImpl must process; this method is invoked every time Control changes | 
|  void | nullControl()end this control (called by ScalarMap.nullDisplay()) | 
|  boolean | peekTicks(DataRenderer r,
          DataDisplayLink link)peek at future value of checkTicks() | 
|  void | removeControlListener(ControlListener listener)remove a ControlListener | 
|  void | resetTicks()reset tickFlag and propagate to sub-Controls | 
| abstract  void | setSaveString(String save)reconstruct this Control using the specified save string | 
|  void | setTicks()set tickFlag if NewTick > OldTick, and reset OldTick = NewTick also invoke subSetTicks() to propagate to any sub-Controls | 
|  boolean | subCheckTicks(DataRenderer r,
              DataDisplayLink link)run checkTicks on any sub-Controls this default for no sub-Controls | 
|  boolean | subPeekTicks(DataRenderer r,
             DataDisplayLink link)run peekTicks on any sub-Controls this default for no sub-Controls | 
|  void | subResetTicks()run resetTicks on any sub-Controls this default for no sub-Controls | 
|  void | subSetTicks()run setTicks on any sub-Controls; this default for no sub-Controls | 
| abstract  void | syncControl(Control rmt)copy the state of a remote control to this control | 
|  String | toString() | 
| Methods inherited from class java.lang.Object | 
|---|
| finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public Control(DisplayImpl d)
d - - DisplayImpl this Control is associated with| Method Detail | 
|---|
public DisplayRenderer getDisplayRenderer()
public void changeControl(boolean tick)
                   throws VisADException,
                          RemoteException
tick - true to notify the Display for possible re-transform
VisADException
RemoteExceptionpublic void addControlListener(ControlListener listener)
listener - ControlListener to addpublic void removeControlListener(ControlListener listener)
listener - ControlListener to removepublic void nullControl()
public long incTick()
public void setTicks()
public boolean peekTicks(DataRenderer r,
                         DataDisplayLink link)
r - DataRenderer to check if changes to this Control
          require re-transformlink - DataDisplayLink involved in decision whether
             changes to this Control require re-transform
public boolean checkTicks(DataRenderer r,
                          DataDisplayLink link)
r - DataRenderer to check if changes to this Control 
          require re-transformlink - DataDisplayLink involved in decision whether
             changes to this Control require re-transform
public void resetTicks()
public void subSetTicks()
public boolean subCheckTicks(DataRenderer r,
                             DataDisplayLink link)
r - DataRenderer to check if changes to this Control
          require re-transformlink - DataDisplayLink involved in decision whether
             changes to this Control require re-transform
public boolean subPeekTicks(DataRenderer r,
                            DataDisplayLink link)
r - DataRenderer to check if changes to this Control
          require re-transformlink - DataDisplayLink involved in decision whether
             changes to this Control require re-transform
public void subResetTicks()
public void animation_string(RealType real,
                             Set set,
                             double value,
                             int current)
                      throws VisADException
real - - RealType mapped to Display.Animationset - - Set from AnimationSetControlvalue - - real value associated with current animation stepcurrent - - index of current animation step
VisADException - a VisAD error occurredpublic int getInstanceNumber()
public DisplayImpl getDisplay()
public abstract String getSaveString()
public abstract void setSaveString(String save)
                            throws VisADException,
                                   RemoteException
save - - String representation for reconstruction
VisADException - if a VisAD error occurs
RemoteException - if an RMI error occurs
public abstract void syncControl(Control rmt)
                          throws VisADException
rmt - remote Control whose state is copied
VisADException - if a VisAD error occurspublic Object clone()
clone in class Objectpublic boolean equals(Object o)
equals in class Objecto - an Object
public String toString()
toString in class Object| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||