All Classes and Interfaces
Class
Description
A special
JComponent
for rendering
annotation content.The base class for an axis of the
Chart2D
.The base class that connects triggered actions with an
AAxis
instance.Base class for Axis implementations that transform the scale for changed
display.
The base class that connects triggered actions with an
Chart2D
instance.The base class that connects triggered actions with an
ChartPanel
instance.A simple Runnable that continuously collects data every latency time period
and adds it to the internal ITrace2D instance.
An example that introduces some more advanced features of jchart2d.
Demonstrates advanced features of static charts in jchart2d.
Base class that for triggering actions on a
IErrorBarPolicy
instance.Base class that for triggering actions on a
IErrorBarPolicy
instance.A
IErrorBarPolicy
base
implementation that is configurable by the means of showing positive/negative
errors in x/y dimension.
The base class that connects triggered actions with an
JComponent
instance.A label formatter that is aware of the
AAxis
it formats label for.A movable container for annotations.
Annotation that displays the annotated point's data values.
Factory implementation for annotation view creation in tool tip bubble style.
A test for the
Chart2D
that constantly adds new tracepoints to a
Trace2DLtd
.Adapter class that implements optional methods of
IPointPainter
as "no operation".A default superclass for IRangePolicy implementations that adds support for
setting and getting ranges.
Base class for data collectors that fill traces for static charts in one run.
The base class that connects triggered actions with an
ITrace2D
instance.Abstract
Action
to act with an IErrorBarPolicy on an
ITrace2D
.A trace painter that adds the service of knowing the previous point that had
to be painted.
A unit.
Action
that invokes
AAxis.setFormatter(info.monitorenter.gui.chart.IAxisLabelFormatter)
on a constructor given AAxis
.Action
that sets the range of an
AAxis
of a chart (
Chart2D
) that will be used by it's
viewport (
AAxis.setRangePolicy(info.monitorenter.gui.chart.IRangePolicy)
) by showing a modal range chooser.Action that sets a constructor given
IRangePolicy
to a constructor given
AAxis
.Action
that sets the title String of the IAxis
specified by the constructor.Action
that sets the title String of the
IAxisTitlePainter
of the
IAxis
specified by the constructor.An
AAxis
with inverse display of values.An
AAxis
with linear display of values.An
AAxis
with log base 10 scaled
display of values.An
AAxis
with log scaled display of
values.Very basic and fast scale policy implementation that ensures the following:
Every scale tick is a minor or major tick of the corresponding axis.
If a scale tick was found that matches a major and a minor tick it is judged as major tick.
Every major tick is a multiple of minor ticks: It is not possible for the sum minor ticks to "skip" a major tick.
There is no guarantee that the labels of ticks will overwrite each others.
There is no guarantee that the major and minor ticks of the axis are chosen in a reasonable manner: You could get no labels at all if the values are too high or thousands of labels with a weird output.
A minimal example for a chart that has manual configured labels/ticks by using
AxisScalePolicyManualTicks
.Scale policy implementation that ensures the following:
No label will overwrite the following label.
No two labels will have the same value.
Every tick will exactly show the value without rounding errors.
Always the closest next possible tick is chosen regardless whether it is
a major tick or a minor tick (subject to change in favor of major ticks)
Very basic implementation that has to be used with implementation of
AAxisTransformation
to have the scale transformed.Default implementation for a tick painter that uses all given arguments (no
proprietary behaviour).
An
IAxisTitlePainter
implementation that will render
titles in a default way while adapting to x or y axis use.The base class that connects triggered actions with an
ZoomableChart
instance. Chart2D
is a component for displaying the data contained in a
ITrace2D
.Types of tool tip.
Types of tool tip.
Action
that invokes Chart2D.setUseAntialiasing(boolean)
upon selection by the triggering AbstractButton
.Action
that invokes Chart2D.enablePointHighlighting(boolean)
upon selection by the triggering AbstractButton
.Singleton
Action
that prints the current chart by showing a modal print dialog.Singleton
Action
that saves the current chart to an encapsulated
postscript file at the the location specified by showing a modal file chooser
save dialog.Singleton
Action
that saves the current chart to an image at the location
specified by showing a modal file chooser save dialog.Action
for setting an axis implementation of the chart.Action
that sets a custom grid color to the corresponding
chart (Chart2D.setGridColor(Color)
) by showing a modal color
chooser.Singleton
Action
that sets a custom grid color to the
corresponding chart (Chart2D.setGridColor(Color)
) by showing a
modal color chooser.Performs the action of setting the color of gridlines (
Chart2D.setGridColor(Color)
) of a
Chart2D
with the constructor given Color
.Action
that sets a custom name of the corresponding chart (
Component.setName(String)
)
by showing a modal String chooser.A view that displays the data value of the point the mouse pointer currently
is over the Chart2D component within two
JTextField
instances.Action that adds an annotation to a
ChartPanel
.An icon that displays a rectangular
Color
.Iterator of the color space.
Just for protected internal float stepping.
A stepping model that steps on the alpha channel of the HSB color space.
Base class for stepping models that may step in each direction of the Hue
Saturation Luminance color space.
Performs hue steps until it has walked the whole hue line, then performs a
saturation step to start with hue steps again.
Performs hue steps until it has walked the whole hue line, then performs a
saturation step to start with hue steps again.
A stepper that walks along the hue line of the color space.
Defines the strategy of walking through the HSB color space.
A stepping model that steps on the luminance line of the HSB color space.
A stepping model that steps on the saturation line of the HSB color space.
Mutable
Color
implementation.A
Comparator
that compares the given Objects by their
Object.toString()
value.A demo that uses a
ChartCoordinateView
to display the
position of the mouse over the chart.Demonstrates minimal effort to create a dynamic chart with a 2nd trace that
displays the arithmetic mean of the last 5 points of the first trace.
I have written implementations of java.util.Map.Entry in form of
Static inner classes.
Non-static inner classes.
Non-public classes.
Anonymous classes.
A panel for selection of the directions of error bars.
Implementation of an error bar painter that allows configuration of the way the connection, start point and end point of an error bar is
painted by the use of
IPointPainter
.Action that pops up a modal dialog to edit the given
IErrorBarPainter
.Action
that sets a custom color to the corresponding segment
of an error bar painter by showing a modal color chooser.Action
that sets an IPointPainter
to the
corresponding segment of an error bar painter.An error bar painter that renders no end point and start point and renders a
line as segment (
PointPainterLine
).A panel that displays all
ErrorBarPainter
instances of an
IErrorBarPolicy
and offers their edit and
remove buttons as well as an add button for a new
IErrorBarPainter
instance to configure.Straight forward dumb data container implementation.
Configurable
IErrorBarPolicy
that adds an absolute error (relative to the absolute values) to the points
to render.Action that adds a new
ErrorBarPainter
to the given
IErrorBarPolicy
.Action that removes the constructor given
IErrorBarPainter
from he
constructor given
IErrorBarPolicy
.An action that shows a modal error bar wizard dialog.
Highly proprietary error bar action that changes the behavior depending on
the
JMenu
from which it is triggered.A panel for selection and custom configuration of an
IErrorBarPolicy
.Configurable
IErrorBarPolicy
that adds a relative error (relative to the absolute values) to the points to
render.A wizard to manage error bars for a trace.
Nice static helpers for working with Strings.
Configureable implementation of
FileFilter
that filters files by their extension (e.g.: ".txt").Utility class for file operations.
A flow layout that claims the correct height of the component managed in case
the available width is known.
Color that internally works with the Hue Saturation Luminance color space.
An interface for creation of visible annotations.
Interface for an axis of the
Chart2D
.Represents a title of an axis.
An interface used by Axis to format labels and determine the maximum width
for the labels.
Interface to paint ticks for a trace.
Interface for an painter of the title of an axis of the Chart2D.
Helper to allow running certain code in a certain scope (e.g.: synchronization scope, pre- or postrequisites to meet,...).
An interface for distributing colors.
An interface that allows implementors to let themselves be compared by a
Comparable
Number
instance that may be
modified by the comparing classs.Interface for a renderer of error bars.
Facace interface for accessing a connection segment of
ErrorBarPainter
.Interface for an error bar in the pixel domain (vs.
Interface for a facade towards painting error bars that adds a layer of
configuration.
Mutable
Integer
.Interface for finding a
ITracePoint2D
of a
Chart2D
corresponding to a mouse event.Generic interface for instances that have to render a point in pixel
coordinates.
Adds configuration of UI like strokes and color to IPointPainter.
An interface that allows an axis to be plugged with a range policy.
Interface for implementations of RingBuffers.
Special exception related to ring buffer operations.
Defines the tool tips to display on a
Chart2D
.An interface used by
Chart2D
.Simple struct just for allowing to return a trace point along with a
weighted distance.
An interface that works at trace level and defines how it's points are rendered.
An interface for trace points.
Interface for creation of new instances of
ITracePoint2D
which will be used wherever a chart
component tree has to create them.A system of units ordered by their natural ascending order.
Performs the action of setting the background color
(
JComponent.setBackground(java.awt.Color)
}
of a JComponent
.Action
that sets a custom background color of the
corresponding JComponent
by showing a modal color chooser.Singleton
Action
that sets a custom background color of the
corresponding JComponent
by showing a modal color chooser.Action
that sets a custom foreground color of the
corresponding JComponent
by showing a modal color chooser.Singleton
Action
that sets a custom foreground color of the
corresponding JComponent
by showing a modal color chooser.Performs the action of setting the foreground color (
JComponent.setForeground(java.awt.Color)
} of a
JComponent
.A double value along with it's label.
A label formatter that adds an automatic choice of the unit SI prefix to a
decorated
IAxisLabelFormatter
.An ILabelFormatter instance that uses a
DateFormat
to
format the labels.An ILabelFormatter that is based on a
NumberFormat
An IlabelFormatter implementation that just returns
String.valueOf(value)
.A label formatter that adds a constructor given
AUnit
of the unit SI prefix to a decorated
IAxisLabelFormatter
.Implementation for a
PropertyChangeListener
that adapts a
wrapped JComponent
to the following properties.Interface to handle the removal of the
LayoutFactory.BasicPropertyAdaptSupport
as a property change event
listener.Implementation based on the event
Chart2D.PROPERTY_ADD_REMOVE_TRACE
sent with an old
value ITrace2D
that has to be matched.Implementation dummy that never will decide to remove the calling
LayoutFactory.BasicPropertyAdaptSupport
to be removed.A
JCheckBoxMenuItem
that listens for changes of background
color, foreground color and font of the given JComponent
and
adapts it's own settings.A
JMenuItem
that listens for changes of background color,
foreground color and font of the given JComponent
and adapts
it's own settings.Implementation for a
PropertyChangeListener
that adpapts a
wrapped JComponent
to the following properties.A demo chart that uses a logarithmic axis for Y (
AxisLog10
) and a trace painter for
discs (TracePainterDisc
).A demo chart that uses a logarithmic axis for Y (
AxisLog10
) and a trace painter for
discs (TracePainterDisc
).A demo chart that uses a logarithmic axis for Y (
AxisLog10
)
and a trace painter for discs (TracePainterDisc
).Static helpers for working with numbers.
Message bundle for externalization.
Demonstrates minimal effort to create a dynamic chart.
Title: MinimalStaticChart
POC to show that "on some computers" jchart2d is able to show 70.000 data
points.
Title: MinimalStaticChart
Class for modal dialogs with ok and cancel buttons.
Title: MultipleAxesStaticChart
Demonstration of a zoom - enabled chart (
ZoomableChart
).Demonstrates minimal effort to create multiple charts in one window.
A demonstration of the minimal code to set up a chart with static data and
several traces.
An example that tests the ability of multithreaded use of a single
Chart2D
.The
ObjectRecorder
takes records(inspections) of an objects
state using reflection and accessibility- framework.A simple adapter that allows displaying of timestamped values from an
inspection of the
ObjectRecorder
on a
Chart2D.A panel that allows to input a
String
via
a normal
JTextField
.Renders points in form of a disc with configurable diameter.
A point painter that renders a trace by lines.
Renders points by painting a bar with choosable width for each point to show.
A general purpose
PopupListener
.Data collector that collects data in form of
ITracePoint2D
instances from a property
file ( Properties
).A proof of concept dummy implementation for the supertype.
Data collector that collects values with an absolute timestamp as x value and
a random jumping y value.
A simple data structure that defines a minimum and a maximum and knows, what
lies within it and what not.
A panel that allows to choose a range from a special
JSlider
with two sliders (dual Slider).A range policy that forces the chart only to display the bounds of the
internal range regardless of the actual bounds of the traces within the
chart.
A range policy that forces the chart always to display the constructor given
point regardless of the actual bounds of the traces within the chart.
Range policy implementation that will force a viewport that only shows the
highest values that are in the range of maximum - x.
Range policy implementation that will show a viewport with only the highest
values that are in the range of maximum - x which also forces the lower bound
to be shown if no data towards this bound exists.
A
IRangePolicy
implementation that
guarantees a minimum displayed range (viewport) but will stretch if values of
the corresponding Chart2D
exceeds these
constructor given bounds.A dummy IRangePolicy implementation that reflects the bounds of the connected
Chart2D instance.
A RingBuffer can be used to store a limited number of entries of any type
within a buffer.
Fast ring buffer implementation.
A class containing useful utility methods relating to serialization.
Advanced demonstration applet for jchart2d.
Hack for a
SimpleDateFormat
to get further
information about the fields that will be displayed.A demo chart that uses a
TracePainterDisc
.Title: StaticChartErrorBarLineDisc
A demo chart that uses a
TracePainterFill
.Title: StaticChartWithBoxAndTitle
Title: StaticChartXAxisInverse.
A chart to test labels.
Nice static helpers for working with Strings.
Simple wrapper around a time in ms and a value Object.
Action
to set an IErrorBarPolicy on an
ITrace2D
.Action
that adds or removes constructor-given
IPointPainter
to the corresponding trace.Action
that adds or removes constructor-given
ITracePainter
to the corresponding trace.Action
to remove an IErrorBarPolicy from an
ITrace2D
.Action
that sets a constructor-given color of the
corresponding trace.Action
that sets a custom color of the corresponding trace by
showing a modal color chooser.Action
that sets a custom name of the corresponding trace by
showing a modal String chooser.Action
that sets custom physical units for x and y on the
corresponding trace by showing a modal dialog.Action
that sets a constructor-given zIndex to the
corresponding trace.
Performs the action of setting a trace visible (
ITrace2D.setVisible(boolean)
) with the
constructor given boolean.Action
that sets a constructor-given zIndex to the
corresponding trace.Action
that decreases the zIndex
of the
constructor-given ITrace2D
by a constructor-given integer.Action
that increases the zIndex
of the
constructor-given ITrace2D
by a constructor-given integer.A trace that accumulates the latest n points added to points with the
arithmetic mean value.
A trace that accumulates the latest n x values added to points with
the arithmetic mean x value and the latest y value.
A trace that accumulates the latest n y values added to points with
the arithmetic mean y value and the latest x value.
A delegator / proxy that delegates all calls to an internal constructor-given
ITrace2d and swaps the data of the added Point2D instances.
A
Trace2D
who only allows a single occurance of a tracepoint
with a certain x- value xi.A decorator for any ITrace2D implementation.
Additional to the Trace2DSimple the Trace2DLimited adds the following
functionality:
In addition to the
Trace2DLtd
this class offers the guarantee only to allow a
single tracepoint with a certain x- value.Additional to the
Trace2DLtdReplacing
all tracepoints will be
sorted by their x- value.Has the behavior of
Trace2DBijective
and additional
features.Has the behavior of
Trace2DReplacing
and additional features.An
ITracePainter
implementation that works on a given IPointPainter
.Renders traces by painting a disc (hollow circle) with choosable diameter for
each
TracePoint2D
to show.A trace painter that fills the area between trace to render and the x axis
baseline with it's color.
A trace painter that renders a trace by lines.
A trace painter that increases performance by summing up all points to render
for a paint iteration (submitted by
TracePainterPolyline.paintPoint(int, int, int, int, Graphics, ITracePoint2D)
invocations
between TracePainterPolyline.startPaintIteration(Graphics)
and
TracePainterPolyline.endPaintIteration(Graphics)
) and only invoking only one polyline
paint for a paint call of the corresponding
Chart2D
.Renders traces by painting a bar with choosable width for each
TracePoint2D
to show.A specialized version of
java.awt.Point2D.Double
who carries two further values: double scaledX
and
double scaledY
which allow the Chart2D
to cache the scaled values (between 0.0 and 1.0) without having to keep
a copy of the aggregators (ITrace2D
) complete tracepoints.Default creator of
ITracePoint2D
instances that returns
implementation TracePoint2D
.A test class that steps through all
ITrace2D
implementations and
adds random or "half- random" TracePoint2D
-instances.A
Set
that will always successfully add new instances and
guarantee that all the "Comparable properties" of the contained
IComparableProperty
instances will build a set (no duplicates).A panel that allows to input two
Strings
via
normal
JTextField
.Utility class for UI / layout operations.
Singleton that caches instances of whole unit- systems and provides you with
the matching unit for a maximum value.
Femto unit, 10 -15 .
Giga unit, 10 9 .
Kilo unit, 10 3 .
Mega unit, 10 6 .
Micro unit, 10 -6 .
Milli unit, 10 -3 .
Nano unit, 10 -9 .
Peta unit, 10 15 .
Pico unit, 10 -12 .
The unit system for the "International System of Units" (SI).
Tera unit, 10 12 .
Unchanged unit, 10 0 .
Chart2D
enriched by a
zoom-functionality in the x and y dimension.Action
for zooming a ZoomableChart
to the original size (zoom out).Demonstration of a zoom - enabled chart (
ZoomableChart
) with error bars and an
AxisLogE
for the y axis.Demonstration of a zoom - enabled chart (
ZoomableChart
).