org.micropainter.ext.gauge.chrono
Class ChronoPainter

java.lang.Object
  extended by org.micropainter.core.painter.AbstractDevice2DPainter
      extended by org.micropainter.ext.gauge.chrono.ChronoPainter

public class ChronoPainter
extends AbstractDevice2DPainter


Nested Class Summary
(package private)  class ChronoPainter.ChronoEngine
           
 
Field Summary
private  Chrono chrono
           
(package private)  int curentAngleMin
           
(package private)  double curentAngleSec
           
private  ChronoPainter.ChronoEngine engine
           
(package private)  java.awt.Shape iMin
           
(package private)  java.awt.Shape iSecond
           
(package private)  java.awt.Shape iSecondTik
           
private  long resolution
           
private  long startTime
           
 
Constructor Summary
ChronoPainter()
           
 
Method Summary
 void doPaint(java.awt.Graphics2D g2d)
          painting operation should be sub classes
private  float getGlyphWidth(java.awt.font.GlyphVector glyphVector)
           
private  float getGlyphWidthAtToken(java.awt.font.GlyphVector glyphVector, int tokenIndex)
           
private  float[] getTokenWidths(java.awt.font.GlyphVector glyphVector)
           
 void startChrono()
           
 void stopChrono()
           
private  void timeEvent(long curentTime)
           
 
Methods inherited from class org.micropainter.core.painter.AbstractDevice2DPainter
getAntialiasing, getFractional, getInterpolation, getName, getTextAntialiasing, getWindow2D, isLockPainter, lockPainter, paint, setAntialiasing, setFractional, setInterpolation, setName, setTextAntialiasing, setWindow2D, unlockPainter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

chrono

private Chrono chrono

startTime

private long startTime

resolution

private long resolution

engine

private ChronoPainter.ChronoEngine engine

iSecondTik

java.awt.Shape iSecondTik

iSecond

java.awt.Shape iSecond

curentAngleMin

int curentAngleMin

iMin

java.awt.Shape iMin

curentAngleSec

double curentAngleSec
Constructor Detail

ChronoPainter

public ChronoPainter()
Method Detail

timeEvent

private void timeEvent(long curentTime)

startChrono

public void startChrono()

stopChrono

public void stopChrono()

doPaint

public void doPaint(java.awt.Graphics2D g2d)
Description copied from class: AbstractDevice2DPainter
painting operation should be sub classes

Specified by:
doPaint in class AbstractDevice2DPainter

getTokenWidths

private float[] getTokenWidths(java.awt.font.GlyphVector glyphVector)

getGlyphWidth

private float getGlyphWidth(java.awt.font.GlyphVector glyphVector)

getGlyphWidthAtToken

private float getGlyphWidthAtToken(java.awt.font.GlyphVector glyphVector,
                                   int tokenIndex)