TPTP 4.5.0 Platform Project
Internal API Specification

org.eclipse.tptp.platform.report.core.internal
Class DColorRegistry

java.lang.Object
  extended by org.eclipse.tptp.platform.report.core.internal.DColorRegistry
All Implemented Interfaces:
IDObject, IDRegistry

Deprecated. As of TPTP 4.5.0, use the TPTP Business Intelligence and Reporting Tools (BIRT) reporting infrastructure (org.eclipse.tptp.platform.report.birt).

public class DColorRegistry
extends java.lang.Object
implements IDRegistry

A DColorRegistry is a registry collecting IDColor objects. A DColorRegistry stores only one instance of IDColor if two IDColor are equals. Before to store a new IDColor the registry checks if the IDColor doesn't exist in the registry by calling the method contains.

See Also:
IDColor, contains(org.eclipse.tptp.platform.report.core.internal.IDColor)

Constructor Summary
DColorRegistry()
          Deprecated. Creates an empty DColorRegistry.
 
Method Summary
 void clear()
          Deprecated. Clears the Registry of keys.
 boolean contains(IDColor color)
          Deprecated. Returns true if the color is already stored in the registry.
 boolean isEmpty()
          Deprecated.  
 java.util.Iterator iterator()
          Deprecated. Returns an iterator to access to all colors.
 void putColor(IDColor c)
          Deprecated. Put the color in the registry only if color isn't already stored.
 boolean remove(IDColor c)
          Deprecated. Remove the color if stored in registry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DColorRegistry

public DColorRegistry()
Deprecated. 
Creates an empty DColorRegistry.

Method Detail

clear

public void clear()
Deprecated. 
Clears the Registry of keys.

Specified by:
clear in interface IDRegistry

contains

public boolean contains(IDColor color)
Deprecated. 
Returns true if the color is already stored in the registry. This method uses the equal method of the IDColor object to compare between them.

See Also:
Object.equals(java.lang.Object)

putColor

public void putColor(IDColor c)
Deprecated. 
Put the color in the registry only if color isn't already stored.


remove

public boolean remove(IDColor c)
Deprecated. 
Remove the color if stored in registry.


iterator

public java.util.Iterator iterator()
Deprecated. 
Returns an iterator to access to all colors.

Specified by:
iterator in interface IDRegistry

isEmpty

public boolean isEmpty()
Deprecated. 
Returns:
true if registry is empty, false if not

TPTP 4.5.0 Platform Project
Internal API Specification