JIDE 3.5.15

com.jidesoft.gauge
Class AbstractGaugeTickStyle

java.lang.Object
  extended by com.jidesoft.gauge.AbstractGaugeTickStyle
Direct Known Subclasses:
BulletTickStyle, DialTickStyle

public abstract class AbstractGaugeTickStyle
extends Object


Field Summary
protected  Color tickColor
           
protected  double tickLength
          Tick Length is specified in terms of the proportion of the axis width
protected  double tickWidth
          Tick width is specified as a percentage of the radius of the Gauge.
protected  boolean visible
          Determines whether the ticks of this type will be visible.
 
Constructor Summary
AbstractGaugeTickStyle()
           
 
Method Summary
 boolean equals(Object o)
           
 Color getTickColor()
          Returns the color of the ticks
 double getTickLength()
          Returns the length of ticks, specified as a proportion of axis width
 double getTickWidth()
          Returns the width of ticks, specified as a percentage of the radius of the Gauge.
 int hashCode()
           
 boolean isVisible()
          Returns a boolean to indicate whether the ticks are visible
 void setTickColor(Color tickColor)
          Specify the color to use for ticks
 void setTickLength(double tickLength)
          Specify the length of ticks, supplied as a proportion of axis width
 void setTickWidth(double tickWidth)
          Tick width is specified as a percentage of the radius of the Gauge.
 void setVisible(boolean visible)
          Specify whether the ticks are visible
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tickColor

protected Color tickColor

visible

protected boolean visible
Determines whether the ticks of this type will be visible.


tickLength

protected double tickLength
Tick Length is specified in terms of the proportion of the axis width


tickWidth

protected double tickWidth
Tick width is specified as a percentage of the radius of the Gauge. The ratio is usually small, so making it a percentage makes it easier to deal with. A tickWidth of around 1 or 0.5 usually gives good results. The tick width is related to the radius size so that the tick width does not have to be adjusted when the axis width changes

Constructor Detail

AbstractGaugeTickStyle

public AbstractGaugeTickStyle()
Method Detail

getTickColor

public Color getTickColor()
Returns the color of the ticks

Returns:
the color of the ticks

setTickColor

public void setTickColor(Color tickColor)
Specify the color to use for ticks

Parameters:
tickColor - the color to use for ticks

getTickLength

public double getTickLength()
Returns the length of ticks, specified as a proportion of axis width

Returns:
the length of ticks, specified as a proportion of axis width

setTickLength

public void setTickLength(double tickLength)
Specify the length of ticks, supplied as a proportion of axis width

Parameters:
tickLength - the length of ticks as a proportion of axis width

getTickWidth

public double getTickWidth()
Returns the width of ticks, specified as a percentage of the radius of the Gauge. A tick width of around 1 or 0.5 usually gives good results.

Returns:
the width of ticks, specified as a percentage of the radius of the Gauge.

setTickWidth

public void setTickWidth(double tickWidth)
Tick width is specified as a percentage of the radius of the Gauge. The ratio is usually small, so making it a percentage makes it easier to deal with. A tickWidth of around 1 or 0.5 usually gives good results. The tick width is related to the radius size so that the tick width does not have to be adjusted when the axis width changes


isVisible

public boolean isVisible()
Returns a boolean to indicate whether the ticks are visible

Returns:
a boolean to indicate whether the ticks are visible

setVisible

public void setVisible(boolean visible)
Specify whether the ticks are visible

Parameters:
visible - a boolean to indicate whether ticks are visible

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

JIDE 3.5.15