com.metsci.glimpse.painter.info
Class AnnotationPainter
java.lang.Object
com.metsci.glimpse.painter.base.GlimpsePainterImpl
com.metsci.glimpse.painter.base.GlimpsePainter2D
com.metsci.glimpse.painter.base.GlimpseDataPainter2D
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
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnotationPainter
public AnnotationPainter()
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.