com.metsci.glimpse.painter.base
Class GlimpsePainterImpl

java.lang.Object
  extended by com.metsci.glimpse.painter.base.GlimpsePainterImpl
All Implemented Interfaces:
GlimpsePainter
Direct Known Subclasses:
BorderPainter, CopyrightPainter, GlimpsePainter1D, GlimpsePainter2D, ScalePainter, SimpleTextPainter

public abstract class GlimpsePainterImpl
extends java.lang.Object
implements GlimpsePainter


Field Summary
static int BYTES_PER_FLOAT
           
static java.util.logging.Logger logger
           
 
Constructor Summary
GlimpsePainterImpl()
           
 
Method Summary
 void dispose(GlimpseContext context)
          Free GPU and CPU memory associated with this this GlimpsePainter.
 boolean isDisposed()
           
 boolean isVisible()
           
 void paintTo(GlimpseContext context)
          Renders this GlimpsePainter to the provided GlimpseContext.
 void setErrorHandling(boolean doErrorHandling)
           
 void setLookAndFeel(LookAndFeel laf)
          Sets display options for the painter based on the provided LookAndFeel.
 void setVisible(boolean show)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static final java.util.logging.Logger logger

BYTES_PER_FLOAT

public static final int BYTES_PER_FLOAT
See Also:
Constant Field Values
Constructor Detail

GlimpsePainterImpl

public GlimpsePainterImpl()
Method Detail

setErrorHandling

public void setErrorHandling(boolean doErrorHandling)

setVisible

public void setVisible(boolean show)

isVisible

public boolean isVisible()

setLookAndFeel

public void setLookAndFeel(LookAndFeel laf)
Description copied from interface: GlimpsePainter
Sets display options for the painter based on the provided LookAndFeel.

Specified by:
setLookAndFeel in interface GlimpsePainter

paintTo

public void paintTo(GlimpseContext context)
Description copied from interface: GlimpsePainter
Renders this GlimpsePainter to the provided GlimpseContext. The context defines the GLContext to use. The GlimpseContext also specifies where this GlimpsePainter should be rendered via the RenderTarget contained in the GlimpseContext.

Specified by:
paintTo in interface GlimpsePainter

dispose

public void dispose(GlimpseContext context)
Description copied from interface: GlimpsePainter
Free GPU and CPU memory associated with this this GlimpsePainter. After this call returns, the results of calling other GlimpsePainter methods besides isDisposed( ) are undefined.

Specified by:
dispose in interface GlimpsePainter

isDisposed

public boolean isDisposed()
Specified by:
isDisposed in interface GlimpsePainter


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