public class BooleanSpectrumViewer extends javax.swing.JPanel implements IBooleanSpectrumListener, java.beans.PropertyChangeListener
javax.swing.JPanel.AccessibleJPaneljavax.swing.JComponent.AccessibleJComponent| Modifier and Type | Field and Description |
|---|---|
static int |
DISPLAY_ICON |
static int |
DISPLAY_ICON_TEXT |
static int |
DISPLAY_TEXT |
static int |
TOOLTIP_ATTNAME |
static int |
TOOLTIP_ATTNAME_VALUE |
static int |
TOOLTIP_NONE |
static int |
TOOLTIP_VALUE |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Constructor and Description |
|---|
BooleanSpectrumViewer()
Creates new form BooleanSpectrumViewer
|
| Modifier and Type | Method and Description |
|---|---|
void |
booleanSpectrumChange(BooleanSpectrumEvent e) |
void |
clearModel() |
void |
errorChange(ErrorEvent evt) |
boolean |
getBooleanLabelVisible()
Returns the booleanLabel visiblity
|
int |
getDisplayMode()
Returns the current displayMode
|
javax.swing.ImageIcon |
getErrorIcon() |
java.lang.String |
getErrorLabel() |
javax.swing.ImageIcon |
getFalseIcon() |
java.lang.String |
getFalseLabel() |
java.awt.Font |
getGlobalFont()
Returns the globalFont used by the viewer
|
IBooleanSpectrum |
getModel()
Returns the model for this viewer
|
int |
getToolTipMode()
Returns the current toolTipMode
|
javax.swing.ImageIcon |
getTrueIcon() |
java.lang.String |
getTrueLabel() |
static void |
main(java.lang.String[] args) |
void |
propertyChange(java.beans.PropertyChangeEvent evt) |
void |
setBooleanLabelVisible(boolean blv)
Sets the visiblity for boolean labels.
|
void |
setDisplayMode(int dispMode)
Sets the current displayMode.
|
void |
setErrorIcon(javax.swing.ImageIcon eicon) |
void |
setErrorLabel(java.lang.String el) |
void |
setFalseIcon(javax.swing.ImageIcon ficon) |
void |
setFalseLabel(java.lang.String fl) |
void |
setGlobalFont(java.awt.Font ft)
Sets the globalFont for this viewer.
|
void |
setModel(IBooleanSpectrum boolSpec)
Sets the model for this viewer.
|
void |
setToolTipMode(int ttMode)
Sets the current toolTipMode.
|
void |
setTrueIcon(javax.swing.ImageIcon ticon) |
void |
setTrueLabel(java.lang.String tl) |
void |
stateChange(AttributeStateEvent e) |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic static final int TOOLTIP_NONE
public static final int TOOLTIP_ATTNAME
public static final int TOOLTIP_VALUE
public static final int TOOLTIP_ATTNAME_VALUE
public static final int DISPLAY_ICON
public static final int DISPLAY_TEXT
public static final int DISPLAY_ICON_TEXT
public BooleanSpectrumViewer()
public javax.swing.ImageIcon getTrueIcon()
public void setTrueIcon(javax.swing.ImageIcon ticon)
public javax.swing.ImageIcon getFalseIcon()
public void setFalseIcon(javax.swing.ImageIcon ficon)
public javax.swing.ImageIcon getErrorIcon()
public void setErrorIcon(javax.swing.ImageIcon eicon)
public java.lang.String getTrueLabel()
public void setTrueLabel(java.lang.String tl)
public java.lang.String getFalseLabel()
public void setFalseLabel(java.lang.String fl)
public java.lang.String getErrorLabel()
public void setErrorLabel(java.lang.String el)
public IBooleanSpectrum getModel()
public void setModel(IBooleanSpectrum boolSpec)
boolSpec - : the IBooleanSpectrum attribute to use as modelgetModel()public void clearModel()
public java.awt.Font getGlobalFont()
setGlobalFont(java.awt.Font)public void setGlobalFont(java.awt.Font ft)
ft - : the font to use for globalFontgetGlobalFont()public boolean getBooleanLabelVisible()
setBooleanLabelVisible(boolean)public void setBooleanLabelVisible(boolean blv)
blv - : if true the labels associated with each element of the spectrum will be visible in the first columngetBooleanLabelVisible()public int getDisplayMode()
setDisplayMode(int)public void setDisplayMode(int dispMode)
dispMode - : one of the values : DISPLAY_ICON, DISPLAY_TEXT, DISPLAY_ICON_TEXTgetDisplayMode()public int getToolTipMode()
setToolTipMode(int)public void setToolTipMode(int ttMode)
ttMode - : one of the values : TOOLTIP_NONE, TOOLTIP_ATTNAME, TOOLTIP_VALUE, TOOLTIP_ATTNAME_VALUEgetToolTipMode()public void booleanSpectrumChange(BooleanSpectrumEvent e)
booleanSpectrumChange in interface IBooleanSpectrumListenerpublic void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange in interface java.beans.PropertyChangeListenerpublic void stateChange(AttributeStateEvent e)
stateChange in interface IAttributeStateListenerpublic void errorChange(ErrorEvent evt)
errorChange in interface IErrorListenerpublic static void main(java.lang.String[] args)