Class BackgroundPainter
- java.lang.Object
-
- com.metsci.glimpse.core.painter.decoration.BackgroundPainter
-
- All Implemented Interfaces:
GlimpsePainter
public class BackgroundPainter extends Object implements GlimpsePainter
Paints a simple solid color background.- Author:
- ulman
-
-
Constructor Summary
Constructors Constructor Description BackgroundPainter()BackgroundPainter(boolean isFrameBackground)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose(GlimpseContext context)Free GPU and CPU memory associated with this this GlimpsePainter.float[]getColor()booleanisDisposed()booleanisVisible()voidpaintTo(GlimpseContext context)Renders this GlimpsePainter to the provided GlimpseContext.BackgroundPaintersetColor(float[] rgba)BackgroundPaintersetColor(float r, float g, float b, float a)voidsetLookAndFeel(LookAndFeel laf)Sets display options for the painter based on the provided LookAndFeel.voidsetLookAndFeelKey(String key)voidsetVisible(boolean show)A painter which is set to non-visible should make no OpenGL calls when its paintTo method is called.
-
-
-
Method Detail
-
setVisible
public void setVisible(boolean show)
Description copied from interface:GlimpsePainterA painter which is set to non-visible should make no OpenGL calls when its paintTo method is called.- Specified by:
setVisiblein interfaceGlimpsePainter
-
isVisible
public boolean isVisible()
- Specified by:
isVisiblein interfaceGlimpsePainter
-
getColor
public float[] getColor()
-
setColor
public BackgroundPainter setColor(float[] rgba)
-
setColor
public BackgroundPainter setColor(float r, float g, float b, float a)
-
setLookAndFeelKey
public void setLookAndFeelKey(String key)
-
paintTo
public void paintTo(GlimpseContext context)
Description copied from interface:GlimpsePainterRenders 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:
paintToin interfaceGlimpsePainter
-
setLookAndFeel
public void setLookAndFeel(LookAndFeel laf)
Description copied from interface:GlimpsePainterSets display options for the painter based on the provided LookAndFeel.- Specified by:
setLookAndFeelin interfaceGlimpsePainter
-
dispose
public void dispose(GlimpseContext context)
Description copied from interface:GlimpsePainterFree 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:
disposein interfaceGlimpsePainter
-
isDisposed
public boolean isDisposed()
- Specified by:
isDisposedin interfaceGlimpsePainter
-
-