|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IconDisplayer
IconDisplayer
can display long values (similar to LongDisplayer)
but instead of showing the number value it shows different icons for each of
the received values.
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 | |
---|---|
void |
addIcon(ValueIconPair pair)
Associates icon with value. |
void |
addIcons(ValueIconPair[] icons)
Associates icons with values. |
javax.swing.Icon |
getDefaultIcon()
Returns the default icon. |
ValueIconPair[] |
getIcons()
Returns an array of all icons that were associated with values. |
long |
getValue()
Gets the value displayed by the displayer. |
void |
removeIcon(ValueIconPair pair)
Removes icons. |
void |
removeIcons(ValueIconPair[] pairs)
Removes icons. |
void |
setDefaultIcon(javax.swing.Icon icon)
Sets the default icon for this displayer. |
void |
setIcons(ValueIconPair[] pairs)
Associates icons with values. |
void |
setValue(long value)
Sets the value 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.LongConsumer |
---|
updateValue |
Methods inherited from interface com.cosylab.gui.displayers.DataConsumer |
---|
getDataConsumer, getDefaultDataConsumer, getName, getSupportedCharacteristics, getSupportedConsumerTypes, setCharacteristics, updateDataState |
Method Detail |
---|
void setValue(long value)
value
- new value to be displayedlong getValue()
void setDefaultIcon(javax.swing.Icon icon)
icon
- javax.swing.Icon getDefaultIcon()
ValueIconPair[] getIcons()
void setIcons(ValueIconPair[] pairs)
icons
- void addIcons(ValueIconPair[] icons)
icons
- void addIcon(ValueIconPair pair)
icons
- void removeIcon(ValueIconPair pair)
icons
- void removeIcons(ValueIconPair[] pairs)
icons
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |