| Package | Description |
|---|---|
| com.orsoncharts | |
| com.orsoncharts.legend |
Classes related to chart legends.
|
| com.orsoncharts.marker |
Provides value and range marker support for the axes on category and XYZ
plots.
|
| com.orsoncharts.table |
Classes and interfaces for constructing tables for display to the user.
|
| com.orsoncharts.util |
General and utility classes.
|
| Modifier and Type | Field and Description |
|---|---|
static Anchor2D |
TitleAnchor.BOTTOM_CENTER
An anchor point at the bottom-center of the chart area.
|
static Anchor2D |
TitleAnchor.BOTTOM_LEFT
An anchor point at the bottom-left of the chart area.
|
static Anchor2D |
TitleAnchor.BOTTOM_RIGHT
An anchor point at the bottom-right of the chart area.
|
static Anchor2D |
TitleAnchor.CENTER
An anchor point at the center of the chart area (provided for
completeness, you wouldn't normally anchor a chart title at the
center).
|
static Anchor2D |
TitleAnchor.CENTER_LEFT
An anchor point at the center-left of the chart area.
|
static Anchor2D |
TitleAnchor.CENTER_RIGHT
An anchor point at the center-right of the chart area.
|
static Anchor2D |
TitleAnchor.TOP_CENTER
An anchor point at the top-center of the chart area.
|
static Anchor2D |
TitleAnchor.TOP_LEFT
An anchor point at the top-left of the chart area.
|
static Anchor2D |
TitleAnchor.TOP_RIGHT
An anchor point at the top-right of the chart area.
|
| Modifier and Type | Method and Description |
|---|---|
Anchor2D |
Chart3D.getLegendAnchor()
Returns the legend anchor.
|
Anchor2D |
Chart3D.getTitleAnchor()
Returns the title anchor.
|
| Modifier and Type | Method and Description |
|---|---|
static TableElement |
TitleUtils.createTitle(java.lang.String title,
java.lang.String subtitle,
Anchor2D anchor)
Creates a chart title and subtitle (optional) using default fonts and
alignment that is standard for the specified anchor point (that is, left
alignment when the title is anchored left, center alignment when the
title is anchored centrally, and right alignment when the title is
anchored to the right).
|
void |
Chart3D.setLegendAnchor(Anchor2D anchor)
Sets the legend anchor and sends a
Chart3DChangeEvent to all
registered listeners. |
void |
Chart3D.setLegendPosition(Anchor2D anchor,
Orientation orientation)
Sets the legend position (both the anchor point and the orientation) and
sends a
Chart3DChangeEvent to all registered listeners. |
void |
Chart3D.setTitleAnchor(Anchor2D anchor)
Sets the title anchor and sends a
Chart3DChangeEvent to all
registered listeners. |
| Modifier and Type | Field and Description |
|---|---|
static Anchor2D |
LegendAnchor.BOTTOM_CENTER
An anchor point at the bottom-center of the chart area.
|
static Anchor2D |
LegendAnchor.BOTTOM_LEFT
An anchor point at the bottom-left of the chart area.
|
static Anchor2D |
LegendAnchor.BOTTOM_RIGHT
An anchor point at the bottom-right of the chart area.
|
static Anchor2D |
LegendAnchor.CENTER_LEFT
An anchor point at the center-left of the chart area.
|
static Anchor2D |
LegendAnchor.CENTER_RIGHT
An anchor point at the center-right of the chart area.
|
static Anchor2D |
LegendAnchor.TOP_CENTER
An anchor point at the top-center of the chart area.
|
static Anchor2D |
LegendAnchor.TOP_LEFT
An anchor point at the top-left of the chart area.
|
static Anchor2D |
LegendAnchor.TOP_RIGHT
An anchor point at the top-right of the chart area.
|
| Modifier and Type | Method and Description |
|---|---|
TableElement |
StandardLegendBuilder.createLegend(Plot3D plot,
Anchor2D anchor,
Orientation orientation,
ChartStyle style)
Creates and returns a legend (instance of
TableElement) that
provides a visual key for the data series in the specified plot. |
TableElement |
LegendBuilder.createLegend(Plot3D plot,
Anchor2D anchor,
Orientation orientation,
ChartStyle style)
Creates a legend for the specified plot.
|
TableElement |
ColorScaleLegendBuilder.createLegend(Plot3D plot,
Anchor2D anchor,
Orientation orientation,
ChartStyle style)
Creates a new color scale legend with the specified orientation.
|
| Modifier and Type | Method and Description |
|---|---|
Anchor2D |
RangeMarker.getLabelAnchor()
Returns the anchor for the label.
|
Anchor2D |
NumberMarker.getLabelAnchor()
Returns the anchor for the label.
|
Anchor2D |
MarkerData.getLabelAnchor()
Returns the label anchor.
|
Anchor2D |
CategoryMarker.getLabelAnchor()
Returns the anchor for the label.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
AbstractMarker.drawMarkerLabel(java.awt.Graphics2D g2,
java.lang.String label,
double x,
double y,
Anchor2D anchor,
java.awt.geom.Line2D refLine,
boolean reverse)
Draws a marker label.
|
protected void |
AbstractMarker.drawMarkerLabel(java.awt.Graphics2D g2,
java.lang.String label,
double x,
double y,
Anchor2D anchor,
java.awt.geom.Line2D refLine1,
java.awt.geom.Line2D refLine2,
boolean reverse)
Draws a marker label.
|
void |
RangeMarker.setLabelAnchor(Anchor2D anchor)
Sets the anchor for the label and sends a change event to all registered
listeners.
|
void |
NumberMarker.setLabelAnchor(Anchor2D anchor)
Sets the anchor for the label and sends a change event to all registered
listeners.
|
void |
MarkerData.setLabelAnchor(Anchor2D anchor)
Sets the label anchor.
|
void |
CategoryMarker.setLabelAnchor(Anchor2D anchor)
Sets the anchor for the label and sends a change event to all registered
listeners.
|
| Modifier and Type | Method and Description |
|---|---|
Anchor2D |
GradientRectanglePainter.getAnchor1()
Returns the anchor point used to find the starting point for the
gradient (as specified via the constructor).
|
Anchor2D |
GradientRectanglePainter.getAnchor2()
Returns the anchor point used to find the ending point for the
gradient (as specified via the constructor).
|
| Constructor and Description |
|---|
GradientRectanglePainter(java.awt.Color color1,
Anchor2D anchor1,
java.awt.Color color2,
Anchor2D anchor2)
Creates a new instance.
|
| Modifier and Type | Field and Description |
|---|---|
static Anchor2D |
Anchor2D.BOTTOM_CENTER
An anchor point at the bottom center with zero offset from the target
rectangle bounds.
|
static Anchor2D |
Anchor2D.BOTTOM_LEFT
An anchor point at the bottom left with zero offset from the target
rectangle bounds.
|
static Anchor2D |
Anchor2D.BOTTOM_RIGHT
An anchor point at the bottom right with zero offset from the target
rectangle bounds.
|
static Anchor2D |
Anchor2D.CENTER
An anchor point at the center of the target rectangle.
|
static Anchor2D |
Anchor2D.CENTER_LEFT
An anchor point at the center left with zero offset from the target
rectangle bounds.
|
static Anchor2D |
Anchor2D.CENTER_RIGHT
An anchor point at the center right with zero offset from the target
rectangle bounds.
|
static Anchor2D |
Anchor2D.TOP_CENTER
An anchor point at the top center with zero offset from the target
rectangle bounds.
|
static Anchor2D |
Anchor2D.TOP_LEFT
An anchor point at the top left with zero offset from the target
rectangle bounds.
|
static Anchor2D |
Anchor2D.TOP_RIGHT
An anchor point at the top right with zero offset from the target
rectangle bounds.
|
| Modifier and Type | Method and Description |
|---|---|
Anchor2D |
Fit2D.getAnchor()
Returns the anchor.
|
| Constructor and Description |
|---|
Fit2D(Anchor2D anchor,
Scale2D scale)
Creates a new instance.
|