|
|||||||||
| 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
|
+--javax.swing.JComponent
|
+--net.sourceforge.chart2d.Chart2D
|
+--net.sourceforge.chart2d.GraphChart2D
|
+--net.sourceforge.chart2d.LLChart2D
One of Chart2D's three general chart types. An LLChart2D is a graph chart, with axes. The "LL" in LLChart2D stands for "Labels Left". "Labels Left" means that the category labels of the chart are along the left of the chart (ie the y axis). LLChart2D extends JComponent. It can be added to a content pane or it can be used to return a BufferedImage of a chart. Use setMaximumSize to specify the maximum preferred size of the chart. Use setMinimumSize to specify the minimum preferred size of the chart. Use setPreferredSize to specify a preferred size of the chart; otherwise a preferred size will be calculated for the chart. The preferred size is the size at which all the chart's components are at their "model size" (ie no magnification at this size). So, if you have multiple charts in your GUI, and you want them to all have similar magnification ratios, then you should set all the charts to a common custom preferred size.
| Inner classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent, javax.swing.JComponent.ActionStandin, javax.swing.JComponent.IntVector, javax.swing.JComponent.KeyboardState |
| Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.AWTTreeLock |
| Field Summary | |
static java.awt.Dimension |
MAX_SIZE_DEFAULT
The default is Dimension (1024, 768). |
static java.awt.Dimension |
MIN_SIZE_DEFAULT
The default is Dimension (188, 250). |
| Fields inherited from class javax.swing.JComponent |
_bounds, accessibleContext, listenerList, paintingChild, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Container |
component, containerListener, layoutMgr, listeningBoundsChildren, listeningChildren, ncomponents |
| Fields inherited from class java.awt.Component |
actionListenerK, adjustmentListenerK, appContext, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, componentListener, componentListenerK, componentOrientation, containerListenerK, cursor, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, graphicsConfig, hasFocus, height, hierarchyBoundsListener, hierarchyBoundsListenerK, hierarchyListener, hierarchyListenerK, incRate, inputMethodListener, inputMethodListenerK, isInc, isPacked, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, metrics, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, newEventsOnly, ownedWindowK, parent, peer, peerFont, popups, prefSize, RIGHT_ALIGNMENT, textListenerK, TOP_ALIGNMENT, valid, visible, width, windowClosingException, windowListenerK, x, y |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
LLChart2D()
Creates a default LLChart2D object with a default GraphChart2DProperties object. |
|
LLChart2D(GraphChart2DProperties graphChart2DProps)
Creates a default LLChart2D object with the given GraphChart2DProperties object. |
|
| Method Summary | |
(package private) ChartArea |
getChartArea()
Returns the ChartArea of this LLChart2D. |
GraphChart2DProperties |
getGraphChart2DProperties()
Returns the GraphChart2DProperties of this chart. |
(package private) GraphChartArea |
getGraphChartArea()
Returns the GraphChartArea of this LLChart2D. |
java.awt.image.BufferedImage |
getImage()
Returns a buffered image of the chart. |
float |
getNumbersAxisRangeHigh()
Returns the value of the high label of the numbers axis. |
float |
getNumbersAxisRangeLow()
Returns the value of the low label of the numbers axis. |
java.awt.Dimension |
getPreferredSize()
Returns the preferred size of the chart. |
void |
pack()
Causes the chart to set itself to its preferred size. |
void |
paintComponent(java.awt.Graphics g)
Paints the chart. |
void |
setGraphChart2DProperties(GraphChart2DProperties graphChart2DProps)
Specifies the new GraphChart2DProperties for the chart. |
void |
setPreferredSize(java.awt.Dimension size)
Specifies a custom preferred size for the chart. |
| Methods inherited from class javax.swing.JComponent |
_paintImmediately, |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, adjustListeningChildren, applyOrientation, checkGD, countComponents, createChildHierarchyEvents, createHierarchyEvents, deliverEvent, dispatchEventImpl, dispatchEventToSelf, doLayout, eventEnabled, findComponentAt, findComponentAt, findComponentAt, getAccessibleAt, getAccessibleChild, getAccessibleChildrenCount, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents_NoClientCode, getComponents, getLayout, getMouseEventTarget, getWindow, insets, invalidate, invalidateTree, isAncestorOf, layout, lightweightPaint, lightweightPrint, list, list, locate, minimumSize, nextFocus, numListening, paintComponents, paintHeavyweightComponents, postProcessKeyEvent, postsOldMouseEvents, preferredSize, preProcessKeyEvent, printComponents, printHeavyweightComponents, processContainerEvent, processEvent, proxyEnableEvents, proxyRequestFocus, remove, remove, removeAll, removeContainerListener, setFocusOwner, setLayout, transferFocus, validate, validateTree |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, areInputMethodsEnabled, bounds, checkImage, checkImage, checkWindowClosingException, coalesceEvents, constructComponentName, contains, createImage, createImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getAccessibleIndexInParent, getAccessibleStateSet, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen_NoTreeLock, getLocationOnScreen, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getSize, getToolkit, getToolkitImpl, getTreeLock, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, isEnabledImpl, isLightweight, isRecursivelyVisible, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resetGC, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static java.awt.Dimension MAX_SIZE_DEFAULT
public static java.awt.Dimension MIN_SIZE_DEFAULT
| Constructor Detail |
public LLChart2D()
public LLChart2D(GraphChart2DProperties graphChart2DProps)
graphChart2DProps - The GraphChart2DProperties for this chart.| Method Detail |
public void setPreferredSize(java.awt.Dimension size)
setPreferredSize in class Chart2Dsize - The custom preferred size for this chart.public void setGraphChart2DProperties(GraphChart2DProperties graphChart2DProps)
setGraphChart2DProperties in class GraphChart2DgraphChart2DProps - The new GraphChart2DProperties.public GraphChart2DProperties getGraphChart2DProperties()
getGraphChart2DProperties in class GraphChart2Dpublic java.awt.image.BufferedImage getImage()
getImage in class Chart2Dpublic java.awt.Dimension getPreferredSize()
getPreferredSize in class Chart2Dpublic float getNumbersAxisRangeHigh()
getNumbersAxisRangeHigh in class GraphChart2Dpublic float getNumbersAxisRangeLow()
getNumbersAxisRangeLow in class GraphChart2Dpublic void pack()
pack in class Chart2Dpublic void paintComponent(java.awt.Graphics g)
paintComponent in class javax.swing.JComponentg - The graphics context for calculations and painting.ChartArea getChartArea()
getChartArea in class Chart2DGraphChartArea getGraphChartArea()
getGraphChartArea in class GraphChart2D
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||