public class BackgroundPainter extends Object implements GlimpsePainter
Constructor and Description |
---|
BackgroundPainter() |
BackgroundPainter(boolean isFrameBackground) |
Modifier and Type | Method and Description |
---|---|
void |
dispose(GlimpseContext context)
Free GPU and CPU memory associated with this this GlimpsePainter.
|
float[] |
getColor() |
boolean |
isDisposed() |
boolean |
isVisible() |
void |
paintTo(GlimpseContext context)
Renders this GlimpsePainter to the provided GlimpseContext.
|
BackgroundPainter |
setColor(float[] rgba) |
BackgroundPainter |
setColor(float r,
float g,
float b,
float a) |
void |
setLookAndFeel(LookAndFeel laf)
Sets display options for the painter based on the provided LookAndFeel.
|
void |
setLookAndFeelKey(String key) |
void |
setVisible(boolean show)
A painter which is set to non-visible should make no OpenGL calls when its
paintTo method is called.
|
public BackgroundPainter()
public BackgroundPainter(boolean isFrameBackground)
public void setVisible(boolean show)
GlimpsePainter
setVisible
in interface GlimpsePainter
public boolean isVisible()
isVisible
in interface GlimpsePainter
public float[] getColor()
public BackgroundPainter setColor(float[] rgba)
public BackgroundPainter setColor(float r, float g, float b, float a)
public void setLookAndFeelKey(String key)
public void paintTo(GlimpseContext context)
GlimpsePainter
paintTo
in interface GlimpsePainter
public void setLookAndFeel(LookAndFeel laf)
GlimpsePainter
setLookAndFeel
in interface GlimpsePainter
public void dispose(GlimpseContext context)
GlimpsePainter
dispose
in interface GlimpsePainter
public boolean isDisposed()
isDisposed
in interface GlimpsePainter
Copyright © 2013 Metron, Inc.. All rights reserved.