com.metsci.glimpse.painter.info
Class CursorTextPainter

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.info.CursorTextPainter
All Implemented Interfaces:
GlimpsePainter
Direct Known Subclasses:
CursorTextZPainter

public class CursorTextPainter
extends GlimpsePainter2D

Displays a text box which follows the cursor and displays the position of the cursor in data coordinates.

Author:
ulman

Field Summary
 
Fields inherited from class com.metsci.glimpse.painter.base.GlimpsePainterImpl
BYTES_PER_FLOAT, logger
 
Constructor Summary
CursorTextPainter()
           
 
Method Summary
 void dispose(javax.media.opengl.GLContext context)
           
 void paintTo(GlimpseContext context, GlimpseBounds bounds, Axis2D axis)
           
 void setClampToScreenEdges(boolean clamp)
           
 void setOffsetBySelectionSize(boolean offset)
           
 void setTextBackgroundColor(float[] color)
           
 void setTextColor(float[] color)
           
 
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

CursorTextPainter

public CursorTextPainter()
Method Detail

setTextColor

public void setTextColor(float[] color)

setTextBackgroundColor

public void setTextBackgroundColor(float[] color)

setOffsetBySelectionSize

public void setOffsetBySelectionSize(boolean offset)

setClampToScreenEdges

public void setClampToScreenEdges(boolean clamp)

dispose

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

paintTo

public void paintTo(GlimpseContext context,
                    GlimpseBounds bounds,
                    Axis2D axis)
Specified by:
paintTo in class GlimpsePainter2D


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