Package | Description |
---|---|
info.monitorenter.gui.chart |
The core package for jchart2d.
|
info.monitorenter.gui.chart.axis |
Contains
IAxis implementations
of jchart2d that model the axis of the chart. |
info.monitorenter.gui.chart.axis.scalepolicy | |
info.monitorenter.gui.chart.axistitlepainters |
Contains
IAxisTitlePainter implementations
of jchart2d that model the title painter of the axis of the chart. |
info.monitorenter.gui.chart.labelformatters |
Contains
IAxisLabelFormatter implementations
of jchart2d that are used to format the labels on the axis of the chart. |
info.monitorenter.gui.util |
Unused package intended for automatic color choosing with the visually most
different colors.
|
Modifier and Type | Method and Description |
---|---|
IAxis<?>[] |
Chart2D.findAxesOfTrace(ITrace2D trace)
Returns an array with the x (position 0) and the y axis (position 1) of the
given trace if it is correctly set up.
|
IAxis<?> |
Chart2D.getAxisX()
Returns the first axis in the x dimension or
null if no x-axis
is present. |
IAxis<?> |
Chart2D.getAxisX(ITrace2D trace)
Returns the x axis that the given trace belongs to or null if this trace
does not belong to any x axis of this chart.
|
IAxis<?> |
Chart2D.getAxisY()
Returns the first axis in the y dimension or
null if no y-axis
is present. |
IAxis<?> |
Chart2D.getAxisY(ITrace2D trace)
Returns the y axis that the given trace belongs to or null if this trace
does not belong to any y axis of this chart.
|
IAxis<?> |
Chart2D.setAxisXBottom(AAxis<?> axisX,
int position)
Sets the bottom x axis on the given position to use and replaces the old
one on that place.
|
IAxis<?> |
Chart2D.setAxisXTop(AAxis<?> axisX,
int position)
Sets the top x axis on the given position to use and replaces the old one
on that place.
|
IAxis<?> |
Chart2D.setAxisYLeft(AAxis<?> axisY,
int position)
Sets the left y axis on the given position to use and replaces the old one
on that place.
|
IAxis<?> |
Chart2D.setAxisYRight(AAxis<?> axisY,
int position)
Sets the right y axis on the given position to use and replaces the old one
on that place.
|
Modifier and Type | Method and Description |
---|---|
List<IAxis<?>> |
Chart2D.getAxes()
|
List<IAxis<?>> |
Chart2D.getAxesXBottom()
|
List<IAxis<?>> |
Chart2D.getAxesXTop()
|
List<IAxis<?>> |
Chart2D.getAxesYLeft()
|
List<IAxis<?>> |
Chart2D.getAxesYRight()
|
List<IAxis<?>> |
Chart2D.setAxisX(AAxis<?> axisX)
Deprecated.
use
instead. |
List<IAxis<?>> |
Chart2D.setAxisY(AAxis<?> axisY)
Deprecated.
use
instead. |
Modifier and Type | Method and Description |
---|---|
void |
Chart2D.addTrace(ITrace2D points,
IAxis<?> xAxis,
IAxis<?> yAxis)
Adds the trace to this chart with relation to the given x axis and y axis.
|
void |
Chart2D.addTrace(ITrace2D points,
IAxis<?> xAxis,
IAxis<?> yAxis)
Adds the trace to this chart with relation to the given x axis and y axis.
|
int |
IAxisTitlePainter.getHeight(IAxis<?> axis,
Graphics2D g2d)
Returns the height of this axis title in px with respect to the current
title of the given axis title.
|
int |
IAxis.AxisTitle.getHeight(IAxis<?> axis,
Graphics2D g2d)
Returns the height of this axis title in px with respect to the current
title of the given axis.
|
List<LabeledValue> |
IAxisScalePolicy.getScaleValues(Graphics2D g2d,
IAxis<?> axis)
Returns the array of labeled values that will be used by the
to paint labels. |
int |
IAxisTitlePainter.getWidth(IAxis<?> axis,
Graphics2D g2d)
Returns the width of this axis title in px with respect to the current
title of the given axis.
|
int |
IAxis.AxisTitle.getWidth(IAxis<?> axis,
Graphics2D g2d)
Returns the width of this axis title in px with respect to the current
title of the given axis.
|
void |
IAxisScalePolicy.initPaintIteration(IAxis<?> axis)
Performs expensive calculations for various values that are used by many
calls throughout a paint iterations.
|
void |
IAxisTitlePainter.paintTitle(IAxis<?> axis,
Graphics2D g)
Invoked to let implementations paint the given title of the given axis.
|
boolean |
Chart2D.removeAxisXBottom(IAxis<?> axisX)
Removes the given x axis from the list of internal bottom x axes.
|
boolean |
Chart2D.removeAxisXTop(IAxis<?> axisX)
Removes the given x axis from the list of internal top x axes.
|
boolean |
Chart2D.removeAxisYLeft(IAxis<?> axisY)
Removes the given y axis from the list of internal left y axes.
|
boolean |
Chart2D.removeAxisYRight(IAxis<?> axisY)
Removes the given y axis from the list of internal right y axes.
|
void |
IAxisLabelFormatter.setAxis(IAxis<?> axis)
Allows the
AAxis to register
itself with the given formatter so that it may get information about the
data (e.g. |
void |
ZoomableChart.zoom(IAxis<?> axis,
double startP,
double endP)
Zooms the axis to the pixel value of start and end points.
|
Modifier and Type | Class and Description |
---|---|
class |
AAxis<T extends IAxisScalePolicy>
The base class for an axis of the
. |
class |
AAxisTransformation<T extends AxisScalePolicyTransformation>
Base class for Axis implementations that transform the scale for changed
display.
|
class |
AxisInverse<T extends IAxisScalePolicy>
An
AAxis with inverse display of values. |
class |
AxisLinear<T extends IAxisScalePolicy>
An
with linear display of values. |
class |
AxisLog10<T extends AxisScalePolicyTransformation>
An
AAxis with log base 10 scaled
display of values. |
class |
AxisLogE<T extends AxisScalePolicyTransformation>
An
AAxis with log scaled display of
values. |
Modifier and Type | Method and Description |
---|---|
protected LabeledValue |
AxisScalePolicyManualTicks.createLabeledValue(double value,
double majorTickSpacing,
IAxis<?> axis)
Just a helper to create a labeled value instance.
|
protected List<LabeledValue> |
AxisScalePolicyAutomaticBestFit.getLabels(double resolution,
IAxis<?> axis)
Returns the labels for this axis.
|
protected List<LabeledValue> |
AxisScalePolicyManualTicks.getLabels(IAxis<?> axis)
Returns the labels for this axis.
|
List<LabeledValue> |
AxisScalePolicyTransformation.getScaleValues(Graphics2D g2d,
IAxis<?> axis)
Uses the transformation function callbacks (
AAxisTransformation.transform(double) , AAxisTransformation.untransform(double) )
of the AAxisTransformation this instance may be used with to have the scale transformed accordingly. |
List<LabeledValue> |
AxisScalePolicyAutomaticBestFit.getScaleValues(Graphics2D g2d,
IAxis<?> axis)
Internally used for rounding to ticks, calculated once per paint iteration.
|
List<LabeledValue> |
AxisScalePolicyManualTicks.getScaleValues(Graphics2D g2d,
IAxis<?> axis) |
void |
AxisScalePolicyTransformation.initPaintIteration(IAxis<?> axis) |
void |
AxisScalePolicyAutomaticBestFit.initPaintIteration(IAxis<?> axis) |
void |
AxisScalePolicyManualTicks.initPaintIteration(IAxis<?> axis) |
protected LabeledValue |
AxisScalePolicyAutomaticBestFit.roundToTicks(double value,
boolean floor,
boolean findMajorTick,
IAxis<?> axis)
Internal rounding routine.
|
Modifier and Type | Method and Description |
---|---|
int |
AxisTitlePainterDefault.getHeight(IAxis<?> axis,
Graphics2D g2d) |
int |
AxisTitlePainterDefault.getWidth(IAxis<?> axis,
Graphics2D g2d) |
void |
AxisTitlePainterDefault.paintTitle(IAxis<?> axis,
Graphics2D g)
TODO: This will not work for multiple axis in the same dimension and
position (overwriting titles)!
|
Modifier and Type | Method and Description |
---|---|
IAxis<?> |
LabelFormatterAutoUnits.getAxis() |
IAxis<?> |
ALabelFormatter.getAxis()
Intended for
AAxis only. |
IAxis<?> |
LabelFormatterUnit.getAxis() |
Modifier and Type | Method and Description |
---|---|
void |
LabelFormatterAutoUnits.setAxis(IAxis<?> axis) |
void |
ALabelFormatter.setAxis(IAxis<?> axis)
Intended for
AAxis only. |
void |
LabelFormatterUnit.setAxis(IAxis<?> axis) |
Modifier and Type | Method and Description |
---|---|
static IAxis<?> |
TracePoint2DUtil.getAxisXOfTracePoint(ITracePoint2D tracePoint)
Returns the x-axis this tracepoint is related to.
|
static IAxis<?> |
TracePoint2DUtil.getAxisYOfTracePoint(ITracePoint2D tracePoint)
Returns the y-axis this tracepoint is related to.
|
Copyright © 2017. All rights reserved.