Package | Description |
---|---|
ej.microui.display |
Contains display management.
|
Modifier and Type | Method and Description |
---|---|
GraphicsContext |
Display.getGraphicsContext()
Returns the display's
GraphicsContext . |
GraphicsContext |
BufferedImage.getGraphicsContext()
Gets the
GraphicsContext associated with this image, which may be used in order to draw on the image. |
Modifier and Type | Method and Description |
---|---|
static void |
Painter.drawChar(GraphicsContext gc,
char character,
Font font,
int x,
int y)
Draws a character.
|
static void |
Painter.drawCircle(GraphicsContext gc,
int x,
int y,
int diameter)
Draws a circle.
|
static void |
Painter.drawCircleArc(GraphicsContext gc,
int x,
int y,
int diameter,
float startAngle,
float arcAngle)
Draws a circle arc.
|
static void |
Painter.drawDisplayRegion(GraphicsContext gc,
int xSource,
int ySource,
int width,
int height,
int xDestination,
int yDestination)
Draws a region of the display.
|
static void |
Painter.drawDisplayRegion(GraphicsContext gc,
int xSource,
int ySource,
int width,
int height,
int xDestination,
int yDestination,
int alpha)
Draws a region of the display.
|
static void |
Painter.drawEllipse(GraphicsContext gc,
int x,
int y,
int width,
int height)
Draws an ellipse.
|
static void |
Painter.drawEllipseArc(GraphicsContext gc,
int x,
int y,
int width,
int height,
float startAngle,
float arcAngle)
Draws an ellipse arc.
|
static void |
Painter.drawHorizontalLine(GraphicsContext gc,
int x,
int y,
int length)
Draws an horizontal line between two points.
|
static void |
Painter.drawImage(GraphicsContext gc,
Image image,
int x,
int y)
Draws the image at the given anchor top-left point.
|
static void |
Painter.drawImage(GraphicsContext gc,
Image image,
int x,
int y,
int alpha)
Draws the image at the given anchor top-left point.
|
static void |
Painter.drawImageRegion(GraphicsContext gc,
Image image,
int xSource,
int ySource,
int width,
int height,
int xDestination,
int yDestination)
Draws a region of the image.
|
static void |
Painter.drawImageRegion(GraphicsContext gc,
Image image,
int xSource,
int ySource,
int width,
int height,
int xDestination,
int yDestination,
int alpha)
Draws a region of an image.
|
static void |
Painter.drawLine(GraphicsContext gc,
int startX,
int startY,
int endX,
int endY)
Draws a line between two points.
|
static void |
Painter.drawRectangle(GraphicsContext gc,
int x,
int y,
int width,
int height)
Draws an orthogonal rectangle.
|
static void |
Painter.drawRenderableString(GraphicsContext gc,
RenderableString string,
int x,
int y)
Draws the string using the font and given graphics context color.
|
static void |
Painter.drawRoundedRectangle(GraphicsContext gc,
int x,
int y,
int width,
int height,
int cornerEllipseWidth,
int cornerEllipseHeight)
Draws an orthogonal rectangle with rounded corners.
|
static void |
Painter.drawString(GraphicsContext gc,
java.lang.String string,
Font font,
int x,
int y)
Draws a string.
|
static void |
Painter.drawSubstring(GraphicsContext gc,
java.lang.String string,
int offset,
int length,
Font font,
int x,
int y)
Draws a subset of a string.
|
static void |
Painter.drawVerticalLine(GraphicsContext gc,
int x,
int y,
int length)
Draws a vertical line between two points.
|
static void |
Painter.fillCircle(GraphicsContext gc,
int x,
int y,
int diameter)
Fills a circle.
|
static void |
Painter.fillCircleArc(GraphicsContext gc,
int x,
int y,
int diameter,
float startAngle,
float arcAngle)
Fills a circle arc.
|
static void |
Painter.fillEllipse(GraphicsContext gc,
int x,
int y,
int width,
int height)
Fills an ellipse.
|
static void |
Painter.fillEllipseArc(GraphicsContext gc,
int x,
int y,
int width,
int height,
float startAngle,
float arcAngle)
Fills an ellipse arc.
|
static void |
Painter.fillRectangle(GraphicsContext gc,
int x,
int y,
int width,
int height)
Fills an orthogonal rectangle.
|
static void |
Painter.fillRoundedRectangle(GraphicsContext gc,
int x,
int y,
int width,
int height,
int cornerEllipseWidth,
int cornerEllipseHeight)
Fills an orthogonal rectangle with rounded corners.
|
protected abstract void |
Displayable.render(GraphicsContext gc)
Renders the displayable.
|
static void |
Painter.writePixel(GraphicsContext gc,
int x,
int y)
Draws the pixel at the given coordinates.
|