Package | Description |
---|---|
ej.drawing | |
ej.microui.display |
Modifier and Type | Method and Description |
---|---|
static void |
TransformPainter.drawDeformedImage(GraphicsContext gc,
Image image,
int x,
int y,
int[] xys)
Draws a deformed image at the given anchor top-left point.
The deformed image is identified by its four corner points. |
static void |
TransformPainter.drawFlippedImage(GraphicsContext gc,
Image image,
int x,
int y,
TransformPainter.Flip flip)
Draws the image in the graphics context at given anchor top-left position, using the given flip.
|
static void |
TransformPainter.drawFlippedImage(GraphicsContext gc,
Image image,
int x,
int y,
TransformPainter.Flip flip,
int alpha)
Draws the image in the graphics context at given anchor top-left position, using the given flip and opacity
level.
|
static void |
ShapePainter.drawPolygon(GraphicsContext gc,
int[] xys)
Draws the closed polygon which is defined by the array of integer coordinates, using the current color.
|
static void |
ShapePainter.drawPolygon(GraphicsContext gc,
int[] xys,
int offset,
int length)
Draws the closed polygon which is defined by the array of integer coordinates, using the current color.
|
static void |
TransformPainter.drawRotatedCharBilinear(GraphicsContext gc,
Font font,
char c,
int x,
int y,
int rx,
int ry,
float angle)
Draws the character applying the given rotation.
|
static void |
TransformPainter.drawRotatedCharBilinear(GraphicsContext gc,
Font font,
char c,
int x,
int y,
int rx,
int ry,
float angle,
int alpha)
Draws the character applying the given rotation and opacicity level.
|
static void |
TransformPainter.drawRotatedCharNearestNeighbor(GraphicsContext gc,
Font font,
char c,
int x,
int y,
int rx,
int ry,
float angle)
Draws the character applying the given rotation.
|
static void |
TransformPainter.drawRotatedCharNearestNeighbor(GraphicsContext gc,
Font font,
char c,
int x,
int y,
int rx,
int ry,
float angle,
int alpha)
Draws the character applying the given rotation and opacity level.
|
static void |
TransformPainter.drawRotatedImageBilinear(GraphicsContext gc,
Image image,
int x,
int y,
int rx,
int ry,
float angle)
Draws the image applying the given rotation.
|
static void |
TransformPainter.drawRotatedImageBilinear(GraphicsContext gc,
Image image,
int x,
int y,
int rx,
int ry,
float angle,
int alpha)
Draws the image applying the given rotation fixing the opacity level.
|
static void |
TransformPainter.drawRotatedImageNearestNeighbor(GraphicsContext gc,
Image image,
int x,
int y,
int rx,
int ry,
float angle)
Draws the image applying the given rotation.
|
static void |
TransformPainter.drawRotatedImageNearestNeighbor(GraphicsContext gc,
Image image,
int x,
int y,
int rx,
int ry,
float angle,
int alpha)
Draws the image applying the given rotation and opacity level.
|
static void |
TransformPainter.drawScaledCharBilinear(GraphicsContext gc,
char character,
Font font,
int x,
int y,
float factorX,
float factorY)
Draws the character in the graphics context at given anchor top-left position and using the given scaling factor.
|
static void |
TransformPainter.drawScaledImageBilinear(GraphicsContext gc,
Image image,
int x,
int y,
float factorX,
float factorY)
Draws the image in the graphics context at given anchor top-left position and using the given scaling factor.
|
static void |
TransformPainter.drawScaledImageBilinear(GraphicsContext gc,
Image image,
int x,
int y,
float factorX,
float factorY,
int alpha)
Draws the image in the graphics context at given anchor top-left position and using the given scaling factor and
opacity level.
|
static void |
TransformPainter.drawScaledImageNearestNeighbor(GraphicsContext gc,
Image image,
int x,
int y,
float factorX,
float factorY)
Draws the image in the graphics context at given anchor top-left position and using the given scaling factor.
|
static void |
TransformPainter.drawScaledImageNearestNeighbor(GraphicsContext gc,
Image image,
int x,
int y,
float factorX,
float factorY,
int alpha)
Draws the image in the graphics context at given anchor top-left position and using the given scaling factor and
opacity level.
|
static void |
TransformPainter.drawScaledRenderableStringBilinear(GraphicsContext gc,
RenderableString string,
int x,
int y,
float factorX,
float factorY)
Draws the renderable string in the graphics context at given anchor top-left position and using the given scaling
factor.
|
static void |
TransformPainter.drawScaledStringBilinear(GraphicsContext gc,
String string,
Font font,
int x,
int y,
float factorX,
float factorY)
Draws the string in the graphics context at given anchor top-left position and using the given scaling factor.
|
static void |
TransformPainter.drawScaledSubstringBilinear(GraphicsContext gc,
String string,
int offset,
int length,
Font font,
int x,
int y,
float factorX,
float factorY)
Draws the substring in the graphics context at given anchor top-left position and using the given scaling factor.
|
static void |
ShapePainter.drawThickCircle(GraphicsContext gc,
int x,
int y,
int diameter,
int thickness)
Draws the outline of a circle covering the square specified by its diameter, using the
GraphicsContext 's
current color.The center of the circle is defined as the center of the square whose origin is at (x,y) (upper-left
corner) and whose dimension is given by diameter .If diameter is negative, nothing is drawn. |
static void |
ShapePainter.drawThickCircleArc(GraphicsContext gc,
int x,
int y,
int diameter,
float startAngle,
float arcAngle,
int thickness)
Draws the outline of a circular arc covering the specified square, using the
GraphicsContext 's current
color.The arc is drawn from startAngle up to arcAngle degrees. |
static void |
ShapePainter.drawThickEllipse(GraphicsContext gc,
int x,
int y,
int width,
int height,
int thickness)
Draws the outline of a ellipse covering the specified rectangle, using the
GraphicsContext 's current
color.The center of the ellipse is defined as the center of the rectangle whose origin is at (x,y)
(upper-left corner) and whose dimension is given by width and height .If either width or height is negative or zero, nothing is drawn. |
static void |
ShapePainter.drawThickFadedCircle(GraphicsContext gc,
int x,
int y,
int diameter,
int thickness,
int fade)
Draws the faded outline of a circle covering the square specified by its diameter, using the
GraphicsContext 's current color.The center of the circle is defined as the center of the square whose origin is at (x,y) (upper-left
corner) and whose dimension is given by diameter .If diameter is negative or zero, nothing is drawn. |
static void |
ShapePainter.drawThickFadedCircleArc(GraphicsContext gc,
int x,
int y,
int diameter,
float startAngle,
float arcAngle,
int thickness,
int fade,
ShapePainter.Cap startCap,
ShapePainter.Cap endCap)
Draws the faded outline of a circular arc covering the specified square, using the current color and caps.
|
static void |
ShapePainter.drawThickFadedEllipse(GraphicsContext gc,
int x,
int y,
int width,
int height,
int thickness,
int fade)
Draws the outline of a ellipse covering the specified rectangle, using the
GraphicsContext 's current
color.The center of the ellipse is defined as the center of the rectangle whose origin is at (x,y)
(upper-left corner) and whose dimension is given by width and height .If either width or height is negative or zero, nothing is drawn. |
static void |
ShapePainter.drawThickFadedLine(GraphicsContext gc,
int startX,
int startY,
int endX,
int endY,
int thickness,
int fade,
ShapePainter.Cap startCap,
ShapePainter.Cap endCap)
|
static void |
ShapePainter.drawThickFadedPoint(GraphicsContext gc,
int x,
int y,
int thickness,
int fade)
Draws a faded point at
(x,y) using the GraphicsContext 's current color. |
static void |
ShapePainter.drawThickLine(GraphicsContext gc,
int startX,
int startY,
int endX,
int endY,
int thickness)
|
static void |
ShapePainter.fillPolygon(GraphicsContext gc,
int[] xys)
Fills the closed polygon which is defined by the array of integer coordinates, using the current color.
|
static void |
ShapePainter.fillPolygon(GraphicsContext gc,
int[] xys,
int offset,
int length)
Fills the closed polygon which is defined by the array of integer coordinates, using the current color.
|
Modifier and Type | Method and Description |
---|---|
GraphicsContext |
Display.getGraphicsContext()
Returns the display's
GraphicsContext . |
GraphicsContext |
BufferedImage.getGraphicsContext()
Returns 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,
String string,
Font font,
int x,
int y)
Draws a string.
|
static void |
Painter.drawSubstring(GraphicsContext gc,
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.
|