hades.symbols
Interface ColorSource

All Known Implementing Classes:
GenericRtlibObject.DINColorSource, LED, Signal

public interface ColorSource

ColorSource: trivial interface to be used for deferred (on-demand) Color queries.

The principal use in HADES is to reduce the enormous overhead of setColor() operations on animated Symbol graphics objects. For example, in a typical RTLIB simulation, the values of registers and ouput pins are constructed, formatted, and set many times before the next repaint occurs. By registering a ColorSource with Label, the Label will not perform Color construction, unless it is actually repainted, resulting in much better performance and memory efficiency.


Method Summary
 java.awt.Color getColor()
          get the current value of the Color from this ColorSource
 

Method Detail

getColor

public java.awt.Color getColor()
get the current value of the Color from this ColorSource