com.metsci.glimpse.painter.info
Class AnnotationPainter

java.lang.Object
  extended by com.metsci.glimpse.painter.base.GlimpsePainterImpl
      extended by com.metsci.glimpse.painter.base.GlimpsePainter2D
          extended by com.metsci.glimpse.painter.base.GlimpseDataPainter2D
              extended by com.metsci.glimpse.painter.info.AnnotationPainter
All Implemented Interfaces:
GlimpsePainter

public class AnnotationPainter
extends GlimpseDataPainter2D

Displays text annotations at specified locations on a plot.

Author:
ulman

Nested Class Summary
static class AnnotationPainter.Annotation
           
static class AnnotationPainter.AnnotationFont
           
 
Field Summary
 
Fields inherited from class com.metsci.glimpse.painter.base.GlimpsePainterImpl
BYTES_PER_FLOAT, logger
 
Constructor Summary
AnnotationPainter()
           
 
Method Summary
 AnnotationPainter.Annotation addAnnotation(AnnotationPainter.Annotation annotation)
           
 AnnotationPainter.Annotation addAnnotation(java.lang.String text, float x, float y)
           
 AnnotationPainter.Annotation addAnnotation(java.lang.String text, float x, float y, int offset_x, int offset_y, boolean centerX, boolean centerY, AnnotationPainter.AnnotationFont font, float[] color)
           
 AnnotationPainter.Annotation addAnnotation(com.sun.opengl.util.j2d.TextRenderer textRenderer, java.lang.String text, float x, float y, int offset_x, int offset_y, boolean centerX, boolean centerY, float[] color)
           
 void clearAnnotations()
           
 void displayTime(long time)
           
 void displayTimeRange(long minTime, long maxTime)
           
 void paintTo(javax.media.opengl.GL gl, GlimpseBounds bounds, Axis2D axis)
           
 
Methods inherited from class com.metsci.glimpse.painter.base.GlimpseDataPainter2D
paintTo
 
Methods inherited from class com.metsci.glimpse.painter.base.GlimpsePainter2D
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

AnnotationPainter

public AnnotationPainter()
Method Detail

addAnnotation

public AnnotationPainter.Annotation addAnnotation(java.lang.String text,
                                                  float x,
                                                  float y)

addAnnotation

public AnnotationPainter.Annotation addAnnotation(java.lang.String text,
                                                  float x,
                                                  float y,
                                                  int offset_x,
                                                  int offset_y,
                                                  boolean centerX,
                                                  boolean centerY,
                                                  AnnotationPainter.AnnotationFont font,
                                                  float[] color)

addAnnotation

public AnnotationPainter.Annotation addAnnotation(com.sun.opengl.util.j2d.TextRenderer textRenderer,
                                                  java.lang.String text,
                                                  float x,
                                                  float y,
                                                  int offset_x,
                                                  int offset_y,
                                                  boolean centerX,
                                                  boolean centerY,
                                                  float[] color)

addAnnotation

public AnnotationPainter.Annotation addAnnotation(AnnotationPainter.Annotation annotation)

clearAnnotations

public void clearAnnotations()

displayTime

public void displayTime(long time)

displayTimeRange

public void displayTimeRange(long minTime,
                             long maxTime)

paintTo

public void paintTo(javax.media.opengl.GL gl,
                    GlimpseBounds bounds,
                    Axis2D axis)
Specified by:
paintTo in class GlimpseDataPainter2D


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