|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Panel | +--com.jinsight.jetchart.GradientPanel | +--com.jinsight.jetchart.GenericGraph | +--com.jinsight.jetchart.PieGraph
The PieGraph class implements the graphic context of pie series. A pie chart can
be dragged or resized. To drag a chart, place the mouse cursor within the chart area
but outside pie series bounds. Then click the left button and start dragging. To resize
a chart, double-click the chart area and then proceed as previously described. A double-click
alternates between dragging and chart resizing.
To dynamically rotate a pie series or explode a slice, move mouse cursor to an area inside
pie series bounds. Cursor shape is changed to a hand, to indicate that mouse cursor is over an
area where it is possible to rotate pie or explode slices. Click the left button and start
dragging. A pie series can be rotated clockwise or counterclockwise. To explode a slice,
place cursor within any slice and, while holding the SHIFT key down, click the left button
and drag.
A pie chart only supports one legend box displaying slices titles. Adding multiple legend
boxes to a pie chart has no effect. The constants Legend.BOTTOM_LEFT and Legend.BOTTOM_RIGHT
have no effect with a pie chart. Legend position is automatically set to BOTTOM if any of these
constants is used.
PieSerie
,
Slice
,
SliceLegend
,
Legend
, Serialized FormInner classes inherited from class java.awt.Panel |
java.awt.Panel.AccessibleAWTPanel |
Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent |
Fields inherited from class com.jinsight.jetchart.GenericGraph |
CENTER, TILE, TOP_LEFT |
Fields inherited from class com.jinsight.jetchart.GradientPanel |
BOTTOM_TO_TOP, LEFT_TO_RIGHT, RIGHT_TO_LEFT, TOP_TO_BOTTOM |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
PieGraph()
Creates a pie chart context. |
Method Summary | |
void |
addSerie(PieSerie ps)
|
protected void |
finalize()
|
PieGraphEventListener |
getPieGraphEventListener()
Returns a reference to a PieGraphEventListener object. |
void |
paint(java.awt.Graphics gr)
Overrides the Component class paint() method. |
void |
readXMLData(java.io.Reader reader)
Reads chart properties from an xml character stream. |
void |
update(java.awt.Graphics gr)
Overrides the Component class update() method,
to avoid flickering. |
Methods inherited from class com.jinsight.jetchart.GradientPanel |
setGradientColors, setGradientOrientation |
Methods inherited from class java.awt.Panel |
addNotify, getAccessibleContext |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFont, setLayout, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PieGraph()
Method Detail |
public void addSerie(PieSerie ps)
public PieGraphEventListener getPieGraphEventListener()
PieGraphEventListener
public void readXMLData(java.io.Reader reader) throws java.io.IOException
GenericGraph
readXMLData
in class GenericGraph
com.jinsight.jetchart.GenericGraph
reader
- The reader from which to retrieve the XML data.java.io.IOException
- If an error occured while reading the input.GraphException
- If the XML data does not follow certain rules related to the definition
of acceptable tags.AbstractSerie.getId()
public void update(java.awt.Graphics gr)
update()
method,
to avoid flickering.update
in class java.awt.Container
gr
- A Graphics object, used to render chart. This
object is automatically created by the AWT classes and passed
to this method, which in turn forwards it to the
paint()
method.paint(java.awt.Graphics)
public void paint(java.awt.Graphics gr)
paint()
method.
Chart plotting starts in this method.paint
in class GradientPanel
gr
- A Graphics object.update(java.awt.Graphics)
protected void finalize() throws java.lang.Throwable
finalize
in class GenericGraph
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |