- CADETBLUE - Static variable in class com.dukescript.api.canvas.Style.Color
-
- CHARTREUSE - Static variable in class com.dukescript.api.canvas.Style.Color
-
- CHOCOLATE - Static variable in class com.dukescript.api.canvas.Style.Color
-
- clearRect(double, double, double, double) - Method in class com.dukescript.api.canvas.GraphicsContext2D
-
Clears a portion of the canvas with a transparent color value.
- clearRect(Canvas, double, double, double, double) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
-
Clears a portion of the canvas with a transparent color value.
- clip() - Method in class com.dukescript.api.canvas.GraphicsContext2D
-
Clips using the current path
- clip(Canvas) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
-
Clips using the current path
- closePath() - Method in class com.dukescript.api.canvas.GraphicsContext2D
-
Closes the path.
- closePath(Canvas) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
-
Closes the path.
- Color(String) - Constructor for class com.dukescript.api.canvas.Style.Color
-
Creates an RGB color specified with an HTML or CSS attribute string.
- com.dukescript.api.canvas - package com.dukescript.api.canvas
-
- com.dukescript.spi.canvas - package com.dukescript.spi.canvas
-
SPI for enabling the Canvas API on different platforms.
- CORAL - Static variable in class com.dukescript.api.canvas.Style.Color
-
- CORNFLOWERBLUE - Static variable in class com.dukescript.api.canvas.Style.Color
-
- CORNSILK - Static variable in class com.dukescript.api.canvas.Style.Color
-
- create(String) - Static method in class com.dukescript.api.canvas.Image
-
Creates a new image referencing a specified URL.
- create(double, double, double, double, List<Style.Stop>) - Static method in class com.dukescript.api.canvas.Style.LinearGradient
-
- create(double, double, double, double, double, double, List<Style.Stop>) - Static method in class com.dukescript.api.canvas.Style.RadialGradient
-
Create a new RadialGradient
- createLinearGradient(double, double, double, double, List<Style.Stop>) - Method in class com.dukescript.api.canvas.GraphicsContext2D
-
Create a LinearGradient to use in Canvas.
- createPattern(Image, String) - Method in class com.dukescript.api.canvas.GraphicsContext2D
-
Create an Image Pattern from a source Image and a repeat style.
- createPixelMap(double, double) - Method in class com.dukescript.api.canvas.GraphicsContext2D
-
Get a pixel array that you can manipulate, e.g.
- createPixelMap(double, double, int[]) - Method in class com.dukescript.api.canvas.GraphicsContext2D
-
Get a pixel array that you can manipulate, e.g.
- createPixelMap(ImageData) - Method in class com.dukescript.api.canvas.GraphicsContext2D
-
Create a new ImageData object with the same dimensions as the object
specified by imageData (this does not copy the image data)
- createPixelMap(Canvas, double, double) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
-
Get a pixel array that you can manipulate, e.g.
- createPixelMap(Canvas, double, double, int[]) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
-
Get a pixel array that you can manipulate, e.g.
- createPixelMap(Canvas, ImageData) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
-
Create a new ImageData object with the same dimensions as the
object specified by imageData (this does not copy the image data)
- createRadialGradient(double, double, double, double, double, double, List<Style.Stop>) - Method in class com.dukescript.api.canvas.GraphicsContext2D
-
Create a RadialGradient
- CRIMSON - Static variable in class com.dukescript.api.canvas.Style.Color
-
- CYAN - Static variable in class com.dukescript.api.canvas.Style.Color
-
- GAINSBORO - Static variable in class com.dukescript.api.canvas.Style.Color
-
- getA(int, int) - Method in interface com.dukescript.api.canvas.ImageData
-
get the alpha (transparency) value at a specified coordinate
- getAsString() - Method in class com.dukescript.api.canvas.Style.Color
-
- getB(int, int) - Method in interface com.dukescript.api.canvas.ImageData
-
get the blue value at a specified coordinate
- getDimension(Image) - Method in class com.dukescript.api.canvas.GraphicsContext2D
-
Get the Dimension of an Image
- getFont() - Method in class com.dukescript.api.canvas.GraphicsContext2D
-
get the current font
- getFont(Canvas) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
-
Gets the current Font.
- getG(int, int) - Method in interface com.dukescript.api.canvas.ImageData
-
get the green value at a specified coordinate
- getGlobalAlpha() - Method in class com.dukescript.api.canvas.GraphicsContext2D
-
Gets the current global alpha.
- getGlobalAlpha(Canvas) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
-
Get the global alpha of the current state.
- getGlobalCompositeOperation() - Method in class com.dukescript.api.canvas.GraphicsContext2D
-
Gets the global blend mode.
- getGlobalCompositeOperation(Canvas) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
-
Gets the global blend mode.
- getHeight() - Method in class com.dukescript.api.canvas.Dimension
-
Returns the width of this Dimension in double precision.
- getHeight() - Method in class com.dukescript.api.canvas.GraphicsContext2D
-
Get the height of this GraphicsContext2D (which should be the same as the
enclosing canvas height)
- getHeight() - Method in interface com.dukescript.api.canvas.ImageData
-
get the height.
- getHeight(Canvas, Image, Object) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
-
Get the height of this Image
- getHeight(Canvas) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
-
Get the height of this GraphicsContext2D (which should be the same as the
enclosing canvas height)
- getImage() - Method in interface com.dukescript.api.canvas.ImageData
-
- getImageResource() - Method in class com.dukescript.api.canvas.Style.Pattern
-
Get the base image of this pattern
- getLineCap() - Method in class com.dukescript.api.canvas.GraphicsContext2D
-
Gets the current stroke line cap attribute.
- getLineCap(Canvas) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
-
Gets the current stroke line cap.
- getLineJoin() - Method in class com.dukescript.api.canvas.GraphicsContext2D
-
Gets the current stroke line join attribute.
- getLineJoin(Canvas) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
-
Gets the current stroke line join.
- getLineWidth() - Method in class com.dukescript.api.canvas.GraphicsContext2D
-
Gets the current line width attribute.
- getLineWidth(Canvas) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
-
Gets the current line width.
- getMiterLimit() - Method in class com.dukescript.api.canvas.GraphicsContext2D
-
Gets the current miter limit attribute.
- getMiterLimit(Canvas) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
-
Gets the current miter limit.
- getOrCreate(String) - Static method in class com.dukescript.api.canvas.GraphicsContext2D
-
Looks for the Canvas with the specified canvasID.
- getOrCreate(GraphicsEnvironment, String) - Static method in class com.dukescript.spi.canvas.GraphicsUtils
-
Use this to get A GraphicsContext2D to draw on.
- getOrCreateCanvas(String) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
-
Get the Canvas with this ID or create it.
- getPixelMap(Canvas, double, double, double, double) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
-
Get the pixels for a region of your GraphicsContext2D
- getPos() - Method in class com.dukescript.api.canvas.Style.Stop
-
- getR(int, int) - Method in interface com.dukescript.api.canvas.ImageData
-
get the red value at a specified coordinate
- getR0() - Method in class com.dukescript.api.canvas.Style.RadialGradient
-
get the radius of the start circle.
- getR1() - Method in class com.dukescript.api.canvas.Style.RadialGradient
-
get the radius of the end circle
- getRepeat() - Method in class com.dukescript.api.canvas.Style.Pattern
-
Get the repeat style for this pattern
- getSnapshot(double, double, double, double) - Method in class com.dukescript.api.canvas.GraphicsContext2D
-
Get the pixels for a region of your GraphicsContext2D
- getSrc() - Method in class com.dukescript.api.canvas.Image
-
- getStyle() - Method in class com.dukescript.api.canvas.Style.Stop
-
- getTextAlign() - Method in class com.dukescript.api.canvas.GraphicsContext2D
-
Gets the current TextAlignment attribute
- getTextAlign(Canvas) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
-
Gets the current TextAlignment
.
- getTextBaseline() - Method in class com.dukescript.api.canvas.GraphicsContext2D
-
Gets the current Text Baseline attribute.
- getTextBaseline(Canvas) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
-
Sets the current Text Baseline.
- getWebColor(String) - Method in class com.dukescript.api.canvas.GraphicsContext2D
-
Convert this String Representation of a Color to a Color Object.
- getWidth() - Method in class com.dukescript.api.canvas.Dimension
-
Returns the height of this Dimension in double precision
- getWidth() - Method in class com.dukescript.api.canvas.GraphicsContext2D
-
Get the width of this GraphicsContext2D (which should be the same as the
enclosing canvas height)
- getWidth() - Method in interface com.dukescript.api.canvas.ImageData
-
get the width
- getWidth(Canvas, Image, Object) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
-
Get the width of this Image
- getWidth(Canvas) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
-
Get the width of this GraphicsContext2D (which should be the same as the
enclosing canvas height)
- GHOSTWHITE - Static variable in class com.dukescript.api.canvas.Style.Color
-
- GOLD - Static variable in class com.dukescript.api.canvas.Style.Color
-
- GOLDENROD - Static variable in class com.dukescript.api.canvas.Style.Color
-
- GraphicsContext2D - Class in com.dukescript.api.canvas
-
A 2D Graphics Context similar to HTML5 or JavaFX GraphicsContext.
- GraphicsEnvironment<Canvas> - Interface in com.dukescript.spi.canvas
-
Provider API for Canvas.
- GraphicsUtils - Class in com.dukescript.spi.canvas
-
- GRAY - Static variable in class com.dukescript.api.canvas.Style.Color
-
- GREEN - Static variable in class com.dukescript.api.canvas.Style.Color
-
- GREENYELLOW - Static variable in class com.dukescript.api.canvas.Style.Color
-
- GREY - Static variable in class com.dukescript.api.canvas.Style.Color
-
- SADDLEBROWN - Static variable in class com.dukescript.api.canvas.Style.Color
-
- SALMON - Static variable in class com.dukescript.api.canvas.Style.Color
-
- SANDYBROWN - Static variable in class com.dukescript.api.canvas.Style.Color
-
- save() - Method in class com.dukescript.api.canvas.GraphicsContext2D
-
Saves the following attributes onto a stack.
- save(Canvas) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
-
Saves the following attributes onto a stack.
- scale(double, double) - Method in class com.dukescript.api.canvas.GraphicsContext2D
-
Scales the current transform by x, y.
- scale(Canvas, double, double) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
-
Scales the current transform by x, y.
- SEAGREEN - Static variable in class com.dukescript.api.canvas.Style.Color
-
- SEASHELL - Static variable in class com.dukescript.api.canvas.Style.Color
-
- setA(int, int, int) - Method in interface com.dukescript.api.canvas.ImageData
-
set the alpha (transparency) value at a specified coordinate
- setB(int, int, int) - Method in interface com.dukescript.api.canvas.ImageData
-
set the blue value at a specified coordinate
- setData(int[]) - Method in interface com.dukescript.api.canvas.ImageData
-
set all data at once
- setFillStyle(Style) - Method in class com.dukescript.api.canvas.GraphicsContext2D
-
Sets the fill style.
- setFillStyle(Canvas, Style, Object) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
-
When implementing you can return an Object of your choice to enable
caching.
- setFont(String) - Method in class com.dukescript.api.canvas.GraphicsContext2D
-
Set the Font.
- setFont(Canvas, String) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
-
Sets the current Font.
- setG(int, int, int) - Method in interface com.dukescript.api.canvas.ImageData
-
set the green value at a specified coordinate
- setGlobalAlpha(double) - Method in class com.dukescript.api.canvas.GraphicsContext2D
-
Sets the global alpha of the current state.
- setGlobalAlpha(Canvas, double) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
-
Sets the global alpha of the current state.
- setGlobalCompositeOperation(String) - Method in class com.dukescript.api.canvas.GraphicsContext2D
-
Sets the global blend mode.
- setGlobalCompositeOperation(Canvas, String) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
-
Sets the global blend mode.
- setHeight(int) - Method in class com.dukescript.api.canvas.GraphicsContext2D
-
set the height of this GraphicsContext2D
- setHeight(Canvas, int) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
-
set the width of this Canvas
- setLineCap(String) - Method in class com.dukescript.api.canvas.GraphicsContext2D
-
Sets the current stroke line cap attribute.
- setLineCap(Canvas, String) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
-
Sets the current stroke line cap.
- setLineJoin(String) - Method in class com.dukescript.api.canvas.GraphicsContext2D
-
Sets the current stroke line join attribute.
- setLineJoin(Canvas, String) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
-
Sets the current stroke line join.
- setLineWidth(double) - Method in class com.dukescript.api.canvas.GraphicsContext2D
-
Sets the current line width attribute.
- setLineWidth(Canvas, double) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
-
Sets the current line width.
- setMiterLimit(double) - Method in class com.dukescript.api.canvas.GraphicsContext2D
-
Sets the current miter limit attribute.
- setMiterLimit(Canvas, double) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
-
Sets the current miter limit.
- setR(int, int, int) - Method in interface com.dukescript.api.canvas.ImageData
-
set the red value at a specified coordinate
- setStrokeStyle(Style) - Method in class com.dukescript.api.canvas.GraphicsContext2D
-
sets the Style of the Stroke.
- setStrokeStyle(Canvas, Style, Object) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
-
When implementing you can return an Object of your choice to enable
caching.
- setTextAlign(String) - Method in class com.dukescript.api.canvas.GraphicsContext2D
-
Defines horizontal text alignment, relative to the text x
origin.
- setTextAlign(Canvas, String) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
-
Defines horizontal text alignment, relative to the text origin.
- setTextBaseline(String) - Method in class com.dukescript.api.canvas.GraphicsContext2D
-
Sets the current Text Baseline attribute.
- setTextBaseline(Canvas, String) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
-
Sets the current Text Baseline.
- setTransform(double, double, double, double, double, double) - Method in class com.dukescript.api.canvas.GraphicsContext2D
-
Concatenates the input with the current transform.
- setTransform(Canvas, double, double, double, double, double, double) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
-
Concatenates the input with the current transform.
- setWidth(int) - Method in class com.dukescript.api.canvas.GraphicsContext2D
-
Set the width of this GraphicsContext2D
- setWidth(Canvas, int) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
-
set the height of this Canvas
- SIENNA - Static variable in class com.dukescript.api.canvas.Style.Color
-
- SILVER - Static variable in class com.dukescript.api.canvas.Style.Color
-
- SKYBLUE - Static variable in class com.dukescript.api.canvas.Style.Color
-
- SLATEBLUE - Static variable in class com.dukescript.api.canvas.Style.Color
-
- SLATEGRAY - Static variable in class com.dukescript.api.canvas.Style.Color
-
- SLATEGREY - Static variable in class com.dukescript.api.canvas.Style.Color
-
- SNOW - Static variable in class com.dukescript.api.canvas.Style.Color
-
- SPRINGGREEN - Static variable in class com.dukescript.api.canvas.Style.Color
-
- STEELBLUE - Static variable in class com.dukescript.api.canvas.Style.Color
-
- Stop(double, String) - Constructor for class com.dukescript.api.canvas.Style.Stop
-
- stroke() - Method in class com.dukescript.api.canvas.GraphicsContext2D
-
Strokes the path with the current stroke paint.
- stroke(Canvas) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
-
Strokes the path with the current stroke paint.
- strokeRect(double, double, double, double) - Method in class com.dukescript.api.canvas.GraphicsContext2D
-
Strokes a rectangle using the current stroke paint.
- strokeRect(Canvas, double, double, double, double) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
-
Strokes a rectangle using the current stroke paint.
- strokeText(String, double, double) - Method in class com.dukescript.api.canvas.GraphicsContext2D
-
Renders the indicated String (with no fill)
- strokeText(String, double, double, double) - Method in class com.dukescript.api.canvas.GraphicsContext2D
-
Renders the indicated String (with no fill)
- strokeText(Canvas, String, double, double) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
-
draws the given string of text at position x, y (0,0 at top left) with
the current stroke paint attribute.
- strokeText(Canvas, String, double, double, double) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
-
Draws text with stroke paint and includes a maximum width of the string.
- Style - Class in com.dukescript.api.canvas
-
Style for Stroke and Fill of GraphicsContext2D.
- Style.Color - Class in com.dukescript.api.canvas
-
An RGB color
- Style.LinearGradient - Class in com.dukescript.api.canvas
-
A Linear Gradient.
- Style.Pattern - Class in com.dukescript.api.canvas
-
A Fill Pattern using an Image Resource to create a fill style supporting
different repeat styles repeat, repeat-x, repeat-y, or no-repeat.
- Style.RadialGradient - Class in com.dukescript.api.canvas
-
A Radial Gradient.
- Style.Stop - Class in com.dukescript.api.canvas
-