DESY ACOP Beans Home

com.cosylab.gui.components.ledder
Interface BitDescriptor

All Known Implementing Classes:
DefaultBitDescriptor

public interface BitDescriptor

Interface representing the led model. This interface provides minimum requirements neccessary to uniquely define the model of leds. In this definition the model is immutable, although this is not a requirement. Implementations should provide methods for modifying the contents during runtime and fire appropriate events.

Version:
$id$
Author:
Ales Pucelj

Method Summary
 java.awt.Color getColorWhenOff(int index)
          Returns color for the led at specified index or null if such led does not exist.
 java.awt.Color getColorWhenOn(int index)
          Returns color for the led at specified index or null if such led does not exist.
 java.lang.String getDescription(int index)
          Returns description for the led at specified index or null if such led does not exist.
 

Method Detail

getDescription

java.lang.String getDescription(int index)
Returns description for the led at specified index or null if such led does not exist.

Parameters:
index - int
Returns:
String

getColorWhenOn

java.awt.Color getColorWhenOn(int index)
Returns color for the led at specified index or null if such led does not exist. This is the color that will be displayed when the led indicates ON state.

Parameters:
index - int
Returns:
Color

getColorWhenOff

java.awt.Color getColorWhenOff(int index)
Returns color for the led at specified index or null if such led does not exist. This is the color that will be displayed when the led indicates OFF state.

Parameters:
index - int
Returns:
Color


Copyright © 2010. All Rights Reserved.