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)
GlimpsePaintersetVisible in interface GlimpsePainterpublic boolean isVisible()
isVisible in interface GlimpsePainterpublic 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)
GlimpsePainterpaintTo in interface GlimpsePainterpublic void setLookAndFeel(LookAndFeel laf)
GlimpsePaintersetLookAndFeel in interface GlimpsePainterpublic void dispose(GlimpseContext context)
GlimpsePainterdispose in interface GlimpsePainterpublic boolean isDisposed()
isDisposed in interface GlimpsePainterCopyright © 2018 Metron, Inc.. All rights reserved.