Package | Description |
---|---|
com.dukescript.api.canvas |
Create instance of
GraphicsContext2D
and draw on it
using Java. |
com.dukescript.spi.canvas |
SPI for enabling the Canvas API on different platforms.
|
Modifier and Type | Class and Description |
---|---|
static class |
Style.Color
An RGB color
|
static class |
Style.LinearGradient
A Linear Gradient.
|
static class |
Style.Pattern
A Fill Pattern using an Image Resource to create a fill style supporting
different repeat styles repeat, repeat-x, repeat-y, or no-repeat.
|
static class |
Style.RadialGradient
A Radial Gradient.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
GraphicsContext2D.setFillStyle(Style style)
Sets the fill style.
|
abstract void |
GraphicsContext2D.setStrokeStyle(Style style)
sets the Style of the Stroke.
|
Modifier and Type | Method and Description |
---|---|
Object |
GraphicsEnvironment.setFillStyle(Canvas canvas,
Style style,
Object nativeStyle)
When implementing you can return an Object of your choice to enable
caching.
|
Object |
GraphicsEnvironment.setStrokeStyle(Canvas canvas,
Style style,
Object nativeStyle)
When implementing you can return an Object of your choice to enable
caching.
|
Copyright © 2018. All Rights Reserved.