lt.monarch.chart.chart2D.axis
Class TickSettings

java.lang.Object
  extended by lt.monarch.chart.style.AbstractStyle<AxisPaintTags>
      extended by lt.monarch.chart.chart2D.axis.TickSettings
All Implemented Interfaces:
java.io.Serializable

public class TickSettings
extends AbstractStyle<AxisPaintTags>

Axis tick settings

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
 
Fields inherited from class lt.monarch.chart.style.AbstractStyle
dirty
 
Constructor Summary
Modifier Constructor and Description
protected TickSettings(Style style)
           
 
Method Summary
Modifier and Type Method and Description
 boolean getHighlightMiddleSubtick()
          Gets if middle subtick is highlighted.
 int getMinTickSpacing()
          Gets the minimum tick spacing value
 int getSubscaleTickCount()
          Gets the tick length
 TickLayout getTickLayout()
          Gets current tick mark layout
 int getTickLength()
          Gets the tick length
 int getTickOffset()
          Gets tick offset
 boolean isTickOverLabel()
          Gets the tick is over label.
 void setHighlightMiddleSubtick(boolean isHighlighted)
          Sets that middle subtick is highlighted.
 void setMinTickSpacing(int spacing)
          Sets the minimum spacing between axis marks in pixels.
 void setSubscaleTickCount(int tickCount)
          Sets the subscale tick count
 void setTickLayout(TickLayout tickLayout)
          Sets axis tick mark orientation flag in the local stylesheet.
 void setTickLength(int tickLength)
          Sets the tick length
 void setTickOffset(int tickOffset)
          Sets tick offset
 void setTickOverLabel(boolean isOverLabel)
          Sets the tick is over label.
 
Methods inherited from class lt.monarch.chart.style.AbstractStyle
dispose, finalize
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TickSettings

protected TickSettings(Style style)
Method Detail

setMinTickSpacing

public void setMinTickSpacing(int spacing)
Sets the minimum spacing between axis marks in pixels. If actual spacing in less than the one specified, ticks are not drawn.

Parameters:
spacing - minimum mark spacing in pixels

getTickOffset

public int getTickOffset()
Gets tick offset

Returns:
the tick offset

setTickOffset

public void setTickOffset(int tickOffset)
Sets tick offset

Parameters:
tickOffset - the tick offset

getMinTickSpacing

public int getMinTickSpacing()
Gets the minimum tick spacing value

Returns:
the minimum tick spacing value

getTickLayout

public TickLayout getTickLayout()
Gets current tick mark layout

Returns:
axis tick layout

setTickLayout

public void setTickLayout(TickLayout tickLayout)
Sets axis tick mark orientation flag in the local stylesheet.

Parameters:
tickLayout - axis tick layout (allowed values are : OUTSIDE, INSIDE or INVISIBLE)

getTickLength

public int getTickLength()
Gets the tick length

Returns:
the tick length

setTickLength

public void setTickLength(int tickLength)
Sets the tick length

Parameters:
tickLength - the tick length

getSubscaleTickCount

public int getSubscaleTickCount()
Gets the tick length

Returns:
the tick length

setSubscaleTickCount

public void setSubscaleTickCount(int tickCount)
Sets the subscale tick count

Parameters:
tickCount - the subscale tick count

isTickOverLabel

public boolean isTickOverLabel()
Gets the tick is over label.

Returns:
the tick is over label

setTickOverLabel

public void setTickOverLabel(boolean isOverLabel)
Sets the tick is over label.

Parameters:
tickCount - the tick is over label

getHighlightMiddleSubtick

public boolean getHighlightMiddleSubtick()
Gets if middle subtick is highlighted.

Returns:
the tick is highlighted

setHighlightMiddleSubtick

public void setHighlightMiddleSubtick(boolean isHighlighted)
Sets that middle subtick is highlighted.

Parameters:
isHighlighted - tick is highlighted