org.swiftgantt.ui.timeaxis
Class BaseTimeAxis

java.lang.Object
  extended by org.swiftgantt.ui.timeaxis.BaseTimeAxis
All Implemented Interfaces:
Paintable, TimeAxis
Direct Known Subclasses:
BaseNoRestoutTimeAxis, BaseRestoutTimeAxis

public abstract class BaseTimeAxis
extends java.lang.Object
implements TimeAxis

Base class for all time axis.

Version:
1.0
Author:
Yuxing Wang

Field Summary
static int STEPS_OF_MAJOR_SCALE
           
 
Constructor Summary
BaseTimeAxis()
           
 
Method Summary
 int getStepsToFirstMajorScale()
           
 int getTotalStepsCount()
           
 void paint(java.awt.Graphics g, javax.swing.JComponent c, java.awt.Rectangle rect)
          This paint after sub-class has painted.
 void setTotalStepsCount(int totalStepsCount)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STEPS_OF_MAJOR_SCALE

public static int STEPS_OF_MAJOR_SCALE
Constructor Detail

BaseTimeAxis

public BaseTimeAxis()
Method Detail

paint

public void paint(java.awt.Graphics g,
                  javax.swing.JComponent c,
                  java.awt.Rectangle rect)
This paint after sub-class has painted.

Specified by:
paint in interface Paintable

getTotalStepsCount

public int getTotalStepsCount()

setTotalStepsCount

public void setTotalStepsCount(int totalStepsCount)

getStepsToFirstMajorScale

public int getStepsToFirstMajorScale()