For downloads, demos, and more visit the
Client-side GChart Home Page

com.googlecode.gchart.client
Class GChart.Y2Axis

java.lang.Object
  extended by com.googlecode.gchart.client.GChart.Axis
      extended by com.googlecode.gchart.client.GChart.Y2Axis
Enclosing class:
GChart

public class GChart.Y2Axis
extends GChart.Axis

The right, or "y2", axis of a GChart.

See Also:
getY2Axis

Method Summary
 double getDataMax()
          Returns the maximum data value associated with values represented on this axis.
 double getDataMin()
          Returns the minimum data value associated with values represented on this axis.
 void setTickLength(int tickLength)
          Sets this axes' tick length.
 void setTickThickness(int tickThickness)
          Sets this axes' tick thickness.
 
Methods inherited from class com.googlecode.gchart.client.GChart.Axis
addTick, addTick, addTick, addTick, addTick, clearTicks, formatNumberAsTickLabel, getAxisLabel, getAxisMax, getAxisMin, getAxisVisible, getHasGridlines, getTickCount, getTickLabelFontColor, getTickLabelFontSize, getTickLabelFontStyle, getTickLabelFontWeight, getTickLabelFormat, getTickLabelThickness, getTickLength, getTicksPerGridline, getTicksPerLabel, getTickThickness, setAxisLabel, setAxisLabel, setAxisMax, setAxisMin, setAxisVisible, setHasGridlines, setTickCount, setTickLabelFontColor, setTickLabelFontSize, setTickLabelFontStyle, setTickLabelFontWeight, setTickLabelFormat, setTickLabelThickness, setTicksPerGridline, setTicksPerLabel
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDataMax

public double getDataMax()
Description copied from class: GChart.Axis
Returns the maximum data value associated with values represented on this axis. For example, for the left y-axis, this would be the largest y-value of all points contained in curves that are displayed on the left y-axis.

Specified by:
getDataMax in class GChart.Axis
Returns:
the maximum value associated with values mapped onto this axis.
See Also:
getDataMin, getAxisMax, getAxisMin

getDataMin

public double getDataMin()
Description copied from class: GChart.Axis
Returns the minimum data value associated with values represented on this axis. For example, for the left y-axis, this would be the smallest y-value of all points contained in curves that are displayed on the left y-axis.

Specified by:
getDataMin in class GChart.Axis
Returns:
the minumum value associated with values mapped onto this axis.
See Also:
getDataMax, getAxisMax, getAxisMax

setTickLength

public void setTickLength(int tickLength)
Description copied from class: GChart.Axis
Sets this axes' tick length. Set the tick length to zero to eliminate the tick entirely.

Note that GChart ticks are always "outside" ticks.

Specified by:
setTickLength in class GChart.Axis
Parameters:
tickLength - the length of the tick.
See Also:
getTickLength

setTickThickness

public void setTickThickness(int tickThickness)
Description copied from class: GChart.Axis
Sets this axes' tick thickness.

Tip: Set the tick thickness to zero to to hide the tick but retain the spacing between tick labels and the axis due to the ticks' length.

Note that GChart ticks are always "outside" ticks.

Specified by:
setTickThickness in class GChart.Axis
Parameters:
tickThickness - the thickness of the tick.
See Also:
getTickThickness, setTickLength

For downloads, demos, and more visit the
Client-side GChart Home Page

Copyright © 2007,2008 John C. Gunther. All Rights Reserved.