public abstract class AbstractChartElementComponent extends javax.swing.JComponent implements ChartElementComponent
javax.swing.JComponent.AccessibleJComponent| Modifier and Type | Field and Description |
|---|---|
static int |
CELL_HEIGHT |
static int |
CELL_WIDTH |
protected ChartUIElement |
element |
static java.awt.Stroke |
LINK_STROKE |
protected java.awt.Dimension |
minSize |
protected ChartUIModel |
model |
protected java.beans.PropertyChangeListener |
repaintListener |
static java.awt.Color |
RUNNING |
static java.awt.Color |
STOPPING |
static java.awt.Stroke[] |
THICK_DASH |
static java.awt.Stroke |
THICK_STROKE |
static java.awt.Stroke |
THIN_STROKE |
static java.awt.Color |
VISITED |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Modifier | Constructor and Description |
|---|---|
protected |
AbstractChartElementComponent(ChartUIModel model,
ChartUIElement element) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
draw(java.awt.Graphics2D g)
This is where the specific chart element draws itself.
|
ChartUIElement |
getElement() |
java.awt.Dimension |
getMinSize() |
ChartUIModel |
getModel() |
SfcDisplayPanel |
getParent() |
java.awt.Point |
getPopupAnchorPoint() |
javax.swing.JComponent |
getPopupDisplayPanel() |
boolean |
isPopupDisplayPanelUsed() |
boolean |
isResizable() |
protected void |
paintComponent(java.awt.Graphics g) |
addAncestorListener, 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, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, 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, update, updateUIadd, 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, getAccessibleContext, 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, 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 CELL_WIDTH
public static final int CELL_HEIGHT
public static final java.awt.Color VISITED
public static final java.awt.Color STOPPING
public static final java.awt.Color RUNNING
public static final java.awt.Stroke THICK_STROKE
public static final java.awt.Stroke[] THICK_DASH
public static final java.awt.Stroke LINK_STROKE
public static final java.awt.Stroke THIN_STROKE
protected ChartUIModel model
protected ChartUIElement element
protected java.awt.Dimension minSize
protected java.beans.PropertyChangeListener repaintListener
protected AbstractChartElementComponent(ChartUIModel model, ChartUIElement element)
public javax.swing.JComponent getPopupDisplayPanel()
getPopupDisplayPanel in interface ChartElementComponentpublic boolean isPopupDisplayPanelUsed()
isPopupDisplayPanelUsed in interface ChartElementComponentpublic java.awt.Point getPopupAnchorPoint()
getPopupAnchorPoint in interface ChartElementComponentpublic java.awt.Dimension getMinSize()
getMinSize in interface ChartElementComponentpublic SfcDisplayPanel getParent()
getParent in interface ChartElementComponentgetParent in class java.awt.Componentprotected void paintComponent(java.awt.Graphics g)
paintComponent in class javax.swing.JComponentprotected abstract void draw(java.awt.Graphics2D g)
CELL_WIDTH and
CELL_HEIGHTpublic ChartUIElement getElement()
getElement in interface ChartElementComponentpublic ChartUIModel getModel()
getModel in interface ChartElementComponentpublic boolean isResizable()
isResizable in interface ChartElementComponent