|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Panel
com.jinsight.jetchart.GradientPanel
com.jinsight.jetchart.GenericGraph
com.jinsight.jetchart.PolarGraph
A polar graph consists of one or more series of data points plotted on a
polar coordinate system delimited by a circular area. Each data point
position is determined by a pair of values, in the form (r,theta). The
first value(r) is a fraction of the radius of the circular area, and the
second value(theta) corresponds to the angle the data point forms with
the right horizontal radius, starting counterclockwise from the zero
degree position.
Among other things, a polar graph is often used to show the position of objects
with respect to the cardinal points on a polar coordinate system, where
the tips of the top, left, bottom and right radius correspond to the North,
West, South and East locations.
| Nested Class Summary |
| Nested classes inherited from class java.awt.Panel |
java.awt.Panel.AccessibleAWTPanel |
| Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
static int |
GRAPH_AREA
Constant used to clip the background area where an image can be painted or the gradient colors effect can be displayed. |
static int |
PARENT_AREA
Constant used to set the chart container bounds as the area where a background image can be painted or the gradient colors effect can be displayed. |
| 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 | |
PolarGraph()
Creates a PolarGraph object. |
|
| Method Summary | |
protected void |
finalize()
|
PolarGraphEventListener |
getPolarGraphEventListener()
Returns a reference to a PolarGraphEventListener object. |
PolarGrid |
getPolarGrid()
Returns a reference to the polar grid object. |
Scale |
getScale()
Returns a reference to the Scale object. |
XAxis |
getXAxis()
Returns a reference to the horizontal axis. |
YAxis |
getYAxis()
Returns a reference to the vertical axis. |
void |
paint(java.awt.Graphics gr)
Overrides the Component class paint() method to provide
gradient effect. |
void |
readXMLData(java.io.Reader reader)
Reads chart properties from an xml character stream. |
void |
setAngleOffset(int angleOffset)
Sets the angle offset. |
void |
setBackgroundImageArea(int backgroundImageArea)
Sets the area on which a background image is painted. |
void |
setCenteredImage(java.awt.Image centeredImage)
Sets an image to be displayed centered on the polar graph. |
void |
setGradientColorsArea(int gradientColorsArea)
Sets the area on which the gradient colors effect is displayed. |
void |
setHalfEnabled(boolean isHalfEnabled)
Enables/disables half chart. |
void |
setOuterTexts(java.lang.String[] outerTexts)
Sets the texts to be displayed around and outside the polar graph. |
void |
setOuterTextsBackground(java.awt.Color outerTextsBackground)
Sets the background color of opaque outer texts. |
void |
setOuterTextsDegrees(int[] outerTextsDegrees)
Sets the angles the outer texts form with the center of the polar graph. |
void |
setOuterTextsFont(java.awt.Font outerTextsFont)
Sets the font of the outer texts. |
void |
setOuterTextsForeground(java.awt.Color outerTextsForeground)
Sets the color of the outer texts. |
void |
setOuterTextsGap(int outerTextsGap)
Sets the gap between the outer texts and the outer circle of the polar grid. |
void |
setOuterTextsOpacityEnabled(boolean isOuterTextsOpacityEnabled)
Enables/disables the opacity of outer texts' backgrounds. |
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, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, 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, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int PARENT_AREA
public static final int GRAPH_AREA
| Constructor Detail |
public PolarGraph()
| Method Detail |
public void setHalfEnabled(boolean isHalfEnabled)
isHalfEnabled - A boolean value(true/false).public void setAngleOffset(int angleOffset)
angleOffset - public XAxis getXAxis()
XAxispublic YAxis getYAxis()
YAxispublic PolarGrid getPolarGrid()
PolarGridpublic Scale getScale()
Scalepublic void setOuterTexts(java.lang.String[] outerTexts)
setOuterTextsDegrees,
otherwise the outer texts are not displayed.
The text can be wrapped into two or more lines by inserting line-break
characters(\n).
outerTexts - An array of strings.setOuterTextsDegrees(int[])public void setOuterTextsDegrees(int[] outerTextsDegrees)
setOuterTexts are associated by their indexes,
so that the outer text with index 0 is assigned the degree
with index 0, and so on.
outerTextsDegrees - An array of integer values.setOuterTexts(java.lang.String[])public void setOuterTextsFont(java.awt.Font outerTextsFont)
outerTextsFont - A Font objectsetOuterTexts(java.lang.String[]),
setOuterTextsForeground(java.awt.Color)public void setOuterTextsForeground(java.awt.Color outerTextsForeground)
outerTextsForeground - A Color objectsetOuterTexts(java.lang.String[]),
setOuterTextsBackground(java.awt.Color),
setOuterTextsFont(java.awt.Font)public void setOuterTextsBackground(java.awt.Color outerTextsBackground)
outerTextsBackground - A Color objectsetOuterTextsForeground(java.awt.Color),
setOuterTexts(java.lang.String[]),
setOuterTextsOpacityEnabled(boolean)public void setOuterTextsOpacityEnabled(boolean isOuterTextsOpacityEnabled)
isOuterTextsOpacityEnabled - A boolean value(true/false)setOuterTexts(java.lang.String[]),
setOuterTextsBackground(java.awt.Color)public void setOuterTextsGap(int outerTextsGap)
outerTextsGap - An integer valuesetOuterTexts(java.lang.String[])public void setBackgroundImageArea(int backgroundImageArea)
backgroundImageArea - An integer value.PARENT_AREA,
GRAPH_AREApublic void setCenteredImage(java.awt.Image centeredImage)
centeredImage - An Image object.public void setGradientColorsArea(int gradientColorsArea)
gradientColorsArea - An integer value.PARENT_AREA,
GRAPH_AREApublic PolarGraphEventListener getPolarGraphEventListener()
PolarGraphEventListener
public void readXMLData(java.io.Reader reader)
throws java.io.IOException
GenericGraph
readXMLData in class GenericGraphreader - The reader from which to retrieve the XML data.
java.io.IOException - If an error occured while reading the input.AbstractSerie.getId()public void update(java.awt.Graphics gr)
update() method,
to avoid flickering.
gr - A Graphics object, where painting is done. This
object is automatically created by the AWT classes and passed
to the update() method, which in turn sends it
to the paint() method.paint(java.awt.Graphics)public void paint(java.awt.Graphics gr)
GradientPanelpaint() method to provide
gradient effect.
paint in class GradientPanelgr - A Graphics object.
protected void finalize()
throws java.lang.Throwable
finalize in class GenericGraphjava.lang.Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||