net.quies.math.plot
Class ChartStyle

java.lang.Object
  extended by net.quies.math.plot.ChartStyle

public final class ChartStyle
extends Object

Defines the style for one or more functions.

Since:
1.0
Author:
Pascal S. de Kloe

Constructor Summary
ChartStyle()
           
 
Method Summary
 boolean getLowerLimitEnabled()
          Gets whether the the smallest value in the range is shown as a horizontal line on the graph.
 Paint getLowerLimitPaint()
          Gets the paint for the limit.
 Paint getPaint()
          Gets the paint for the chart.
 TerminatorFactory getTerminatorFactory()
          Gets the gap indicator factory.
 ChartType getType()
          Gets the chart type.
 boolean getUpperLimitEnabled()
          Gets whether the the largest value in the range is shown as a horizontal line on the graph.
 Paint getUpperLimitPaint()
          Gets the paint for the limit.
 void setLowerLimitEnabled(boolean enabled)
          Sets whether the the smallest value in the range is shown as a horizontal line on the graph.
 void setLowerLimitPaint(Paint paint)
          Sets the paint for the limit.
 void setPaint(Paint paint)
          Sets the paint for the chart.
 void setTerminatorFactory(TerminatorFactory factory)
          Sets the gap indicator factory.
 void setType(ChartType type)
          Sets the chart type.
 void setUpperLimitEnabled(boolean enabled)
          Sets whether the the largest value in the range is shown as a horizontal line on the graph.
 void setUpperLimitPaint(Paint paint)
          Sets the paint for the limit.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChartStyle

public ChartStyle()
Method Detail

setType

public void setType(ChartType type)
Sets the chart type. The default is ChartType.LINE. Changes apply on the next render.

Since:
1.0

getType

public ChartType getType()
Gets the chart type.

Since:
1.0

setTerminatorFactory

public void setTerminatorFactory(TerminatorFactory factory)
Sets the gap indicator factory. The default is null which disables this feature. Changes apply on the next render.

Since:
1.0

getTerminatorFactory

public TerminatorFactory getTerminatorFactory()
Gets the gap indicator factory.

Since:
1.0

setPaint

public void setPaint(Paint paint)
Sets the paint for the chart. The default is null which makes it the foreground color.. Changes apply on the next paint.

Since:
1.0

getPaint

public Paint getPaint()
Gets the paint for the chart.

Since:
1.0

setLowerLimitPaint

public void setLowerLimitPaint(Paint paint)
Sets the paint for the limit. The default is null which makes it the same as the chart paint. Changes apply on the next paint.

Since:
1.4

getLowerLimitPaint

public Paint getLowerLimitPaint()
Gets the paint for the limit.

Since:
1.4

setUpperLimitPaint

public void setUpperLimitPaint(Paint paint)
Sets the paint for the limit. The default is null which makes it the same as the chart paint. Changes apply on the next paint.

Since:
1.4

getUpperLimitPaint

public Paint getUpperLimitPaint()
Gets the paint for the limit.

Since:
1.4

setLowerLimitEnabled

public void setLowerLimitEnabled(boolean enabled)
Sets whether the the smallest value in the range is shown as a horizontal line on the graph. This feature is disabled by default. Changes apply on the next render.

Since:
1.4
See Also:
Restrictions in the domain can effect the range.

getLowerLimitEnabled

public boolean getLowerLimitEnabled()
Gets whether the the smallest value in the range is shown as a horizontal line on the graph.

Since:
1.4

setUpperLimitEnabled

public void setUpperLimitEnabled(boolean enabled)
Sets whether the the largest value in the range is shown as a horizontal line on the graph. This feature is disabled by default. Changes apply on the next render.

Since:
1.4
See Also:
Restrictions in the domain can effect the range.

getUpperLimitEnabled

public boolean getUpperLimitEnabled()
Gets whether the the largest value in the range is shown as a horizontal line on the graph.

Since:
1.4