visad
Class ThingImpl
- java.lang.Object
-
- visad.ThingImpl
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, Thing
public class ThingImpl extends java.lang.Object implements Thing, java.lang.Cloneable, java.io.Serializable
ThingImpl is the abstract superclass of the VisAD objects that send ThingChangedEvents to Actions.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description ThingImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddReference(ThingReference r)Adds a listener for changes to this thing.java.lang.Objectclone()Clones this instance.voidnotifyReferences()notify local ThingReferenceImpl-s that this ThingImpl has changed; incTick in RemoteThingImpl for RemoteThingReferenceImpl-s; would like 'default' visibility here, but must be declared 'public' because it is defined in the Thing interfacevoidremoveReference(ThingReference r)remove a ThingReference to this ThingImpl; must be local ThingReferenceImpl; called by ThingReference.setThing; would like 'default' visibility here, but must be declared 'public' because it is defined in the Thing interface
-
-
-
Method Detail
-
addReference
public void addReference(ThingReference r) throws RemoteVisADException
Adds a listener for changes to this thing. The listener will be notified when this thing changes.- Specified by:
addReferencein interfaceThing- Parameters:
r- The listener for changes.- Throws:
RemoteVisADException- if the listener isn't aThingReferenceImpl.VisADException- if a VisAD failure occurs.
-
removeReference
public void removeReference(ThingReference r) throws VisADException
remove a ThingReference to this ThingImpl; must be local ThingReferenceImpl; called by ThingReference.setThing; would like 'default' visibility here, but must be declared 'public' because it is defined in the Thing interface- Specified by:
removeReferencein interfaceThing- Throws:
VisADException
-
notifyReferences
public void notifyReferences() throws VisADException, java.rmi.RemoteExceptionnotify local ThingReferenceImpl-s that this ThingImpl has changed; incTick in RemoteThingImpl for RemoteThingReferenceImpl-s; would like 'default' visibility here, but must be declared 'public' because it is defined in the Thing interface- Throws:
VisADExceptionjava.rmi.RemoteException
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionClones this instance. Information on the set of listeners to changes in this instance is not cloned, so -- following the general contract of the
clone()method -- subclasses should not test for equality of the set of listeners in anyequals(Object)method.This implementation never throws
CloneNotSupportedException.- Overrides:
clonein classjava.lang.Object- Returns:
- A clone of this instance.
- Throws:
java.lang.CloneNotSupportedException- if cloning isn't supported.
-
-
DMelt 3.0 © DataMelt by jWork.ORG