Skip navigation links
A B C D E F G H I K L M N O P Q R S T V W Y 

A

ALICEBLUE - Static variable in class com.dukescript.api.canvas.Style.Color
 
ANTIQUEWHITE - Static variable in class com.dukescript.api.canvas.Style.Color
 
AQUA - Static variable in class com.dukescript.api.canvas.Style.Color
 
AQUAMARINE - Static variable in class com.dukescript.api.canvas.Style.Color
 
arc(double, double, double, double, double, boolean) - Method in class com.dukescript.api.canvas.GraphicsContext2D
Adds path elements to the current path to make an arc which is centered at (centerX, centerY) position with radius starting at startAngle and ending at endAngle going in the given direction by anticlockwise.
arc(Canvas, double, double, double, double, double, boolean) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
Adds path elements to the current path to make an arc.
arcTo(double, double, double, double, double) - Method in class com.dukescript.api.canvas.GraphicsContext2D
Adds segments to the current path with the given control points and radius, connected to the previous point by a straight line.
arcTo(Canvas, double, double, double, double, double) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
Adds segments to the current path to make an arc.
AZURE - Static variable in class com.dukescript.api.canvas.Style.Color
 

B

beginPath() - Method in class com.dukescript.api.canvas.GraphicsContext2D
Starts a Path.
beginPath(Canvas) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
Starts a Path
BEIGE - Static variable in class com.dukescript.api.canvas.Style.Color
 
bezierCurveTo(double, double, double, double, double, double) - Method in class com.dukescript.api.canvas.GraphicsContext2D
Adds segments to the current path to make a cubic bezier curve.
bezierCurveTo(Canvas, double, double, double, double, double, double) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
Adds segments to the current path to make a cubic bezier curve.
BISQUE - Static variable in class com.dukescript.api.canvas.Style.Color
 
BLACK - Static variable in class com.dukescript.api.canvas.Style.Color
 
BLANCHEDALMOND - Static variable in class com.dukescript.api.canvas.Style.Color
 
BLUE - Static variable in class com.dukescript.api.canvas.Style.Color
 
BLUEVIOLET - Static variable in class com.dukescript.api.canvas.Style.Color
 
BROWN - Static variable in class com.dukescript.api.canvas.Style.Color
 
BURLYWOOD - Static variable in class com.dukescript.api.canvas.Style.Color
 

C

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
Create instance of GraphicsContext2D and draw on it using Java.
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
 

D

DARKBLUE - Static variable in class com.dukescript.api.canvas.Style.Color
 
DARKCYAN - Static variable in class com.dukescript.api.canvas.Style.Color
 
DARKGOLDENROD - Static variable in class com.dukescript.api.canvas.Style.Color
 
DARKGRAY - Static variable in class com.dukescript.api.canvas.Style.Color
 
DARKGREEN - Static variable in class com.dukescript.api.canvas.Style.Color
 
DARKGREY - Static variable in class com.dukescript.api.canvas.Style.Color
 
DARKKHAKI - Static variable in class com.dukescript.api.canvas.Style.Color
 
DARKMAGENTA - Static variable in class com.dukescript.api.canvas.Style.Color
 
DARKOLIVEGREEN - Static variable in class com.dukescript.api.canvas.Style.Color
 
DARKORANGE - Static variable in class com.dukescript.api.canvas.Style.Color
 
DARKORCHID - Static variable in class com.dukescript.api.canvas.Style.Color
 
DARKRED - Static variable in class com.dukescript.api.canvas.Style.Color
 
DARKSALMON - Static variable in class com.dukescript.api.canvas.Style.Color
 
DARKSEAGREEN - Static variable in class com.dukescript.api.canvas.Style.Color
 
DARKSLATEBLUE - Static variable in class com.dukescript.api.canvas.Style.Color
 
DARKSLATEGRAY - Static variable in class com.dukescript.api.canvas.Style.Color
 
DARKSLATEGREY - Static variable in class com.dukescript.api.canvas.Style.Color
 
DARKTURQUOISE - Static variable in class com.dukescript.api.canvas.Style.Color
 
DARKVIOLET - Static variable in class com.dukescript.api.canvas.Style.Color
 
DEEPPINK - Static variable in class com.dukescript.api.canvas.Style.Color
 
DEEPSKYBLUE - Static variable in class com.dukescript.api.canvas.Style.Color
 
Dimension - Class in com.dukescript.api.canvas
Just a simple class to replace the need of java.awt.Dimension, since we only want to use Java core APIs to keep porting simple.
Dimension(double, double) - Constructor for class com.dukescript.api.canvas.Dimension
Constructor
DIMGRAY - Static variable in class com.dukescript.api.canvas.Style.Color
 
DIMGREY - Static variable in class com.dukescript.api.canvas.Style.Color
 
DODGERBLUE - Static variable in class com.dukescript.api.canvas.Style.Color
 
drawImage(Image, double, double) - Method in class com.dukescript.api.canvas.GraphicsContext2D
Draws an image at the given x, y position using the width and height of the given image.
drawImage(Image, double, double, double, double) - Method in class com.dukescript.api.canvas.GraphicsContext2D
Draws an image into the given destination rectangle of the canvas.
drawImage(Image, double, double, double, double, double, double, double, double) - Method in class com.dukescript.api.canvas.GraphicsContext2D
Draws the current source rectangle of the given image to the given destination rectangle of the Canvas.
drawImage(Canvas, Image, double, double, Object) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
Draws an image at the given x, y position using the width and height of the given image.
drawImage(Canvas, Image, double, double, double, double, Object) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
Draws an image into the given destination rectangle of the canvas.
drawImage(Canvas, Image, double, double, double, double, double, double, double, double, Object) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
Draws the current source rectangle of the given image to the given destination rectangle of the Canvas.
drawPixelMap(ImageData, double, double) - Method in class com.dukescript.api.canvas.GraphicsContext2D
Render an ImageData Object at the specified position

E

equals(Object) - Method in class com.dukescript.api.canvas.Image
 
equals(Object) - Method in class com.dukescript.api.canvas.Style.RadialGradient
 

F

fill() - Method in class com.dukescript.api.canvas.GraphicsContext2D
Fills the path with the current fill paint.
fill(Canvas) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
Fills the path with the current fill paint.
fillCircle(float, float, float) - Method in class com.dukescript.api.canvas.GraphicsContext2D
Fill a circle with a center position of centerX, centerY and the specified radius.
fillPolygon(double[], double[], int) - Method in class com.dukescript.api.canvas.GraphicsContext2D
Fills a polygon with the given points using the currently set fill paint.
fillRect(double, double, double, double) - Method in class com.dukescript.api.canvas.GraphicsContext2D
Fills a rectangle using the current fill paint.
fillRect(Canvas, double, double, double, double) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
Fills a rectangle using the current fill paint.
fillText(String, double, double) - Method in class com.dukescript.api.canvas.GraphicsContext2D
Renders the indicated String with current fill.
fillText(String, double, double, double) - Method in class com.dukescript.api.canvas.GraphicsContext2D
Renders the indicated String with current fill.
fillText(Canvas, String, double, double) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
Fills the given string of text at position x, y (0,0 at top left) with the current fill paint attribute.
fillText(Canvas, String, double, double, double) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
Fills text and includes a maximum width of the string.
FIREBRICK - Static variable in class com.dukescript.api.canvas.Style.Color
 
FLORALWHITE - Static variable in class com.dukescript.api.canvas.Style.Color
 
FORESTGREEN - Static variable in class com.dukescript.api.canvas.Style.Color
 
FUCHSIA - Static variable in class com.dukescript.api.canvas.Style.Color
 

G

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
 

H

hashCode() - Method in class com.dukescript.api.canvas.Image
 
hashCode() - Method in class com.dukescript.api.canvas.Style.RadialGradient
 
HONEYDEW - Static variable in class com.dukescript.api.canvas.Style.Color
 
HOTPINK - Static variable in class com.dukescript.api.canvas.Style.Color
 

I

Image - Class in com.dukescript.api.canvas
Image represents an Image Resource defined by a path.
ImageData<Image> - Interface in com.dukescript.api.canvas
ImageData is an updateable 2-Dimensional Map of Color values.
INDIANRED - Static variable in class com.dukescript.api.canvas.Style.Color
 
INDIGO - Static variable in class com.dukescript.api.canvas.Style.Color
 
isPointInPath(double, double) - Method in class com.dukescript.api.canvas.GraphicsContext2D
Returns true if the the given x,y point is inside the path.
isPointInPath(Canvas, double, double) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
Returns true if the the given x,y point is inside the path.
IVORY - Static variable in class com.dukescript.api.canvas.Style.Color
 

K

KHAKI - Static variable in class com.dukescript.api.canvas.Style.Color
 

L

LAVENDER - Static variable in class com.dukescript.api.canvas.Style.Color
 
LAVENDERBLUSH - Static variable in class com.dukescript.api.canvas.Style.Color
 
LAWNGREEN - Static variable in class com.dukescript.api.canvas.Style.Color
 
LEMONCHIFFON - Static variable in class com.dukescript.api.canvas.Style.Color
 
LIGHTBLUE - Static variable in class com.dukescript.api.canvas.Style.Color
 
LIGHTCORAL - Static variable in class com.dukescript.api.canvas.Style.Color
 
LIGHTCYAN - Static variable in class com.dukescript.api.canvas.Style.Color
 
LIGHTGOLDENRODYELLOW - Static variable in class com.dukescript.api.canvas.Style.Color
 
LIGHTGRAY - Static variable in class com.dukescript.api.canvas.Style.Color
 
LIGHTGREEN - Static variable in class com.dukescript.api.canvas.Style.Color
 
LIGHTGREY - Static variable in class com.dukescript.api.canvas.Style.Color
 
LIGHTPINK - Static variable in class com.dukescript.api.canvas.Style.Color
 
LIGHTSALMON - Static variable in class com.dukescript.api.canvas.Style.Color
 
LIGHTSEAGREEN - Static variable in class com.dukescript.api.canvas.Style.Color
 
LIGHTSKYBLUE - Static variable in class com.dukescript.api.canvas.Style.Color
 
LIGHTSLATEGRAY - Static variable in class com.dukescript.api.canvas.Style.Color
 
LIGHTSLATEGREY - Static variable in class com.dukescript.api.canvas.Style.Color
 
LIGHTSTEELBLUE - Static variable in class com.dukescript.api.canvas.Style.Color
 
LIGHTYELLOW - Static variable in class com.dukescript.api.canvas.Style.Color
 
LIME - Static variable in class com.dukescript.api.canvas.Style.Color
 
LIMEGREEN - Static variable in class com.dukescript.api.canvas.Style.Color
 
LINEN - Static variable in class com.dukescript.api.canvas.Style.Color
 
lineTo(double, double) - Method in class com.dukescript.api.canvas.GraphicsContext2D
Adds segments to the current path to make a line at the given x,y coordinate.
lineTo(Canvas, double, double) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
Adds segments to the current path to make a line at the given x,y coordinate.

M

MAGENTA - Static variable in class com.dukescript.api.canvas.Style.Color
 
MAROON - Static variable in class com.dukescript.api.canvas.Style.Color
 
measureText(String) - Method in class com.dukescript.api.canvas.GraphicsContext2D
Check the length of a text before writing it to the Canvas.
measureText(Canvas, String) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
The Dimension of this text using the current Font settings
MEDIUMAQUAMARINE - Static variable in class com.dukescript.api.canvas.Style.Color
 
MEDIUMBLUE - Static variable in class com.dukescript.api.canvas.Style.Color
 
MEDIUMORCHID - Static variable in class com.dukescript.api.canvas.Style.Color
 
MEDIUMPURPLE - Static variable in class com.dukescript.api.canvas.Style.Color
 
MEDIUMSEAGREEN - Static variable in class com.dukescript.api.canvas.Style.Color
 
MEDIUMSLATEBLUE - Static variable in class com.dukescript.api.canvas.Style.Color
 
MEDIUMSPRINGGREEN - Static variable in class com.dukescript.api.canvas.Style.Color
 
MEDIUMTURQUOISE - Static variable in class com.dukescript.api.canvas.Style.Color
 
MEDIUMVIOLETRED - Static variable in class com.dukescript.api.canvas.Style.Color
 
merge(Image, Image) - Method in class com.dukescript.api.canvas.GraphicsContext2D
Merges two images drawing one on top of the other and returning the result.
mergeImages(Canvas, Image, Image, Object, Object) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
Merges two images drawing one on top of the other and returning the result.
MIDNIGHTBLUE - Static variable in class com.dukescript.api.canvas.Style.Color
 
MINTCREAM - Static variable in class com.dukescript.api.canvas.Style.Color
 
MISTYROSE - Static variable in class com.dukescript.api.canvas.Style.Color
 
MOCCASIN - Static variable in class com.dukescript.api.canvas.Style.Color
 
moveTo(double, double) - Method in class com.dukescript.api.canvas.GraphicsContext2D
Issues a move command for the current path to the given x,y coordinate.
moveTo(Canvas, double, double) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
Issues a move command for the current path to the given x,y coordinate.

N

NAVAJOWHITE - Static variable in class com.dukescript.api.canvas.Style.Color
 
NAVY - Static variable in class com.dukescript.api.canvas.Style.Color
 

O

OLDLACE - Static variable in class com.dukescript.api.canvas.Style.Color
 
OLIVE - Static variable in class com.dukescript.api.canvas.Style.Color
 
