Class DataView
java.lang.Object
java.awt.Component
de.bsvrz.pat.sysbed.plugins.archiveinfo.DataView
- All Implemented Interfaces:
java.awt.image.ImageObserver,java.awt.MenuContainer,java.io.Serializable
public class DataView
extends java.awt.Component
Swing-Komponente für die Datenansicht
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy -
Field Summary
Fields Modifier and Type Field Description static java.awt.ColorAVAILABLE_COLOR_BOTTOMstatic java.awt.ColorAVAILABLE_COLOR_HILIGHTstatic java.awt.ColorAVAILABLE_COLOR_SHADOWstatic java.awt.ColorAVAILABLE_COLOR_TOPstatic java.awt.ColorDELETED_COLOR_BOTTOMstatic java.awt.ColorDELETED_COLOR_HILIGHTstatic java.awt.ColorDELETED_COLOR_SHADOWstatic java.awt.ColorDELETED_COLOR_TOPstatic intITEM_HEIGHTFields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Constructor Summary
Constructors Constructor Description DataView(java.util.TreeSet<java.lang.Long> timestamps, java.util.Map<de.bsvrz.dav.daf.main.archive.ArchiveDataSpecification,java.util.List<de.bsvrz.dav.daf.main.archive.ArchiveInformationResult>> data, javax.swing.JViewport parentViewport) -
Method Summary
Modifier and Type Method Description java.util.List<de.bsvrz.dav.daf.main.archive.ArchiveInformationResult>getSelection()com.google.common.collect.RangeSet<java.lang.Long>getSelectionInterval()intmapTimestampToX(java.lang.Long timestamp)longmapXToTimestamp(java.lang.Integer x)voidpaint(java.awt.Graphics g)protected voidselectionChanged()voidsetMainSelection(com.google.common.collect.Range<java.lang.Long> mainSelection)Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setMixingCutoutShape, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
AVAILABLE_COLOR_TOP
public static final java.awt.Color AVAILABLE_COLOR_TOP -
AVAILABLE_COLOR_BOTTOM
public static final java.awt.Color AVAILABLE_COLOR_BOTTOM -
AVAILABLE_COLOR_HILIGHT
public static final java.awt.Color AVAILABLE_COLOR_HILIGHT -
AVAILABLE_COLOR_SHADOW
public static final java.awt.Color AVAILABLE_COLOR_SHADOW -
DELETED_COLOR_TOP
public static final java.awt.Color DELETED_COLOR_TOP -
DELETED_COLOR_BOTTOM
public static final java.awt.Color DELETED_COLOR_BOTTOM -
DELETED_COLOR_HILIGHT
public static final java.awt.Color DELETED_COLOR_HILIGHT -
DELETED_COLOR_SHADOW
public static final java.awt.Color DELETED_COLOR_SHADOW -
ITEM_HEIGHT
public static final int ITEM_HEIGHT- See Also:
- Constant Field Values
-
-
Constructor Details
-
DataView
public DataView(java.util.TreeSet<java.lang.Long> timestamps, java.util.Map<de.bsvrz.dav.daf.main.archive.ArchiveDataSpecification,java.util.List<de.bsvrz.dav.daf.main.archive.ArchiveInformationResult>> data, javax.swing.JViewport parentViewport)
-
-
Method Details
-
selectionChanged
protected void selectionChanged() -
mapTimestampToX
public int mapTimestampToX(java.lang.Long timestamp) -
mapXToTimestamp
public long mapXToTimestamp(java.lang.Integer x) -
paint
public void paint(java.awt.Graphics g)- Overrides:
paintin classjava.awt.Component
-
setMainSelection
public void setMainSelection(com.google.common.collect.Range<java.lang.Long> mainSelection) -
getSelection
public java.util.List<de.bsvrz.dav.daf.main.archive.ArchiveInformationResult> getSelection() -
getSelectionInterval
public com.google.common.collect.RangeSet<java.lang.Long> getSelectionInterval()
-