|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.engine.AbstractChartObject<ChartPaintTags>
lt.monarch.chart.chart2D.breakline.ChartBreakLine
public class ChartBreakLine extends AbstractChartObject<ChartPaintTags>
Chart break element. Breaks chart axes and removes chart area defined with from and to parameters and replaces with a break line.
| Modifier and Type | Field and Description |
|---|---|
protected Axis2DY |
axis
|
protected double |
breakBottom
|
protected double |
breakTop
|
protected double |
from
|
protected int |
margin
|
protected Orientation |
orientation
|
protected double[] |
proportion
|
protected BreakLineStrategy |
strategy
|
protected double |
to
|
| Fields inherited from class lt.monarch.chart.engine.AbstractChartObject |
|---|
AXIS_SORT_POSITION, BREAK_LINE_POSITION, DEFAULT_SORT_POSITION, GRID_SORT_POSITION, MARKER_SERIES_SORT_POSITION, MARKERS_SORT_POSITION, paintStyle, SERIES_SORT_POSITION, sortPosition, style |
| Constructor and Description |
|---|
ChartBreakLine(Axis2DY axis,
double from,
double to)
Constructs break line object |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(AbstractGraphics g)
Paints the break line in the specified Graphics context. |
Axis2DY |
getAxis()
Returns brekline y axis. |
double |
getFrom()
Returns brekline from value. |
int |
getMargin()
Returns brekline margin. |
double[] |
getProportion()
Returns breakline divided chart proportions. |
int |
getSortPosition()
Returns chart object paint order index. |
double |
getTo()
Returns brekline to value. |
boolean |
isWithinAxisRange()
|
void |
setBreakPosition(double bottom,
double top)
|
void |
setMargin(int margin)
Sets brekline margin in pixels. |
void |
setProportion(double[] proportion)
Sets breakline divided chart proportions default {0.5, 0.5}. |
void |
setStrategy(BreakLineStrategies strat)
Sets break line startegy. |
| Methods inherited from class lt.monarch.chart.engine.AbstractChartObject |
|---|
activate, chart, copy, deactivate, dispose, finalize, getChart, getChartObjectBounds, getPaintStyle, getParent, getStyle, getStyle, invalidate, isVisible, layout, repaint, repaint, setChart, setVisible |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected double breakBottom
protected double breakTop
protected int margin
protected double[] proportion
protected BreakLineStrategy strategy
protected Orientation orientation
protected Axis2DY axis
protected double from
protected double to
| Constructor Detail |
|---|
public ChartBreakLine(Axis2DY axis,
double from,
double to)
throws InvalidParameterException
axis - the Y axis on which set break linefrom - starting axis value for a break to beginto - ending axis value for a break to endInvalidParameterException - when y axis doesn't have major parameters| Method Detail |
|---|
public boolean isWithinAxisRange()
public Axis2DY getAxis()
public double getFrom()
public double getTo()
public void draw(AbstractGraphics g)
g - the Graphics context in which to paint break linepublic void setStrategy(BreakLineStrategies strat)
strat - one of BreakLineStrategiespublic void setMargin(int margin)
margin - breakline sizepublic int getMargin()
public void setProportion(double[] proportion)
proportion - divided chart proportionspublic double[] getProportion()
public int getSortPosition()
ChartObject
getSortPosition in interface ChartObjectgetSortPosition in class AbstractChartObject<ChartPaintTags>
public void setBreakPosition(double bottom,
double top)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||