Class AttributeView

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--AttributeView

public class AttributeView
extends javax.swing.JPanel

AttributeView is the ancestor component for AttributeTitle, AttributeFilterPanel and Jakauma.

See Also:
Serialized Form

Inner classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Inner classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
AttributeView(TabDataSet data, int aIndex)
           
AttributeView(TabDataSet data, int aIndex, boolean gOpen)
           
 
Method Summary
 void adaptToConstraints(double leftC, double rightC)
           
 void adaptToConstraints(int leftC, int rightC)
           
 void adaptToConstraints(long leftC, long rightC)
           
 int getAttributeIndex()
           
 int getAttributeType()
           
 int getBarCount()
           
 java.lang.String getBarHighLimit(int barIndex)
           
 java.lang.String getBarLowLimit(int barIndex)
           
 java.lang.String getEdgeValue(boolean end)
          Converts attributes min and max values to strings.
 boolean getGraphState()
          Returns the state of visibility of the Graph
 int getLeftBar()
           
 int getRightBar()
           
protected  void initView(TabDataSet data, int aIndex)
          Called from both constructors.
 void resetSelectedArea()
           
 void setGraphState(boolean bstate)
          Sets the graph visible/hidden
 void setLeftBar(int bar)
           
 void setRightBar(int bar)
           
 void toggleGraph()
          Expands/collapses the component - toggles attribute visuals.
 void updateSelectionFromData()
           
 void updateSelectionGraph()
           
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUIClassID, paramString, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInsets, getInsets, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, processComponentKeyEvent, processFocusEvent, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setCursor, setLayout, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hide, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributeView

public AttributeView(TabDataSet data,
                     int aIndex)

AttributeView

public AttributeView(TabDataSet data,
                     int aIndex,
                     boolean gOpen)
Method Detail

initView

protected void initView(TabDataSet data,
                        int aIndex)
Called from both constructors. Carries on with the component initialization.

toggleGraph

public void toggleGraph()
Expands/collapses the component - toggles attribute visuals.

getAttributeIndex

public int getAttributeIndex()
Returns:
Returns the index of the attribute

getAttributeType

public int getAttributeType()
Returns:
Returns attribute type: long/double/class

getEdgeValue

public java.lang.String getEdgeValue(boolean end)
Converts attributes min and max values to strings. Used on the range specifier JLabels
Returns:
Returns a string.

getBarCount

public int getBarCount()

getBarLowLimit

public java.lang.String getBarLowLimit(int barIndex)

getBarHighLimit

public java.lang.String getBarHighLimit(int barIndex)

resetSelectedArea

public void resetSelectedArea()

updateSelectionFromData

public void updateSelectionFromData()

updateSelectionGraph

public void updateSelectionGraph()

getLeftBar

public int getLeftBar()

getRightBar

public int getRightBar()

setLeftBar

public void setLeftBar(int bar)

setRightBar

public void setRightBar(int bar)

adaptToConstraints

public void adaptToConstraints(long leftC,
                               long rightC)

adaptToConstraints

public void adaptToConstraints(double leftC,
                               double rightC)

adaptToConstraints

public void adaptToConstraints(int leftC,
                               int rightC)

getGraphState

public boolean getGraphState()
Returns the state of visibility of the Graph
Returns:
Returns true if graph is visible.

setGraphState

public void setGraphState(boolean bstate)
Sets the graph visible/hidden