public class JJStatDiagramme extends JJComponent
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
JJStatDiagramme(JJPanel parent,
double xx,
double yy,
double w,
double h)
Instantiates a new JJ stat diagramme.
|
Modifier and Type | Method and Description |
---|---|
void |
addItem(java.awt.Color c,
java.lang.String s,
java.lang.Double d)
Adds the item.
|
java.util.ArrayList<java.awt.Color> |
getListeCouleurs()
Gets the liste couleurs.
|
java.util.ArrayList<java.lang.String> |
getListeNoms()
Gets the liste noms.
|
java.util.ArrayList<java.lang.Double> |
getListeValeurs()
Gets the liste valeurs.
|
java.util.ArrayList<java.lang.Double> |
getValeursPositions()
Gets the valeurs positions.
|
java.lang.Double |
getValeurTotale()
Gets the valeur totale.
|
java.lang.Double |
getValeurTotalePosition()
Gets the valeur totale position.
|
void |
paintComponent(java.awt.Graphics g) |
void |
setValeur(java.util.ArrayList<java.lang.Double> nouvellesValeurs,
boolean isAnimated)
Sets the valeur.
|
void |
setValeur(double[] valeurs,
boolean isAnimated)
Sets the valeur.
|
addAnimation, animate, getCentreX, getCentreY, getH, getHeight, getOpacite, getTheta, getW, getWidth, getX, getXx, getY, getYy, isDragable, isSuppressionProgrammee, setDragable, setH, setOpacite, setSuppressionProgrammee, setTheta, setW, setXx, setYy
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, 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, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, 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, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
add, add, add, add, add, addContainerListener, 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, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, 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, 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, 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, transferFocusUpCycle
public JJStatDiagramme(JJPanel parent, double xx, double yy, double w, double h)
parent
- the parentxx
- the xxyy
- the yyw
- the wh
- the hpublic void addItem(java.awt.Color c, java.lang.String s, java.lang.Double d)
c
- the cs
- the sd
- the dpublic void paintComponent(java.awt.Graphics g)
paintComponent
in class javax.swing.JComponent
public void setValeur(java.util.ArrayList<java.lang.Double> nouvellesValeurs, boolean isAnimated)
nouvellesValeurs
- the nouvelles valeursisAnimated
- the is animatedpublic void setValeur(double[] valeurs, boolean isAnimated)
valeurs
- the valeursisAnimated
- the is animatedpublic java.util.ArrayList<java.awt.Color> getListeCouleurs()
public java.util.ArrayList<java.lang.String> getListeNoms()
public java.util.ArrayList<java.lang.Double> getListeValeurs()
public java.util.ArrayList<java.lang.Double> getValeursPositions()
public java.lang.Double getValeurTotale()
public java.lang.Double getValeurTotalePosition()