FreeHEP API
Version current

hep.graphics.heprep
Interface HepRepIterator

All Superinterfaces:
Iterator
All Known Implementing Classes:
DefaultHepRepIterator

public interface HepRepIterator
extends Iterator

HepRepIterator interface.

Author:
Mark Donszelmann
Source Code:
HepRepIterator.java

Method Summary
 void addHepRepAttributeListener(String name, HepRepAttributeListener listener)
          Adds a listener to be informed about attribute changes while iterating.
 void addHepRepFrameListener(HepRepFrameListener listener)
          Adds a listener to be informed about attribute changes while iterating.
 boolean drawAsFrame()
          Returns true if the current instance, just delivered by nextInstance(), is to be drawn as a frame.
 boolean hasNext()
          Signals if there is a next instance to iterate to.
 HepRepInstance nextInstance()
          Returns next instance.
 void removeHepRepAttributeListener(String name, HepRepAttributeListener listener)
          Removes a listener.
 void removeHepRepFrameListener(HepRepFrameListener listener)
          Removes a listener.
 
Methods inherited from interface java.util.Iterator
next, remove
 

Method Detail

hasNext

public boolean hasNext()
Signals if there is a next instance to iterate to.

Specified by:
hasNext in interface Iterator
Returns:
true if next() can be called.

nextInstance

public HepRepInstance nextInstance()
Returns next instance.

Returns:
next HepRepInstance.

addHepRepAttributeListener

public void addHepRepAttributeListener(String name,
                                       HepRepAttributeListener listener)
Adds a listener to be informed about attribute changes while iterating.

Parameters:
listener - to be added.

removeHepRepAttributeListener

public void removeHepRepAttributeListener(String name,
                                          HepRepAttributeListener listener)
Removes a listener.

Parameters:
listener - to be removed.

addHepRepFrameListener

public void addHepRepFrameListener(HepRepFrameListener listener)
Adds a listener to be informed about attribute changes while iterating.

Parameters:
listener - to be added.

removeHepRepFrameListener

public void removeHepRepFrameListener(HepRepFrameListener listener)
Removes a listener.

Parameters:
listener - to be removed.

drawAsFrame

public boolean drawAsFrame()
Returns true if the current instance, just delivered by nextInstance(), is to be drawn as a frame.


FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.