|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.davisor.graphics.chart.ChartFactory.ChartContext
com.davisor.graphics.chart.AxisFactory.AxisContext
AxisContext holds the state of one particular axis chart while it is being constructed. The context life cycle has two major phases:
The initial parameters that are available before axis chart image size has been resolved are:
Additional parameters that become available after axis chart image size has been resolved are:
| Field Summary | |
java.util.Map |
additionalValues
Derived values to be used with altFormat, urlFormat, and valueFormat. |
int[] |
altChannels
Annotation description text data channel indexes. |
TupleType |
altType
Annotation description text formatter. |
ChartAttributes |
attr
Chart attributes. |
int[] |
colorChannels
Color data channel indexes. |
Type[] |
colorChannelTypes
Color data channel types for each value channel. |
short |
index
Context index among other contexts. |
boolean |
isometric
Isometric mode indicator. |
java.awt.Font[] |
labelFont
Axis label fonts [X,Y,Z,...]. |
protected float[] |
labelOffsets
Label offset size [X,Y,Z] (never negative). |
float[][] |
labelSizes
Axis label sizes. |
EnumType |
labelType
Label channel access type (may be null). |
int |
lastPlotColorChannel
Last color channel that belongs to plot (not to any series). |
int |
lastPlotPaintChannel
Last paint channel that belongs to plot (not to any series). |
protected float[] |
markerOffsets
Marker offset size [X,Y,(Z)]. |
float[][] |
markerSizes
Axis marker sizes. |
int[] |
paintChannels
Paint data channel indexes. |
Type[] |
paintChannelTypes
Paint data channel types for each value channel. |
PlotRenderAttributes |
plot
Chart plot attributes. |
java.awt.Paint |
plotLineColor
Default plot area line color. |
java.awt.Paint |
plotLinePaint
Default plot area line paint. |
java.awt.Stroke |
plotLineStroke
Default plot area line stroke. |
java.awt.Paint |
plotPointColor
Default plot area point color. |
java.awt.Paint |
plotPointPaint
Default plot area point paint. |
java.awt.Stroke |
plotPointStroke
Default plot area point stroke. |
java.awt.Paint |
plotValueColor
Default plot area value color. |
java.awt.Font |
plotValueFont
Default plot area value font. |
java.awt.Paint |
plotValuePaint
Default plot area value paint. |
int[] |
positionChannels
Category axis position value channel indexes. |
float[] |
scale
Non-plot area scale factors [X,Y]. |
ChartDataSummary |
summary
Chart data summary. |
java.awt.Font[] |
titleFont
Axis title fonts. |
float[][] |
titleSizes
Axis title sizes. |
int[] |
urlChannels
Annotation URL address data channel indexes. |
Type |
urlChannelType
Annotation URL address channel type. |
TupleType |
urlType
Annotation URL address formatter. |
int[] |
valueChannels
Value data channel indexes. |
TupleType |
valueType
Composite value formatter. |
| Fields inherited from class com.davisor.graphics.chart.ChartFactory.ChartContext |
data |
| Constructor Summary | |
AxisFactory.AxisContext(ChartData data,
ChartAttributes attr,
PlotRenderAttributes plot,
ChartDataSummary summary,
java.awt.Font[] labelFont,
java.awt.Font[] titleFont,
Type[] colorChannelTypes,
int lastPlotColorChannel,
Type[] paintChannelTypes,
int lastPlotPaintChannel,
Type urlChannelType,
EnumType labelType,
int[] valueChannels,
int[] colorChannels,
int[] paintChannels,
int[] urlChannels,
int[] altChannels,
int[] positionChannels,
float[] labelOffsets,
float[] markerOffsets,
float[][] titleSizes,
boolean isometric,
short index)
Creates a new axis context. |
|
AxisFactory.AxisContext(ChartData data,
ChartAttributes attr,
PlotRenderAttributes plot,
ChartDataSummary summary,
java.awt.Font[] labelFont,
java.awt.Font[] titleFont,
Type colorChannelType,
Type paintChannelType,
Type urlChannelType,
EnumType labelType,
int[] valueChannels,
int[] colorChannels,
int[] paintChannels,
int[] urlChannels,
int[] altChannels,
int[] positionChannels,
float[] labelOffsets,
float[] markerOffsets,
float[][] titleSizes,
boolean isometric,
short index)
Deprecated. |
|
| Method Summary | |
void |
set(java.util.Map additionalValues,
TupleType valueType,
TupleType urlType,
TupleType altType,
java.awt.Paint plotLineColor,
java.awt.Paint plotLinePaint,
java.awt.Stroke plotLineStroke,
java.awt.Paint plotPointColor,
java.awt.Paint plotPointPaint,
java.awt.Stroke plotPointStroke,
java.awt.Paint plotValueColor,
java.awt.Font plotValueFont,
java.awt.Paint plotValuePaint)
Upgrades the context with information available only after final chart image size has been resolved. |
void |
setLabelSizes(float[][] labelSizes)
Sets label sizes, but preservering at least current minimum X and Y -axis label margins, if any. |
void |
setMargins(float minXMargin,
float minYMargin)
Ensures minimum X and Y -axis label margin values. |
void |
setMarkerSizes(float[] markerOffsets)
Sets marker offsets. |
void |
setMarkerSizes(float[][] markerSizes)
Sets marker sizes. |
void |
setScale(float[] scale)
Sets axis scaling factors. |
java.lang.String |
toString()
Returns memeber variable information as String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public java.util.Map additionalValues
public int[] altChannels
public ChartAttributes attr
public PlotRenderAttributes plot
public Type[] colorChannelTypes
public int[] colorChannels
public short index
public boolean isometric
public java.awt.Font[] labelFont
public EnumType labelType
protected float[] labelOffsets
public float[][] labelSizes
public int lastPlotColorChannel
public int lastPlotPaintChannel
protected float[] markerOffsets
public float[][] markerSizes
public Type[] paintChannelTypes
public int[] paintChannels
public int[] positionChannels
public ChartDataSummary summary
public java.awt.Font[] titleFont
public float[][] titleSizes
public Type urlChannelType
public int[] urlChannels
public int[] valueChannels
public TupleType altType
public java.awt.Paint plotLineColor
public java.awt.Paint plotLinePaint
public java.awt.Stroke plotLineStroke
public java.awt.Paint plotPointColor
public java.awt.Paint plotPointPaint
public java.awt.Stroke plotPointStroke
public float[] scale
public TupleType urlType
public TupleType valueType
public java.awt.Paint plotValueColor
public java.awt.Font plotValueFont
public java.awt.Paint plotValuePaint
| Constructor Detail |
public AxisFactory.AxisContext(ChartData data,
ChartAttributes attr,
PlotRenderAttributes plot,
ChartDataSummary summary,
java.awt.Font[] labelFont,
java.awt.Font[] titleFont,
Type colorChannelType,
Type paintChannelType,
Type urlChannelType,
EnumType labelType,
int[] valueChannels,
int[] colorChannels,
int[] paintChannels,
int[] urlChannels,
int[] altChannels,
int[] positionChannels,
float[] labelOffsets,
float[] markerOffsets,
float[][] titleSizes,
boolean isometric,
short index)
AxisFactory.AxisContext(ChartData,ChartAttributes,PlotRenderAttributes,
ChartDataSummary,Font[],Font[],Type[],int,Type[],int,Type,EnumType,
int[],int[],int[],int[],int[],int[],float[],float[],float[][],
boolean,short)
public AxisFactory.AxisContext(ChartData data,
ChartAttributes attr,
PlotRenderAttributes plot,
ChartDataSummary summary,
java.awt.Font[] labelFont,
java.awt.Font[] titleFont,
Type[] colorChannelTypes,
int lastPlotColorChannel,
Type[] paintChannelTypes,
int lastPlotPaintChannel,
Type urlChannelType,
EnumType labelType,
int[] valueChannels,
int[] colorChannels,
int[] paintChannels,
int[] urlChannels,
int[] altChannels,
int[] positionChannels,
float[] labelOffsets,
float[] markerOffsets,
float[][] titleSizes,
boolean isometric,
short index)
data - chart dataattr - chart attributesplot - local plot area attributessummary - chart data summarylabelFont - axis label fonts [X,Y,Z,...]titleFont - axis title fonts [X,Y,Z,...]colorChannelTypes - color data channel typeslastPlotColorChannel - last color channel for plotpaintChannelTypes - paint data channel typeslastPlotPaintChannel - last paint channel for ploturlChannelType - annotation URL address data channel typelabelType - label channel access type (may be null)valueChannels - value data channel indexescolorChannels - color data channel indexespaintChannels - paint data channel indexesurlChannels - annotation URL address data channel indexesaltChannels - annotation description text data channel indexeslabelOffsets - axis label offsets ([x,y,z])titleSizes - axis title sizes ([x,y][w,h])isometric - isometric mode indicatorindex - context index among other contexts| Method Detail |
public java.lang.String toString()
public void set(java.util.Map additionalValues,
TupleType valueType,
TupleType urlType,
TupleType altType,
java.awt.Paint plotLineColor,
java.awt.Paint plotLinePaint,
java.awt.Stroke plotLineStroke,
java.awt.Paint plotPointColor,
java.awt.Paint plotPointPaint,
java.awt.Stroke plotPointStroke,
java.awt.Paint plotValueColor,
java.awt.Font plotValueFont,
java.awt.Paint plotValuePaint)
valueType - composite value formatterurlType - annotation URL address formatteraltType - annotation description text formatterplotLineColor - default plot area line colorplotLinePaint - default plot area line paintplotLineStroke - default plot area line strokeplotPointColor - default plot area point colorplotPointPaint - default plot area point paintplotPointStroke - default plot area point strokeplotValueColor - default plot area value colorplotValueFont - default plot area value fontplotValuePaint - default plot area value paintpublic void setLabelSizes(float[][] labelSizes)
setMargins(float,float),
AxisFactory.labelAxis(com.davisor.graphics.chart.ChartAxis, java.awt.Graphics2D, float, float, float, float, float, float, float, boolean, boolean, boolean, boolean, boolean)public void setMarkerSizes(float[][] markerSizes)
setLabelSizes(float[][]),
setMarkerSizes(float[][]),
AxisFactory.labelMarkers(com.davisor.graphics.chart.ChartAxis, java.awt.Graphics2D, com.davisor.graphics.chart.AxisFactory.AxisMetrics, float, float, float, float, float, float, float, float, float, boolean, boolean, boolean, boolean)public void setMarkerSizes(float[] markerOffsets)
setMarkerSizes(float[][]),
AxisFactory.labelMarkers(com.davisor.graphics.chart.ChartAxis, java.awt.Graphics2D, com.davisor.graphics.chart.AxisFactory.AxisMetrics, float, float, float, float, float, float, float, float, float, boolean, boolean, boolean, boolean)
public void setMargins(float minXMargin,
float minYMargin)
setLabelSizes(float[][])public void setScale(float[] scale)
scale - non-plot area scale factors [X,Y]
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||