|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ClusterColorMapper
A simple interface to map a clusterID to a Color object. This interface was introduced to streamline the process of creating, managing, and using colors (defined by the user) for fragments that are part of different clusters. This interface provides methods to set and get colors given a cluster ID. Currently only the OverlapView implements this interface. The OverlapPanel uses the colors while the ClusterList class changes them.
Method Summary | |
---|---|
java.awt.Color |
getColor(java.lang.Integer clusterID)
Return the Color associated with a given cluster ID. |
void |
setColor(java.lang.Integer clusterID,
java.awt.Color color)
Set a color to be used for rendering fragments in the given cluster. |
Method Detail |
---|
java.awt.Color getColor(java.lang.Integer clusterID)
clusterID
- The ID of the cluster whose current color
is to be returned.
void setColor(java.lang.Integer clusterID, java.awt.Color color)
clusterID
- The cluster ID whose color is to be set.color
- The color to be set for the given cluster ID.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |