|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.visad.display.Displayable
ucar.visad.display.CompositeDisplayable
public class CompositeDisplayable
Supports composition of a list of Displayable-s into a single Displayable.
A change to the list of Displayable-s of an instance of this class fires a javax.swing.event.ListDataEvent.
| Field Summary | |
|---|---|
static int |
cnt
_more_ |
String |
label
_more_ |
| Fields inherited from class ucar.visad.display.Displayable |
|---|
DISPLAY, parent, SCALAR_MAP_SET |
| Constructor Summary | |
|---|---|
|
CompositeDisplayable()
Constructs from nothing. |
protected |
CompositeDisplayable(CompositeDisplayable that)
Constructs from another instance. |
|
CompositeDisplayable(LocalDisplay display)
Constructs from an initial VisAD display. |
|
CompositeDisplayable(String lbl)
_more_ |
| Method Summary | |
|---|---|
ConstantMap |
addConstantMap(ConstantMap map)
Associates a ConstantMap with this Displayable. |
void |
addDisplayable(Displayable displayable)
Adds a Displayable to the composite. |
void |
addListDataListener(ListDataListener listener)
Adds a listener for list-data events. |
void |
clearDisplayables()
Removes all displayables from this composite -- causing them to be removed from the VisAD display. |
Displayable |
cloneForDisplay()
Returns a clone of this instance suitable for another VisAD display. |
void |
debug()
_more_ |
protected void |
destroy()
Called when the displayable is removed from a display master |
void |
destroyAll()
_more_ |
int |
displayableCount()
Gets the current number of displayables. |
protected void |
fireListDataContentsChanged(int index0,
int index1)
Invokes the contentsChanged() method of all registered ListDataListener-s. |
protected void |
fireListDataIntervalAdded(int index0,
int index1)
Invokes the intervalAdded() method of all registered ListDataListener-s. |
protected void |
fireListDataIntervalRemoved(int index0,
int index1)
Invokes the intervalRemoved() method of all registered ListDataListener-s. |
Set |
getAnimationSet(RealType aniType)
Returns the set of values for the given aniType if
the contained Data object adapted by this DisplayableData have
any data of that type. |
Displayable |
getDisplayable(int index)
Gets a Displayable of the composite. |
int |
indexOf(Displayable displayable)
Gets the index of the particular Displayable. |
Iterator |
iterator()
Obtains an Iterator over the children of this composite. |
Displayable |
lastDisplayable()
Obtains the last displayable added to this composite. |
protected void |
myAddDataReferences()
Adds DataReference-s to the associated display. |
protected void |
myRemoveDataReferences()
Removes this instance's DataReference-s from the associated VisAD display. |
boolean |
removeDisplayable(Displayable displayable)
Removes a Displayable from the composite. |
Displayable |
removeDisplayable(int index)
Removes a Displayable from the composite. |
void |
removeListDataListener(ListDataListener listener)
Removes a listener for list-data events. |
void |
setAdjustFlow(boolean adjust)
Sets whether flows are adjusted. |
void |
setColor(Color c)
Sets the color of the children |
void |
setColorPalette(float[][] c)
Sets the color table of the children. |
void |
setColorUnit(Unit unit)
Sets the unit to be used for colors on all contained children |
void |
setConstantPosition(double value,
DisplayRealType type)
Set the z position to given value |
void |
setDisplay(LocalDisplay display)
Sets the associated VisAD display. |
void |
setDisplayable(int index,
Displayable displayable)
Sets a Displayable of the composite. |
protected void |
setDisplayMaster(DisplayMaster master)
_more_ |
void |
setDisplayUnit(Unit unit)
Sets the unit on all contained children. |
void |
setLineWidth(float width)
Sets the line width of the children. |
void |
setPointMode(boolean usePoints)
Set the flags for whether the Displayable displays data as points. |
void |
setPointSize(float size)
Sets the point size of the children |
void |
setSelectedRange(double low,
double hi)
Set the range of the selected data on each of the children displayables. |
void |
setUseFastRendering(boolean fastRender)
Set the flags for whether the Displayable uses it's methods to render quickly (eg, not account for projection seams). |
void |
setUseTimesInAnimation(boolean value)
Set the UseTimesInAnimation property. |
void |
setVisible(boolean visible)
Sets the visibility of this Displayable. |
void |
setVisible(boolean visible,
int index)
Sets the visibility of an individual child. |
void |
setVisible(boolean visible,
int lowerIndex,
int upperIndex)
Sets the visibility of an interval of children. |
void |
toFront()
Brings all the children to front. |
String |
toString()
Returns a string representation of this composite. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public String label
public static int cnt
| Constructor Detail |
|---|
public CompositeDisplayable()
throws RemoteException,
VisADException
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public CompositeDisplayable(String lbl)
throws RemoteException,
VisADException
lbl - _more_
RemoteException - _more_
VisADException - _more_
public CompositeDisplayable(LocalDisplay display)
throws RemoteException,
VisADException
display - The VisAD display.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
protected CompositeDisplayable(CompositeDisplayable that)
throws VisADException,
RemoteException
that - The other instance.
VisADException - VisAD failure.
RemoteException - Java RMI failure.| Method Detail |
|---|
public void addListDataListener(ListDataListener listener)
listener - The listener for list-data events.public void removeListDataListener(ListDataListener listener)
listener - The listener for list-data events.
public void addDisplayable(Displayable displayable)
throws RemoteException,
VisADException
displayable - The Displayable to be added.
VisADException - VisAD failure.
RemoteException - Java RMI failure.setDisplayable(int, ucar.visad.display.Displayable)
public void setDisplayable(int index,
Displayable displayable)
throws RemoteException,
VisADException
index - The index of the Displayable.displayable - The Displayable to be added.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public Displayable getDisplayable(int index)
throws IndexOutOfBoundsException
index - The position that contains the Displayable.
Must be non-negative and less than the number
of Displayable-s.
Displayable at the given position.
IndexOutOfBoundsException - Invalid index.
public boolean removeDisplayable(Displayable displayable)
throws VisADException,
RemoteException
displayable - The Displayable to be removed.
true if and only if this composite
contained the specified Displayable.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
protected void destroy()
throws RemoteException,
VisADException
destroy in class DisplayableVisADException - VisAD failure.
RemoteException - Java RMI failure.
public Displayable removeDisplayable(int index)
throws RemoteException,
VisADException
index - The index of the displayable to be removed.
VisADException - VisAD failure.
RemoteException - Java RMI failure.public Iterator iterator()
public void setDisplay(LocalDisplay display)
throws RemoteException,
VisADException
setDisplay in class Displayabledisplay - The associated VisAD display.
VisADException - VisAD failure.
RemoteException - Java RMI failure.Displayable.removeDataReferences()
protected void setDisplayMaster(DisplayMaster master)
throws VisADException,
RemoteException
setDisplayMaster in class Displayablemaster - _more_
RemoteException - _more_
VisADException - _more_
protected final void myAddDataReferences()
throws VisADException,
RemoteException
myAddDataReferences in class DisplayableVisADException - VisAD failure.
RemoteException - Java RMI failure.
protected final void myRemoveDataReferences()
throws VisADException,
RemoteException
myRemoveDataReferences in class DisplayableVisADException - VisAD failure.
RemoteException - Java RMI failure.
public ConstantMap addConstantMap(ConstantMap map)
throws VisADException,
RemoteException
addConstantMap in class Displayablemap - A ConstantMap to be associated with this
Displayable.
VisADException - VisAD failure.
RemoteException - Java RMI failure.public void debug()
public void setVisible(boolean visible)
throws RemoteException,
VisADException
setVisible in class Displayablevisible - If true and this composite's
addScalarMaps() and addDataReferences()
methods have been invoked, then the composite
will be made visible; otherwise, if
false, then it is or will become
invisible.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setVisible(boolean visible,
int lowerIndex,
int upperIndex)
throws RemoteException,
VisADException
visible - Whether or not to display the interval of
children.lowerIndex - The lower index of the interval.upperIndex - The upper index of the interval.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setUseFastRendering(boolean fastRender)
throws VisADException,
RemoteException
setUseFastRendering in class DisplayablefastRender - Should the rendering be quick (and possibly
inaccurate)
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setPointMode(boolean usePoints)
throws VisADException,
RemoteException
setPointMode in class DisplayableusePoints - true to display as points
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setConstantPosition(double value,
DisplayRealType type)
throws VisADException,
RemoteException
setConstantPosition in class Displayablevalue - The valuetype - The type
RemoteException - On badness
VisADException - On badness
public void toFront()
throws RemoteException,
VisADException
toFront in class DisplayableVisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setColor(Color c)
throws RemoteException,
VisADException
setColor in class Displayablec - The color.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setUseTimesInAnimation(boolean value)
throws RemoteException,
VisADException
setUseTimesInAnimation in class Displayablevalue - The new value for UseTimesInAnimation
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setAdjustFlow(boolean adjust)
throws RemoteException,
VisADException
setAdjustFlow in class Displayableadjust - true to adjust
RemoteException - Java RMI failure.
VisADException - VisAD failure.
public void setDisplayUnit(Unit unit)
throws RemoteException,
VisADException
setDisplayUnit in class Displayableunit - The display unit to use.
VisADException - if a VisADFailure occurs.
RemoteException - if a Java RMI failure occurs.
public void setSelectedRange(double low,
double hi)
throws RemoteException,
VisADException
setSelectedRange in class Displayablelow - The minimum value of the selected rangehi - The maximum value of the selected range
VisADException - if a VisADFailure occurs.
RemoteException - if a Java RMI failure occurs.
public void setColorUnit(Unit unit)
throws RemoteException,
VisADException
setColorUnit in class Displayableunit - The display unit to use.
RemoteException
VisADException
public void setPointSize(float size)
throws RemoteException,
VisADException
setPointSize in class Displayablesize - size (pixels)
RemoteException
VisADException
public void setLineWidth(float width)
throws RemoteException,
VisADException
setLineWidth in class Displayablewidth - width for children (pixels)
RemoteException
VisADException
public void setColorPalette(float[][] c)
throws RemoteException,
VisADException
setColorPalette in class Displayablec - color palette
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setVisible(boolean visible,
int index)
throws RemoteException,
VisADException
visible - Whether or not to display theindex - The index of the child.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void clearDisplayables()
throws RemoteException,
VisADException
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void destroyAll()
throws RemoteException,
VisADException
RemoteException - _more_
VisADException - _more_public Displayable lastDisplayable()
public int displayableCount()
public int indexOf(Displayable displayable)
Displayable
doesn't exist, then -1 is returned.
displayable - The Displayable to have its index returned.
public Set getAnimationSet(RealType aniType)
throws RemoteException,
VisADException
Returns the set of values for the given aniType if
the contained Data object adapted by this DisplayableData have
any data of that type. null will be returned if
this instance adapts such an object but the object is unset, or if this
instance does not support this type.
getAnimationSet in class DisplayableaniType - The type used for animation
null.
VisADException - if a VisAD failure occurs.
RemoteException - if a Java RMI failure occurs.Displayable.hasDataObject()
public Displayable cloneForDisplay()
throws RemoteException,
VisADException
cloneForDisplay in class DisplayableVisADException - VisAD failure.
RemoteException - Java RMI failure.
protected void fireListDataContentsChanged(int index0,
int index1)
index0 - The lower index of the range.index1 - The upper index of the range.
protected void fireListDataIntervalAdded(int index0,
int index1)
index0 - The lower index of the range.index1 - The upper index of the range.
protected void fireListDataIntervalRemoved(int index0,
int index1)
index0 - The lower index of the range.index1 - The upper index of the range.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||