OLIVEDRAB - Static variable in class com.dukescript.api.canvas.Style.Color
 
ORANGE - Static variable in class com.dukescript.api.canvas.Style.Color
 
ORANGERED - Static variable in class com.dukescript.api.canvas.Style.Color
 
ORCHID - Static variable in class com.dukescript.api.canvas.Style.Color
 

P

PALEGOLDENROD - Static variable in class com.dukescript.api.canvas.Style.Color
 
PALEGREEN - Static variable in class com.dukescript.api.canvas.Style.Color
 
PALETURQUOISE - Static variable in class com.dukescript.api.canvas.Style.Color
 
PALEVIOLETRED - Static variable in class com.dukescript.api.canvas.Style.Color
 
PAPAYAWHIP - Static variable in class com.dukescript.api.canvas.Style.Color
 
Pattern(Image, String) - Constructor for class com.dukescript.api.canvas.Style.Pattern
 
PEACHPUFF - Static variable in class com.dukescript.api.canvas.Style.Color
 
PERU - Static variable in class com.dukescript.api.canvas.Style.Color
 
PINK - Static variable in class com.dukescript.api.canvas.Style.Color
 
PLUM - Static variable in class com.dukescript.api.canvas.Style.Color
 
POWDERBLUE - Static variable in class com.dukescript.api.canvas.Style.Color
 
PURPLE - Static variable in class com.dukescript.api.canvas.Style.Color
 
putPixelMap(Canvas, ImageData, double, double) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
Render an ImageData Object at the specified position

Q

quadraticCurveTo(double, double, double, double) - Method in class com.dukescript.api.canvas.GraphicsContext2D
Adds segments to the current path to make a quadratic curve.
quadraticCurveTo(Canvas, double, double, double, double) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
Adds segments to the current path to make a quadratic curve.

R

REBECCAPURPLE - Static variable in class com.dukescript.api.canvas.Style.Color
 
rect(double, double, double, double) - Method in class com.dukescript.api.canvas.GraphicsContext2D
Clears a portion of the canvas with a transparent color value.
rect(Canvas, double, double, double, double) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
Clears a portion of the canvas with a transparent color value.
RED - Static variable in class com.dukescript.api.canvas.Style.Color
 
restore() - Method in class com.dukescript.api.canvas.GraphicsContext2D
Pops the state off of the stack, setting the following attributes to their value at the time when that state was pushed onto the stack.
restore(Canvas) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
Pops the state off of the stack, setting the following attributes to their value at the time when that state was pushed onto the stack.
ROSYBROWN - Static variable in class com.dukescript.api.canvas.Style.Color
 
rotate(double) - Method in class com.dukescript.api.canvas.GraphicsContext2D
Rotates the current transform in degrees.
rotate(Canvas, double) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
Rotates the current transform in degrees.
ROYALBLUE - Static variable in class com.dukescript.api.canvas.Style.Color
 

S

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
 

T

TAN - Static variable in class com.dukescript.api.canvas.Style.Color
 
TEAL - Static variable in class com.dukescript.api.canvas.Style.Color
 
THISTLE - Static variable in class com.dukescript.api.canvas.Style.Color
 
TOMATO - Static variable in class com.dukescript.api.canvas.Style.Color
 
transform(double, double, double, double, double, double) - Method in class com.dukescript.api.canvas.GraphicsContext2D
Concatenates the input with the current transform.
transform(Canvas, double, double, double, double, double, double) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
Concatenates the input with the current transform.
translate(double, double) - Method in class com.dukescript.api.canvas.GraphicsContext2D
Translates the current transform by x, y.
translate(Canvas, double, double) - Method in interface com.dukescript.spi.canvas.GraphicsEnvironment
Translates the current transform by x, y.
TRANSPARENT - Static variable in class com.dukescript.api.canvas.Style.Color
 
TURQUOISE - Static variable in class com.dukescript.api.canvas.Style.Color
 

V

VIOLET - Static variable in class com.dukescript.api.canvas.Style.Color
 

W

WHEAT - Static variable in class com.dukescript.api.canvas.Style.Color
 
WHITE - Static variable in class com.dukescript.api.canvas.Style.Color
 
WHITESMOKE - Static variable in class com.dukescript.api.canvas.Style.Color
 

Y

YELLOW - Static variable in class com.dukescript.api.canvas.Style.Color
 
YELLOWGREEN - Static variable in class com.dukescript.api.canvas.Style.Color
 
A B C D E F G H I K L M N O P Q R S T V W Y 
Skip navigation links

Copyright © 2018. All Rights Reserved.