public abstract class Control extends Object implements Cloneable, Serializable
Constructor and Description |
---|
Control(DisplayImpl d)
construct a Control for the given DisplayImpl
|
Modifier and Type | Method and Description |
---|---|
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() |
public Control(DisplayImpl d)
d
- - DisplayImpl this Control is associated withpublic DisplayRenderer getDisplayRenderer()
public void changeControl(boolean tick) throws VisADException, RemoteException
tick
- true to notify the Display for possible re-transformVisADException
RemoteException
public 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-transformpublic 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-transformpublic 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-transformpublic 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-transformpublic 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 stepVisADException
- 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 reconstructionVisADException
- if a VisAD error occursRemoteException
- if an RMI error occurspublic abstract void syncControl(Control rmt) throws VisADException
rmt
- remote Control whose state is copiedVisADException
- if a VisAD error occurspublic boolean equals(Object o)
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.