public class GL2ColorHelper extends AbstractColorHelper
Constructor and Description |
---|
GL2ColorHelper() |
Modifier and Type | Method and Description |
---|---|
void |
copyArea(int x,
int y,
int width,
int height,
int dx,
int dy) |
Paint |
getPaint() |
void |
setColorNoRespectComposite(Color c) |
void |
setColorRespectComposite(Color c)
Sets the current color with a call to glColor4*.
|
void |
setG2D(GLGraphics2D g2d)
Sets the current
GLGraphics2D parent. |
void |
setPaint(Paint paint) |
void |
setPaintMode() |
void |
setXORMode(Color c) |
dispose, getBackground, getColor, getComposite, pop, push, resetHints, setBackground, setColor, setComposite, setHint
public void setG2D(GLGraphics2D g2d)
G2DDrawingHelper
GLGraphics2D
parent. The current GL
and
GLContext
objects can be accessed from this. This should clear all
internal stacks in the helper object because previous painting iterations
may not have called dispose() for each time they called create().setG2D
in interface G2DDrawingHelper
setG2D
in class AbstractColorHelper
g2d
- The parent context for subsequent drawing operations.public void setPaint(Paint paint)
setPaint
in interface GLG2DColorHelper
setPaint
in class AbstractColorHelper
public Paint getPaint()
getPaint
in interface GLG2DColorHelper
getPaint
in class AbstractColorHelper
public void setColorNoRespectComposite(Color c)
public void setColorRespectComposite(Color c)
public void setPaintMode()
public void setXORMode(Color c)
public void copyArea(int x, int y, int width, int height, int dx, int dy)
Copyright © 2010-2013. All Rights Reserved.