public class JSparklines3dTableCellRenderer extends JLabel implements TableCellRenderer
| Modifier and Type | Class and Description |
|---|---|
static class |
JSparklines3dTableCellRenderer.PlotType
List of supported plot types for JSparklines3dTableCellRenderer.
|
JLabel.AccessibleJLabelJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategylistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWaccessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTBOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WESTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
JSparklines3dTableCellRenderer(JSparklines3dTableCellRenderer.PlotType plotType,
Double minXValue,
Double maxXValue,
Double minYValue,
Double maxYValue)
Creates a new JSparkLines3dTableCellRenderer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addXAxisReferenceArea(String label,
double start,
double end,
Color areaColor,
float alpha)
Add a x-axis reference area.
|
void |
addXAxisReferenceLine(String label,
double value,
float lineWidth,
Color lineColor)
Add a reference line at a given x-axis data value.
|
void |
addYAxisReferenceArea(String label,
double start,
double end,
Color areaColor,
float alpha)
Add a y-axis reference area.
|
void |
addYAxisReferenceLine(String label,
double value,
float lineWidth,
Color lineColor)
Add a reference line at a given y-axis data value.
|
HashMap<String,ReferenceLine> |
getAllXAxisReferenceLines()
Returns all the x-axis references lines as a hashmap, with the labels as
the keys.
|
HashMap<String,ReferenceLine> |
getAllYAxisReferenceLines()
Returns all the y-axis references lines as a hashmap, with the labels as
the keys.
|
org.jfree.chart.ChartPanel |
getChartPanel()
Returns a reference to the chart panel.
|
Component |
getTableCellRendererComponent(JTable table,
Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column) |
HashMap<String,ReferenceArea> |
getXAxisAllReferenceAreas()
Returns all the x-axis references areas as a hashmap, with the labels as
the keys.
|
HashMap<String,ReferenceArea> |
getYAxisAllReferenceAreas()
Returns all the y-axis references areas as a hashmap, with the labels as
the keys.
|
void |
removeAllXAxisReferenceAreas()
Removes all the x-axis reference areas.
|
void |
removeAllXAxisReferenceLines()
Removes all x-axis reference lines.
|
void |
removeAllYAxisReferenceAreas()
Removes all the y-axis reference areas.
|
void |
removeAllYAxisReferenceLines()
Removes all y-axis reference lines.
|
void |
removeXAxisReferenceArea(String label)
Removes the x-axis reference area with the given label.
|
void |
removeXAxisReferenceLine(String label)
Removes the x-axis reference line with the given label.
|
void |
removeYAxisReferenceArea(String label)
Removes the y-axis reference area with the given label.
|
void |
removeYAxisReferenceLine(String label)
Removes the y-axis reference line with the given label.
|
void |
setMaxXValue(double maxXValue)
Set the maximum x value.
|
void |
setMaxYValue(double maxYValue)
Set the maximum y value.
|
void |
setMinXValue(double minXValue)
Set the minimum x value.
|
void |
setMinYValue(double minYValue)
Set the minimum y value.
|
void |
setPlotType(JSparklines3dTableCellRenderer.PlotType plotType)
Sets the plot type.
|
checkHorizontalKey, checkVerticalKey, getAccessibleContext, getDisabledIcon, getDisplayedMnemonic, getDisplayedMnemonicIndex, getHorizontalAlignment, getHorizontalTextPosition, getIcon, getIconTextGap, getLabelFor, getText, getUI, getUIClassID, getVerticalAlignment, getVerticalTextPosition, imageUpdate, paramString, setDisabledIcon, setDisplayedMnemonic, setDisplayedMnemonic, setDisplayedMnemonicIndex, setHorizontalAlignment, setHorizontalTextPosition, setIcon, setIconTextGap, setLabelFor, setText, setUI, setVerticalAlignment, setVerticalTextPosition, 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, 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 JSparklines3dTableCellRenderer(JSparklines3dTableCellRenderer.PlotType plotType, Double minXValue, Double maxXValue, Double minYValue, Double maxYValue)
plotType - the plot typeminXValue - the minimum x value to be plotted, used to make sure that
all plots in the same column has the same minimum x value and are thus
comparablemaxXValue - the maximum x value to be plotted, used to make sure
that all plots in the same column has the same maximum x value and are
thus comparableminYValue - the minimum y value to be plotted, used to make sure that
all plots in the same column has the same minimum y value and are thus
comparablemaxYValue - the maximum y value to be plotted, used to make sure
that all plots in the same column has the same maximum y value and are
thus comparableIllegalArgumentException - if minXValue > maxXValue or minYValue
> maxYValuepublic Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
getTableCellRendererComponent in interface TableCellRendererpublic void addXAxisReferenceLine(String label, double value, float lineWidth, Color lineColor)
label - the label for the referencevalue - the reference line valuelineWidth - the line width, has to non-negativelineColor - the line colorpublic void removeXAxisReferenceLine(String label)
label - the reference to removepublic void removeAllXAxisReferenceLines()
public HashMap<String,ReferenceLine> getAllXAxisReferenceLines()
public void addXAxisReferenceArea(String label, double start, double end, Color areaColor, float alpha)
label - the label for the reference areastart - the start of the reference areaend - the end of the reference areaareaColor - the color of the areaalpha - the alpha level, range: 0.0 to 1.0public void removeXAxisReferenceArea(String label)
label - the reference to removepublic void removeAllXAxisReferenceAreas()
public HashMap<String,ReferenceArea> getXAxisAllReferenceAreas()
public void addYAxisReferenceLine(String label, double value, float lineWidth, Color lineColor)
label - the label for the referencevalue - the reference line valuelineWidth - the line width, has to non-negativelineColor - the line colorpublic void removeYAxisReferenceLine(String label)
label - the reference to removepublic void removeAllYAxisReferenceLines()
public HashMap<String,ReferenceLine> getAllYAxisReferenceLines()
public void addYAxisReferenceArea(String label, double start, double end, Color areaColor, float alpha)
label - the label for the reference areastart - the start of the reference areaend - the end of the reference areaareaColor - the color of the areaalpha - the alpha level, range: 0.0 to 1.0public void removeYAxisReferenceArea(String label)
label - the reference to removepublic void removeAllYAxisReferenceAreas()
public HashMap<String,ReferenceArea> getYAxisAllReferenceAreas()
public void setMaxXValue(double maxXValue)
maxXValue - the maximum x valuepublic void setMinXValue(double minXValue)
minXValue - the minimum x valuepublic void setMaxYValue(double maxYValue)
maxYValue - the maximum y valuepublic void setMinYValue(double minYValue)
minYValue - the minimum y valuepublic void setPlotType(JSparklines3dTableCellRenderer.PlotType plotType)
plotType - the plotType to setpublic org.jfree.chart.ChartPanel getChartPanel()
Copyright © 2022. All rights reserved.