public final class OCamlGraphics extends java.lang.Object
OCamlGraphics
provides utility methods related to the
Graphics
module.Modifier and Type | Method and Description |
---|---|
static java.awt.image.BufferedImage |
getBuffer()
Returns the
Graphics buffer of the current context. |
static java.awt.Canvas |
getCanvas()
Returns the
Graphics canvas of the current context. |
static java.awt.Canvas |
getCanvas(org.ocamljava.runtime.context.Context ctxt)
Returns the
Graphics canvas of a context. |
static java.awt.Frame |
getFrame()
Returns the
Graphics frame of the current context. |
static java.awt.Frame |
getFrame(org.ocamljava.runtime.context.Context ctxt)
Returns the
Graphics frame of a context. |
public static java.awt.Frame getFrame(org.ocamljava.runtime.context.Context ctxt)
Graphics
frame of a context.ctxt
- context to get frame from - should not be null
Graphics
frame of the passed context,
null
if the Graphics
library has not been
opened or is canvas-onlypublic static java.awt.Frame getFrame()
Graphics
frame of the current context.Graphics
frame of the current context,
null
if the Graphics
library has not been
opened or is canvas-onlypublic static java.awt.Canvas getCanvas(org.ocamljava.runtime.context.Context ctxt)
Graphics
canvas of a context.ctxt
- context to get canvas from - should not be null
Graphics
canvas of the passed context,
null
if the Graphics
library has not been
openedpublic static java.awt.Canvas getCanvas()
Graphics
canvas of the current context.Graphics
canvas of the current context,
null
if the Graphics
library has not been
openedpublic static java.awt.image.BufferedImage getBuffer()
Graphics
buffer of the current context. Graphics
buffer of the current context,
null
if the Graphics
library has not been
opened