|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--com.klg.jclass.chart.ChartRegion | +--com.klg.jclass.chart.JCChartArea
Class controlling the charting region in the Chart
instance. JCChartArea
handles rendering
of the charts by using JCAxis
and ChartDataView
object instances to determine how data is plotted.
A single JCChartArea
can plot several
ChartDataView
objects against a number of axes.
JCChartArea
is a Swing-based component and should behave accordingly.
It is transparent by default, meaning that the Opaque
property must
be set to true
if any background color is to be drawn.
Nested Class Summary |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
protected int |
angleUnit
|
protected boolean |
axisBoundingBox
|
protected boolean |
axisDrawOkay
|
Hashtable |
axisHashtable
Hash table containing axes. |
protected Rectangle |
backplane
|
protected Rectangle |
chartAreaRect
|
int |
deltaX
|
int |
deltaY
|
protected int |
depth
|
boolean |
draw3D
|
protected int |
elevation
|
static String |
ERRMSG_INVALID_XAXIS_INDEX
Error message for invalid x axis index. |
static String |
ERRMSG_INVALID_YAXIS_INDEX
Error message for invalid y axis index. |
protected boolean |
fastAction
|
protected com.klg.jclass.chart.ActionHandler |
handler
|
boolean |
hasBar
|
protected com.klg.jclass.chart.JCAxis |
horizActionAxis
|
protected com.klg.jclass.util.ImageMapInfo |
imageMapInfo
The image map information for the JCChartArea . |
protected boolean |
inAction
|
protected boolean |
inSuperReshape
|
protected static int |
INVALID_INDEX
|
protected Point |
last
|
static int |
MAX_DEPTH
Maximum depth value. |
static int |
MAX_ELEVATION
Maximum elevation value. |
static int |
MAX_ROTATION
Maximum rotation value. |
boolean |
pieFirst
|
Rectangle |
plotRect
|
protected com.klg.jclass.chart.PolarAxisParams |
polarChartParams
|
boolean |
polarFirst
|
boolean |
radarFirst
|
protected Graphics |
rbGC
Non-property public methods. |
protected int |
rotation
|
protected boolean |
saveDBState
|
protected int |
symbolPad
|
protected com.klg.jclass.chart.JCAxis |
vertActionAxis
|
protected Vector |
xaxes
|
protected Vector |
yaxes
|
Fields inherited from class com.klg.jclass.chart.ChartRegion |
cellRendererPane, changed, changedFlag, preferredSize, updateParent |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface com.klg.jclass.chart.Changeable |
BASIC_CHANGE_MASK, NOTIFY_AXES_RECALC, NOTIFY_AXES_REDRAW, NOTIFY_CA_RECALC, NOTIFY_CA_REDRAW, NOTIFY_LEGEND_RECALC, NOTIFY_LEGEND_REDRAW |
Fields inherited from interface com.klg.jclass.util.Changeable |
LAYOUT, NO_CHANGE, NOTIFY_PARENT_LAYOUT, RECALC, REDRAW |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
JCChartArea()
Constructs a chart area for the provided chart. |
|
JCChartArea(Locale locale)
|
Method Summary | |
protected void |
adjustForPolarAnnoExtents(com.klg.jclass.chart.JCAxis ax,
com.klg.jclass.chart.Deltas chartDeltas)
Applies delta values to the center coordinates and radius of a Polar or Radar chart. Called in layoutChartArea() to keep the axis annotations within view. |
protected void |
calcAnchors(List axes)
Calculates the annotation anchor positions for the provided axis objects. |
protected void |
calcLimits()
Calculates the data limits and axis limits. |
protected void |
cancel()
Performs a cancel operation. |
protected void |
checkAxisVertical()
Can't have inverted axes for Polar/Radar charts. |
protected void |
clearDrawables()
Sets the drawable to null and resets hashtable. |
protected void |
clearLimits()
Clears the data limits. |
void |
drawRubberBand(Point p,
Point start)
Method that draws a rubber band rectangle from the point in "start" to the provided point. |
void |
drawRubberLine(Point start,
Point end)
Method used to draw a rubber band line on the chart area. |
com.klg.jclass.chart.JCAxis |
findAxisByName(String axisName)
Finds an axis by searching for it using the specified name. |
protected com.klg.jclass.chart.JCAxis |
findAxisByName(String axisName,
boolean x)
Searches for the axis with the specified name. |
com.klg.jclass.chart.ActionHandler |
getActionHandler()
Gets the action handler for this chart area. |
int |
getAngleUnit()
Gets the value of the AngleUnit property. |
boolean |
getAxisBoundingBox()
Gets the value of the AxisBoundingBox property. |
protected int |
getBiggestSymbolSize()
Finds the biggest symbols size of all data views to be drawn in this chart area. |
boolean |
getChanged()
Gets the value of the Changed property. |
Rectangle |
getChartAreaRect()
Returns the current Rectangle representing the chart area. |
protected com.klg.jclass.chart.ChartDataView |
getDataView(int index)
|
protected Iterator |
getDataViews()
|
int |
getDeltaX()
Gets the value of the DeltaX property. |
int |
getDeltaY()
Gets the value of the DeltaY property. |
int |
getDepth()
Gets the Depth property, which controls the apparent depth of a
graph. |
boolean |
getDraw3D()
Gets the value of the Draw3D property, which determines whether
the chart area will attempt to draw chart types as 3D chart types. |
com.klg.jclass.chart.ChartDraw |
getDrawable(com.klg.jclass.chart.ChartDataView dataObject)
Given a data view object, finds the corresponding drawable. |
int |
getElevation()
Gets the Elevation property, which controls distance above
the x axis for the 3D effect. |
boolean |
getFastAction()
Gets the value of the FastAction property. |
protected com.klg.jclass.chart.ChartDataView |
getFirstVisibleDataView()
This method returns the first visible data view. |
Graphics |
getGraphics()
Overrides parent getGraphics() . |
boolean |
getHasBar()
Gets the value of the HasBar property. |
com.klg.jclass.chart.JCAxis |
getHorizActionAxis()
Gets the value of the HorizActionAxis property. |
com.klg.jclass.util.ImageMapInfo |
getImageMapInfo()
Retrieve the image map information for this JCChartArea . |
boolean |
getInAction()
Gets the value of the InAction property, which is a flag that
determines whether an action is in process. |
Dimension |
getMinimumSize()
Returns the minimum size for the chart area. |
com.klg.jclass.chart.PlotArea |
getPlotArea()
Gets the value of the PlotArea property, which represents the
region of the ChartArea that is inside the axes. |
Rectangle |
getPlotRect()
Returns the current Rectangle representing the plotting region in chart area. |
protected void |
getPolarChartDeltas(com.klg.jclass.chart.ChartDataView dv,
com.klg.jclass.chart.Deltas chartDeltas)
Computes size and position offsets needed to keep the axis annotations of a Polar or Radar chart in view. |
Dimension |
getPreferredSize()
Returns the preferred size for the chart area. |
int |
getRotation()
Gets the Rotation property, which controls the position of
the eye relative to the y axis for the 3D effect. |
com.klg.jclass.chart.JCAxis |
getVertActionAxis()
Gets the value of the VertActionAxis property. |
List |
getXAxes()
Gets the value of the XAxes property. |
com.klg.jclass.chart.JCAxis |
getXAxis(int index)
Gets the value of the XAxis property at a specified
index. |
List |
getYAxes()
Gets the value of the YAxes property. |
com.klg.jclass.chart.JCAxis |
getYAxis(int index)
Gets the value of the YAxis property at a specified
index. |
protected boolean |
hasMatchingDrawable(com.klg.jclass.chart.ChartDataView dataObject)
Checks to see if the specified ChartDataView object has a
Drawable. |
boolean |
isDirty()
Determines if the data is "dirty" (that is, if the data has changed since the last redisplay). |
protected boolean |
isPolar()
|
protected boolean |
isPolarRadar()
|
protected boolean |
isRadar()
|
protected boolean |
isWebShaped(com.klg.jclass.chart.JCAxis ax)
|
protected void |
layoutAnnotations(List axes)
Layout annotation for the given axes list. |
void |
layoutChartArea()
Positions axes and calculates the true plot area size based on the position of the axes. |
void |
paintComponent(Graphics gc)
Renders the JCChartArea contents. |
protected com.klg.jclass.chart.JCDataIndex |
pick(Point p,
com.klg.jclass.chart.ChartDataView data,
int focus)
Chooses the point closest to the provided position. |
protected void |
printErrorMessages(String text1,
String text2,
String[] messages)
|
void |
recalc()
If necessary, forces recalculation of the chart area. |
protected void |
removeDrawable(com.klg.jclass.chart.ChartDataView dataObject)
Removes the Drawable created for the specified ChartDataView object. |
void |
repaint()
Overrides the superclass's method in order to avoid repaint if super.setBounds() is called. |
protected void |
reset()
Performs a reset operation. |
void |
setAngleUnit(int unit)
Sets the value of the AngleUnit property. |
void |
setAxisBoundingBox(boolean bb)
Sets the value of the AxisBoundingBox property. |
void |
setBackground(Color bg)
Overrides setBackground to make sure entire chart is redrawn if
background is set on this subcomponent.Note that the Opaque property needs to be set to true for
the background color to be visible. |
void |
setBounds(int x,
int y,
int w,
int h)
An overridden setBounds() method, which makes sure that
the Changed property is set and that a recalc occurs as a result of the
reshape. |
void |
setChanged(boolean n,
int cf)
Sets the value of the Changed property. |
void |
setDeltaX(int dx)
Sets the value of the DeltaX property. |
void |
setDeltaY(int dy)
Sets the value of the DeltaY property. |
void |
setDepth(int newDepth)
Sets the Depth property, which controls the apparent depth of a
graph. |
void |
setElevation(int newElevation)
Sets the Elevation property, which controls distance above
the x axis for the 3D effect. |
void |
setFastAction(boolean fr)
Sets the value of the FastAction property. |
void |
setForeground(Color c)
Overrides setForeground to make sure legend is marked for redraw. |
void |
setGraphics(Graphics g)
Provides a way for the chart area to draw to a custom Graphics object. |
void |
setHorizActionAxis(com.klg.jclass.chart.JCAxis ax)
Sets the value of the HorizActionAxis property. |
void |
setImageMapInfo(com.klg.jclass.util.ImageMapInfo imageMapInfo)
Set the image map information for this JCChartArea . |
void |
setInAction(boolean ia)
Sets the value of the InAction property, which
is a flag that determines whether an action is in process. |
void |
setOpaque(boolean op)
Overrides setOpaque to make sure entire chart is redrawn if
opacity is set on this subcomponent. |
protected void |
setParentOnAxes(com.klg.jclass.chart.JCChart chart)
Sets the parent chart for all children axes. |
void |
setRotation(int newRotation)
Sets the Rotation property, which controls the position of
the eye relative to the y axis for the 3D effect. |
void |
setVertActionAxis(com.klg.jclass.chart.JCAxis ax)
Sets the value of the VertActionAxis property. |
void |
setXAxes(List ax)
Sets the value of the XAxes property. |
void |
setXAxis(int index,
com.klg.jclass.chart.JCAxis ax)
Sets the value of the XAxis property at a specified
index. |
void |
setYAxes(List ay)
Sets the value of the YAxes property. |
void |
setYAxis(int index,
com.klg.jclass.chart.JCAxis ax)
Sets the value of the YAxis property at a specified
index. |
Methods inherited from class com.klg.jclass.chart.ChartRegion |
getCellRendererPane, getChanged, getDrawingArea, getDrawingArea, isBatched, isChanged, isChanged, setChanged, setPreferredSize, updateParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int MAX_ELEVATION
public static final int MAX_ROTATION
public static final int MAX_DEPTH
public static final String ERRMSG_INVALID_XAXIS_INDEX
public static final String ERRMSG_INVALID_YAXIS_INDEX
protected static final int INVALID_INDEX
protected Vector xaxes
protected Vector yaxes
protected int angleUnit
protected com.klg.jclass.chart.JCAxis horizActionAxis
protected com.klg.jclass.chart.JCAxis vertActionAxis
protected boolean axisBoundingBox
protected boolean fastAction
protected boolean inAction
protected int depth
protected int elevation
protected int rotation
protected com.klg.jclass.util.ImageMapInfo imageMapInfo
JCChartArea
.
public transient Hashtable axisHashtable
protected Rectangle chartAreaRect
public Rectangle plotRect
protected com.klg.jclass.chart.PolarAxisParams polarChartParams
public int deltaX
public int deltaY
public boolean draw3D
public boolean hasBar
protected boolean axisDrawOkay
public boolean pieFirst
public boolean polarFirst
public boolean radarFirst
protected Rectangle backplane
protected int symbolPad
protected transient com.klg.jclass.chart.ActionHandler handler
protected transient boolean saveDBState
protected Graphics rbGC
protected Point last
protected boolean inSuperReshape
Constructor Detail |
public JCChartArea()
public JCChartArea(Locale locale)
Method Detail |
protected void setParentOnAxes(com.klg.jclass.chart.JCChart chart)
addNotify
, but the axes (especially in the beans) need to know their
parent chart before addNotify()
is finally called. Hence, this is now
called manually in JCChartArea
immediately following an add.
chart
- the parent JCChart
instancepublic void setForeground(Color c)
setForeground
to make sure legend is marked for redraw.
(Needed for outline color of swatches, which is derived from
ChartArea
.)
setForeground
in class JComponent
c
- the new foreground colorpublic void setBackground(Color bg)
setBackground
to make sure entire chart is redrawn if
background is set on this subcomponent.Opaque
property needs to be set to true
for
the background color to be visible. JCChartArea
is transparent by
default.
setBackground
in class JComponent
bg
- the new background colorpublic void setOpaque(boolean op)
setOpaque
to make sure entire chart is redrawn if
opacity is set on this subcomponent.
setOpaque
in class JComponent
op
- the new value of the opaque
propertypublic int getAngleUnit()
AngleUnit
property. The AngleUnit
property
determines the unit of all angle values in this chart area --
one of DEGREES
, RADIANS
, or GRADS
.
public void setAngleUnit(int unit)
AngleUnit
property. The AngleUnit
property
determines the unit of all angle values in this chart area --
one of DEGREES
, RADIANS
, or GRADS
.
unit
- unit value
IllegalArgumentException
- If the unit isn't one of
DEGREES
, RADIANS
, or GRADS
.public com.klg.jclass.chart.JCAxis getXAxis(int index)
XAxis
property at a specified
index. The XAxis
property is an indexed property, and
contains all the x axes for the chart area.
index
- index of the JCAxis
object
JCAxis
object at the specified indexpublic void setXAxis(int index, com.klg.jclass.chart.JCAxis ax)
XAxis
property at a specified
index. The XAxis
property is an indexed property, and
contains all the x axes for the chart area.
index
- index of the JCAxis
objectax
- JCAxis
object to place at the specified index
IllegalArgumentException
- If the index does not address
a valid x axis object.public void setXAxes(List ax)
XAxes
property.
The XAxes
property is a collection of all the
x axes for the chart area.
ax
- collection of JCAxis
objects to be used for the x axescom.sun.java.util
class.public List getXAxes()
XAxes
property.
The XAxes
property is a collection of all the
x axes for the chart area.
JCAxis
objects to be used for the
x axescom.sun.java.util
class.public com.klg.jclass.chart.JCAxis getYAxis(int index)
YAxis
property at a specified
index. The YAxis
property is an indexed property, and
contains all the y axes for the chart area.
index
- index of the JCAxis
object
JCAxis
object at the specified indexpublic void setYAxis(int index, com.klg.jclass.chart.JCAxis ax)
YAxis
property at a specified
index. The YAxis
property is an indexed property, and
contains all the y axes for the chart area.
index
- index of the JCAxis
objectax
- JCAxis
object to place at the specified index
IllegalArgumentException
- If the index does not address
a valid y axis object.public void setYAxes(List ay)
YAxes
property.
The YAxes
property is a collection of all the
y axes for the chart area.
ay
- collection of JCAxis
objects to be used for the
y axescom.sun.java.util
class.public List getYAxes()
YAxes
property.
The YAxes
property is a collection of all the
y axes for the chart area.
JCAxis
objects to be used for the
y axescom.sun.java.util
class.public void setHorizActionAxis(com.klg.jclass.chart.JCAxis ax)
HorizActionAxis
property. The
HorizActionAxis
property determines the axis used for actions
(zooming, translating) in the horizontal direction.
ax
- JCAxis
object to use for chart actions in the
horizontal direction
IllegalArgumentException
- If the provided axis is vertical or
if it isn't in the list of x or y axes.public com.klg.jclass.chart.JCAxis getHorizActionAxis()
HorizActionAxis
property. The
HorizActionAxis
property determines the axis used for actions
(zooming, translating) in the horizontal direction.
JCAxis
object to use for chart actions in the horizontal
directionpublic void setVertActionAxis(com.klg.jclass.chart.JCAxis ax)
VertActionAxis
property. The
VertActionAxis
property determines the axis used for actions
(zooming, translating) in the vertical direction.
ax
- JCAxis
object to use for chart actions in the vertical
direction
IllegalArgumentException
- If the provided axis is horizontal or
if it isn't in the list of x or y axes.public com.klg.jclass.chart.JCAxis getVertActionAxis()
VertActionAxis
property. The
VertActionAxis
property determines the axis used for actions
(zooming, translating) in the horizontal direction.
JCAxis
object to use for chart actions in the vertical
directionpublic void setAxisBoundingBox(boolean bb)
AxisBoundingBox
property. The
AxisBoundingBox
property determines whether a box is drawn
around the area bound by the inner axes.
bb
- if true
, bounding box is drawn; otherwise, box is not
drawnPlotArea.setForeground(java.awt.Color)
public boolean getAxisBoundingBox()
AxisBoundingBox
property. The
AxisBoundingBox
property determines whether a box is drawn
around the area bound by the inner axes.
true
, bounding box is drawn; otherwise, box is not
drawn.public boolean getFastAction()
FastAction
property.
The FastAction
property determines whether chart actions will
use an optimized mode in which it does not bother to display axis
annotations or gridlines.
true
if gridlines and axis annotations will be absent
during the action; otherwise, false
public void setFastAction(boolean fr)
FastAction
property.
The FastAction
property determines whether chart actions will
use an optimized mode in which it does not bother to display axis
annotations or gridlines.
fr
- true
if gridlines and axis annotations will be absent
during the action; otherwise, false
public int getDepth()
Depth
property, which controls the apparent depth of a
graph.
public void setDepth(int newDepth)
Depth
property, which controls the apparent depth of a
graph.
newDepth
- the depth as a percentage of the width; valid values
are 0 - 500public int getElevation()
Elevation
property, which controls distance above
the x axis for the 3D effect.
public void setElevation(int newElevation)
Elevation
property, which controls distance above
the x axis for the 3D effect.
newElevation
- the number of degrees above the x axis;
valid values are between -45 and 45public int getRotation()
Rotation
property, which controls the position of
the eye relative to the y axis for the 3D effect.
public void setRotation(int newRotation)
Rotation
property, which controls the position of
the eye relative to the y axis for the 3D effect.
newRotation
- the number of degrees to the right of the Y-axis;
valid values are between -45 and 45public com.klg.jclass.util.ImageMapInfo getImageMapInfo()
JCChartArea
.
public void setImageMapInfo(com.klg.jclass.util.ImageMapInfo imageMapInfo)
JCChartArea
.
imageMapInfo
- The new image map information.public boolean getChanged()
Changed
property.
The Changed
property determines whether the chart area requires
a recalculation.
getChanged
in interface Changeable
getChanged
in class ChartRegion
public void setChanged(boolean n, int cf)
Changed
property.
The Changed
property determines whether the chart area requires
a recalculation.
setChanged
in interface Changeable
setChanged
in class ChartRegion
n
- boolean value of the Changed
propertycf
- the changed flag to add inpublic com.klg.jclass.chart.PlotArea getPlotArea()
PlotArea
property, which represents the
region of the ChartArea
that is inside the axes.
protected void printErrorMessages(String text1, String text2, String[] messages)
public void paintComponent(Graphics gc)
JCChartArea
contents.
paintComponent
in class ChartRegion
gc
- graphics context used for drawingpublic Dimension getPreferredSize()
getPreferredSize
in class ChartRegion
public Dimension getMinimumSize()
getMinimumSize
in class JComponent
protected void checkAxisVertical()
public void recalc()
public void layoutChartArea()
protected void adjustForPolarAnnoExtents(com.klg.jclass.chart.JCAxis ax, com.klg.jclass.chart.Deltas chartDeltas)
layoutChartArea()
to keep the axis annotations within view.
ax
- the axis to which this applieschartDeltas
- object containing delta values to be appliedprotected Iterator getDataViews()
protected com.klg.jclass.chart.ChartDataView getFirstVisibleDataView()
protected com.klg.jclass.chart.ChartDataView getDataView(int index)
protected boolean isPolar()
protected boolean isRadar()
protected boolean isPolarRadar()
protected void getPolarChartDeltas(com.klg.jclass.chart.ChartDataView dv, com.klg.jclass.chart.Deltas chartDeltas)
dv
- a ChartDataView
objectchartDeltas
- object to contain the x, y, and radius delta valuesprotected boolean isWebShaped(com.klg.jclass.chart.JCAxis ax)
protected int getBiggestSymbolSize()
public boolean isDirty()
true
, the data has changed; if false
, the data has
not changed. Takes all ChartDataView
objects into account.public void setBounds(int x, int y, int w, int h)
setBounds()
method, which makes sure that
the Changed
property is set and that a recalc occurs as a result of the
reshape. This overridden reshape doesn't do a repaint()
;
it is up to the caller to make a proper repaint call so that all of the
chart children get redrawn in the correct order.
setBounds
in class Component
x
- the new x-coordinate of this componenty
- the new y-coordinate of this componentw
- the new width
of this componenth
- the new height
of this componentpublic void repaint()
super.setBounds()
is called.
repaint
in class Component
public int getDeltaX()
DeltaX
property.
The DeltaX
property controls the shift in the x direction
to create the 3D effect in 3D chart types. It is derived
from elevation, rotation, and depth, and should only be
set by drawables and other internal classes that need
to modify the delta in certain cases.
public void setDeltaX(int dx)
DeltaX
property.
The DeltaX
property controls the shift in the x direction
to create the 3D effect in 3D chart types. It is derived
from elevation, rotation, and depth, and should only be
set by drawables and other internal classes that need
to modify the delta in certain cases.
dx
- number of pixels to shift in the x directionpublic int getDeltaY()
DeltaY
property.
The DeltaY
property controls the shift in the y direction
to create the 3D effect in 3D chart types. It is derived
from elevation, rotation, and depth, and should only be
set by drawables and other internal classes that need
to modify the delta in certain cases.
public void setDeltaY(int dy)
DeltaY
property.
The DeltaY
property controls the shift in the y direction
to create the 3D effect in 3D chart types. It is derived
from elevation, rotation, and depth, and should only be
set by drawables and other internal classes that need
to modify the delta in certain cases.
dy
- number of pixels to shift in the y directionpublic boolean getDraw3D()
Draw3D
property, which determines whether
the chart area will attempt to draw chart types as 3D chart types.
true
if 3D drawing will be attemptedpublic boolean getHasBar()
HasBar
property.
The HasBar
property determines whether the chart
area includes a bar chart (bar or stacking bar).
true
if the chart area includes a bar chart typepublic Rectangle getPlotRect()
public Rectangle getChartAreaRect()
getDrawingArea()
.
public com.klg.jclass.chart.ActionHandler getActionHandler()
public boolean getInAction()
InAction
property, which is a flag that
determines whether an action is in process.
public void setInAction(boolean ia)
InAction
property, which
is a flag that determines whether an action is in process.
ia
- if set to true
, an action is now in processpublic com.klg.jclass.chart.JCAxis findAxisByName(String axisName)
axisName
- the name to search for
JCAxis
instance, or null
if no
matching axis is found.protected com.klg.jclass.chart.JCAxis findAxisByName(String axisName, boolean x)
axisName
- the name of the axis to search forx
- if true
, will search the x axis list; if
false
, will search the y axis list
null
if none is foundprotected void layoutAnnotations(List axes)
axes
- the list of axes for which to layout annotationsprotected void removeDrawable(com.klg.jclass.chart.ChartDataView dataObject)
ChartDataView
object.
dataObject
- ChartDataView
object for which the Drawable is to be
removedprotected void clearDrawables()
null
and resets hashtable.
protected boolean hasMatchingDrawable(com.klg.jclass.chart.ChartDataView dataObject)
ChartDataView
object has a
Drawable.
dataObject
- ChartDataView
object to check
true
, a Drawable exists for the
dataObject
; if false
, no
Drawable exists for the dataObject
public com.klg.jclass.chart.ChartDraw getDrawable(com.klg.jclass.chart.ChartDataView dataObject)
dataObject
- data view object
protected void calcAnchors(List axes)
axes
- vector of axis objectsprotected void calcLimits()
protected void clearLimits()
protected void cancel()
protected void reset()
public void drawRubberBand(Point p, Point start)
p
- coordinates to use as the end point for the rectanglestart
- the start pointpublic void drawRubberLine(Point start, Point end)
start
- the start point of the lineend
- the end point of the lineprotected com.klg.jclass.chart.JCDataIndex pick(Point p, com.klg.jclass.chart.ChartDataView data, int focus)
p
- pick point in pixels relative to JCChartArea
objectdata
- data view on which to perform pick. If null
,
all data views are used.focus
- pick focus used to determine distance between point
and data point. If equal to ChartDataView.PICK_FOCUS_LOCAL
, the
pick focus specified in the appropriate ChartDataView
object
will be used.
JCDataIndex
object representing the picked point.public Graphics getGraphics()
getGraphics()
. If another Graphics
object has been
set to be the current one, it is returned; otherwise, the superclass's
getGraphics()
method is called.
getGraphics
in class JComponent
Graphics
object to use to draw this chart areapublic void setGraphics(Graphics g)
Graphics
object.
Call with null
to specify use of the default Graphics
object used
to draw to the screen.
g
- Graphics
object to use for drawing
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |