|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PatternDisplayer
A specialization of Displayer interface for patterns. A pattern
is Java primitive long type that is interpreted in its binary
form as a bit-pattern. In order to distinguish significant and
insignificant bits, a bit-mask known as resolution is used. The total
number of bits set to 1 in the bitmask determine the number of bits this
displayer has to render. In order to render these bits properly, the
adapter delivers the following data items:
| Field Summary |
|---|
| Fields inherited from interface com.cosylab.gui.displayers.Displayer |
|---|
C_EDITABLE, DATA_SOURCE |
| Fields inherited from interface com.cosylab.gui.displayers.CommonDisplayer |
|---|
C_BIT_DESCRIPTIONS, C_BIT_MASK, C_COLOR, C_CONDITION_WHEN_CLEARED, C_CONDITION_WHEN_SET, C_DESCRIPTION, C_DISPLAY_NAME, C_FORMAT, C_GRAPH_MAX, C_GRAPH_MIN, C_MAXIMUM, C_MIN_STEP, C_MINIMUM, C_POSITION, C_PROPERTY_TYPE, C_SEQUENCE_LENGTH, C_UNITS |
| Fields inherited from interface com.cosylab.gui.displayers.DataStateProvider |
|---|
DATA_STATE |
| Method Summary | |
|---|---|
java.lang.String[] |
getBitDescriptions()
Returns an array of Strings, equal in length to the total number of significant bits, determined in the resolution. |
java.util.BitSet |
getBitMask()
Returns the resolution bit mask determining which bits in the value are significant. |
BitCondition[] |
getConditionWhenCleared()
Returns the array of Condition objects that carry
information on how each significant bit should be rendered when its
value is 0. |
BitCondition[] |
getConditionWhenSet()
Returns an array of Condition objects that carry
information on how each significant bit should be rendered when its
value is 1. |
java.lang.String |
getFormat()
Returns the C-style format specification used when the long
bit field must be output to string format. |
java.util.BitSet |
getValue()
Returns the value currently displayed by the displayer. |
void |
setBitDescriptions(java.lang.String[] value)
Sets the array of descriptions to be used by the displayer. |
void |
setBitMask(java.util.BitSet value)
Sets the bit-mask for this displayer. |
void |
setConditionWhenCleared(BitCondition[] value)
Sets the rendering hints for the cleared bits. |
void |
setConditionWhenSet(BitCondition[] value)
Sets the array of rendering hitns for set bits. |
void |
setFormat(java.lang.String value)
Sets the format specification used by this displayer to render its value into one string. |
void |
setValue(java.util.BitSet value)
Sets the value to be displayed by the displayer. |
| Methods inherited from interface com.cosylab.gui.displayers.Displayer |
|---|
getDataSource, getTitle, isEditable, setDataSource, setTitle |
| Methods inherited from interface com.cosylab.gui.displayers.CommonDisplayer |
|---|
cleanup, isSuspended, resume, suspend |
| Methods inherited from interface com.cosylab.gui.components.util.PopupManageable |
|---|
getPopupManager |
| Methods inherited from interface com.cosylab.gui.displayers.DataStateProvider |
|---|
addPropertyChangeListener, addPropertyChangeListener, getDataState, removePropertyChangeListener, removePropertyChangeListener |
| Methods inherited from interface com.cosylab.gui.displayers.PatternConsumer |
|---|
updateValue |
| Methods inherited from interface com.cosylab.gui.displayers.DataConsumer |
|---|
getDataConsumer, getDefaultDataConsumer, getName, getSupportedCharacteristics, getSupportedConsumerTypes, setCharacteristics, updateDataState |
| Method Detail |
|---|
java.util.BitSet getValue()
void setValue(java.util.BitSet value)
value - the value to be displayed.java.lang.String[] getBitDescriptions()
resolution. For each
significant bit, this array contains a (maximum) one line description.
void setBitDescriptions(java.lang.String[] value)
value - the new array of bit descriptionsgetBitDescriptions()BitCondition[] getConditionWhenCleared()
Condition objects that carry
information on how each significant bit should be rendered when its
value is 0.
void setConditionWhenCleared(BitCondition[] value)
BitCondition[] - an array of rendering hints for cleared bits.getConditionWhenCleared()BitCondition[] getConditionWhenSet()
Condition objects that carry
information on how each significant bit should be rendered when its
value is 1.
void setConditionWhenSet(BitCondition[] value)
value - the rendering hintsgetConditionWhenSet()java.lang.String getFormat()
long
bit field must be output to string format.
void setFormat(java.lang.String value)
String - a new C-style format specificationgetFormat()java.util.BitSet getBitMask()
value are significant. The total number of ones in the
binary representation of the bit-mask is the number of significant
bits. The value to be rendered is obtained by doing a bitwise and on
the resolution and the value.
void setBitMask(java.util.BitSet value)
BitSet - the new bit-mask for this displayergetBitMask()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||