public interface G2DDrawingHelper
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes the helper object.
|
void |
pop(GLGraphics2D parentG2d)
Sets the new
GLGraphics2D context in a stack after a pop. |
void |
push(GLGraphics2D newG2d)
Sets the new
GLGraphics2D context in a stack. |
void |
resetHints()
Clears all hints back to their default states.
|
void |
setG2D(GLGraphics2D g2d)
Sets the current
GLGraphics2D parent. |
void |
setHint(RenderingHints.Key key,
Object value)
Sets a new rendering hint.
|
void setG2D(GLGraphics2D g2d)
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().g2d
- The parent context for subsequent drawing operations.void push(GLGraphics2D newG2d)
GLGraphics2D
context in a stack. This is called when
Graphics2D.create()
is called and each helper is given notice to
push any necessary information onto the stack. This is used in conjunction
with pop(GLGraphics2D)
.newG2d
- The new context, top of the stack.void pop(GLGraphics2D parentG2d)
GLGraphics2D
context in a stack after a pop. This is
called when Graphics2D.dispose()
is called and each helper is given
notice to pop any necessary information off the stack. This is used in
conjunction with push(GLGraphics2D)
.parentG2d
- The new context, top of the stack - which is actually the parent
of what was popped.void setHint(RenderingHints.Key key, Object value)
GLGraphics2D
object, but all new state changes are propagated to
all listeners.key
- The rendering hint key.value
- The new hint value.void resetHints()
void dispose()
Graphics2D
object. This should dispose all GL resources when
all drawing is finished and no more calls will be executing on this OpenGL
context and these resources.Copyright © 2010-2013. All Rights Reserved.