com.metsci.glimpse.axis.painter
Class TimeAxisPainter

java.lang.Object
  extended by com.metsci.glimpse.painter.base.GlimpsePainterImpl
      extended by com.metsci.glimpse.painter.base.GlimpsePainter1D
          extended by com.metsci.glimpse.axis.painter.TimeAxisPainter
All Implemented Interfaces:
GlimpsePainter
Direct Known Subclasses:
TimeXAxisPainter, TimeYAxisPainter

public abstract class TimeAxisPainter
extends GlimpsePainter1D

A painter for displaying timeline axes. Axis values are interpreted as offsets from an epoch. Both dates and times are displayed with a configurable format and time zone.

Author:
ulman

Field Summary
 
Fields inherited from class com.metsci.glimpse.painter.base.GlimpsePainterImpl
BYTES_PER_FLOAT, logger
 
Constructor Summary
TimeAxisPainter(TimeStampFormat minuteSecondFormat, TimeStampFormat hourDayMonthFormat, TimeStampFormat hourMinuteFormat, TimeStampFormat dayMonthYearFormat, TimeStampFormat dayFormat, TimeStampFormat monthFormat, TimeStampFormat monthYearFormat, TimeStampFormat yearFormat, java.util.TimeZone timeZone, Epoch epoch)
           
 
Method Summary
 void dispose(javax.media.opengl.GLContext context)
           
 double fromTimeStamp(TimeStamp time)
           
 Epoch getEpoch()
           
 void setCurrentTimeTextColor(float[] color)
           
 void setCurrentTimeTickColor(float[] color)
           
 void setEpoch(Epoch epoch)
           
 void setFont(java.awt.Font font)
           
 void setFont(java.awt.Font font, boolean antialias)
           
 void setPixelsBetweenTicks(int pixels)
           
 void setTextColor(float[] color)
           
 void setTickColor(float[] color)
           
 void setTickLineLength(int pixels)
           
 void showCurrentTimeLabel(boolean show)
           
 TimeStamp toTimeStamp(double time)
           
 
Methods inherited from class com.metsci.glimpse.painter.base.GlimpsePainter1D
paintTo, paintTo
 
Methods inherited from class com.metsci.glimpse.painter.base.GlimpsePainterImpl
dispose, isDisposed, isVisible, paintTo, setErrorHandling, setLookAndFeel, setVisible
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeAxisPainter

public TimeAxisPainter(TimeStampFormat minuteSecondFormat,
                       TimeStampFormat hourDayMonthFormat,
                       TimeStampFormat hourMinuteFormat,
                       TimeStampFormat dayMonthYearFormat,
                       TimeStampFormat dayFormat,
                       TimeStampFormat monthFormat,
                       TimeStampFormat monthYearFormat,
                       TimeStampFormat yearFormat,
                       java.util.TimeZone timeZone,
                       Epoch epoch)
Method Detail

setTickLineLength

public void setTickLineLength(int pixels)

setPixelsBetweenTicks

public void setPixelsBetweenTicks(int pixels)

setEpoch

public void setEpoch(Epoch epoch)

getEpoch

public Epoch getEpoch()

toTimeStamp

public TimeStamp toTimeStamp(double time)

fromTimeStamp

public double fromTimeStamp(TimeStamp time)

setTickColor

public void setTickColor(float[] color)

setTextColor

public void setTextColor(float[] color)

setCurrentTimeTickColor

public void setCurrentTimeTickColor(float[] color)

setCurrentTimeTextColor

public void setCurrentTimeTextColor(float[] color)

showCurrentTimeLabel

public void showCurrentTimeLabel(boolean show)

setFont

public void setFont(java.awt.Font font)

setFont

public void setFont(java.awt.Font font,
                    boolean antialias)

dispose

public void dispose(javax.media.opengl.GLContext context)


Copyright © 2012 Metron, Inc.. All Rights Reserved.