Class CanvasRenderingImpl
java.lang.Object
org.loboevolution.html.dom.canvas.CanvasRenderingImpl
- All Implemented Interfaces:
CanvasRenderingContext,CanvasRenderingContext2D
CanvasRenderingImpl class.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for CanvasRenderingImpl. -
Method Summary
Modifier and TypeMethodDescriptionvoidThe CanvasRenderingContext2D.arc() method of the Canvas 2D API adds a circular arc to the current sub-path.voidarc(Double x, Double y, Double radius, Integer startAngle, Double endAngle, boolean counterclockwise) The CanvasRenderingContext2D.arc() method of the Canvas 2D API adds a circular arc to the current sub-path.voidThe CanvasRenderingContext2D.arcTo() method of the Canvas 2D API adds a circular arc to the current sub-path, using the given control points and radius.voidThe CanvasRenderingContext2D.beginPath() method of the Canvas 2D API starts a new path by emptying the list of sub-paths.voidThe CanvasRenderingContext2D.bezierCurveTo() method of the Canvas 2D API adds a cubic Bézier curve to the current sub-path.voidThe CanvasRenderingContext2D.clearRect() method of the Canvas 2D API erases the pixels in a rectangular area by setting them to transparent black.voidclip()The CanvasRenderingContext2D.clip() method of the Canvas 2D API turns the current or given path into the current clipping region.voidThe CanvasRenderingContext2D.clip() method of the Canvas 2D API turns the current or given path into the current clipping region.voidThe CanvasRenderingContext2D.clip() method of the Canvas 2D API turns the current or given path into the current clipping region.voidThe CanvasRenderingContext2D.clip() method of the Canvas 2D API turns the current or given path into the current clipping region.voidThe CanvasRenderingContext2D.closePath() method of the Canvas 2D API attempts to add a straight line from the current poInteger to the start of the current sub-path.createConicGradient(Integer startAngle, Integer x, Integer y) createImageData(Integer sw, Integer sh) The CanvasRenderingContext2D.createImageData() method of the Canvas 2D API creates a new, blank ImageData object with the specified dimensions.createImageData(Integer sw, Integer sh, ImageDataSettings settings) The CanvasRenderingContext2D.createImageData() method of the Canvas 2D API creates a new, blank ImageData object with the specified dimensions.createImageData(ImageData imagedata) The CanvasRenderingContext2D.createImageData() method of the Canvas 2D API creates a new, blank ImageData object with the specified dimensions.createLinearGradient(Integer x0, Integer y0, Integer x1, Integer y1) The CanvasRenderingContext2D.createLinearGradient() method of the Canvas 2D API creates a gradient along the line connecting two given coordinates.createPattern(CanvasImageSource image, String repetition) The CanvasRenderingContext2D.createPattern() method of the Canvas 2D API creates a pattern using the specified image and repetition.The CanvasRenderingContext2D.createRadialGradient() method of the Canvas 2D API creates a radial gradient using the size and coordinates of two circles.voiddrawFocusIfNeeded(Path2D path, Element element) The CanvasRenderingContext2D.drawFocusIfNeeded() method of the Canvas 2D API draws a focus ring around the current or given path, if the specified element is focused.voiddrawFocusIfNeeded(Element element) The CanvasRenderingContext2D.drawFocusIfNeeded() method of the Canvas 2D API draws a focus ring around the current or given path, if the specified element is focused.voiddrawImage(CanvasImageSource image, Integer dx, Integer dy) The CanvasRenderingContext2D.drawImage() method of the Canvas 2D API provides different ways to draw an image onto the canvas.voidThe CanvasRenderingContext2D.drawImage() method of the Canvas 2D API provides different ways to draw an image onto the canvas.voiddrawImage(CanvasImageSource image, Integer sx, Integer sy, Integer sw, Integer sh, Integer dx, Integer dy, Integer dw, Integer dh) The CanvasRenderingContext2D.drawImage() method of the Canvas 2D API provides different ways to draw an image onto the canvas.voidellipse(Integer x, Integer y, Integer radiusX, Integer radiusY, Integer rotation, Integer startAngle, Integer endAngle) The CanvasRenderingContext2D.ellipse() method of the Canvas 2D API adds an elliptical arc to the current sub-path.voidellipse(Integer x, Integer y, Integer radiusX, Integer radiusY, Integer rotation, Integer startAngle, Integer endAngle, boolean counterclockwise) The CanvasRenderingContext2D.ellipse() method of the Canvas 2D API adds an elliptical arc to the current sub-path.voidfill()The CanvasRenderingContext2D.fill() method of the Canvas 2D API fills the current or given path with the current fillStyle.voidThe CanvasRenderingContext2D.fill() method of the Canvas 2D API fills the current or given path with the current fillStyle.voidThe CanvasRenderingContext2D.fill() method of the Canvas 2D API fills the current or given path with the current fillStyle.voidThe CanvasRenderingContext2D.fill() method of the Canvas 2D API fills the current or given path with the current fillStyle.voidThe CanvasRenderingContext2D.fillRect() method of the Canvas 2D API draws a rectangle that is filled according to the current fillStyle.voidThe CanvasRenderingContext2D method fillText(), part of the Canvas 2D API, draws a text string at the specified coordinates, filling the string's characters with the current fillStyle.voidThe CanvasRenderingContext2D method fillText(), part of the Canvas 2D API, draws a text string at the specified coordinates, filling the string's characters with the current fillStyle.The CanvasRenderingContext2D.direction property of the Canvas 2D API specifies the current text direction used to draw text.The CanvasRenderingContext2D.filter property of the Canvas 2D API provides filter effects such as blurring and grayscaling.getFont()The CanvasRenderingContext2D.font property of the Canvas 2D API specifies the current text style to use when drawing text.The CanvasRenderingContext2D.globalAlpha property of the Canvas 2D API specifies the alpha (transparency) value that is applied to shapes and images before they are drawn onto the canvas.getImageData(Integer sx, Integer sy, Integer sw, Integer sh) The CanvasRenderingContext2D method getImageData() of the Canvas 2D API returns an ImageData object representing the underlying pixel data for a specified portion of the canvas.getImageData(Integer sx, Integer sy, Integer sw, Integer sh, ImageDataSettings settings) The CanvasRenderingContext2D method getImageData() of the Canvas 2D API returns an ImageData object representing the underlying pixel data for a specified portion of the canvas.booleanThe imageSmoothingEnabled property of the CanvasRenderingContext2D interface, part of the Canvas API, determines whether scaled images are smoothed (true, default) or not (false).The imageSmoothingQuality property of the CanvasRenderingContext2D interface, part of the Canvas API, lets you set the quality of image smoothing.The CanvasRenderingContext2D.lineCap property of the Canvas 2D API determines the shape used to draw the end points of lines.The getLineDash() method of the Canvas 2D API's CanvasRenderingContext2D interface gets the current line dash pattern.The CanvasRenderingContext2D.lineJoin property of the Canvas 2D API determines the shape used to join two line segments where they meet.The CanvasRenderingContext2D.shadowColor property of the Canvas 2D API specifies the color of shadows.The CanvasRenderingContext2D.getTransform() method of the Canvas 2D API retrieves the current transformation matrix being applied to the context.booleanbooleanisPointInPath(Path2D path, Integer x, Integer y) The CanvasRenderingContext2D.isPointInPath() method of the Canvas 2D API reports whether the specified poInteger is contained in the current path.booleanisPointInPath(Path2D path, Integer x, Integer y, String fillRule) The CanvasRenderingContext2D.isPointInPath() method of the Canvas 2D API reports whether the specified poInteger is contained in the current path.booleanisPointInPath(Integer x, Integer y) The CanvasRenderingContext2D.isPointInPath() method of the Canvas 2D API reports whether the specified poInteger is contained in the current path.booleanisPointInPath(Integer x, Integer y, String fillRule) The CanvasRenderingContext2D.isPointInPath() method of the Canvas 2D API reports whether the specified poInteger is contained in the current path.booleanisPointInStroke(Path2D path, Integer x, Integer y) The CanvasRenderingContext2D.isPointInStroke() method of the Canvas 2D API reports whether the specified poInteger is inside the area contained by the stroking of a path.booleanisPointInStroke(Integer x, Integer y) The CanvasRenderingContext2D.isPointInStroke() method of the Canvas 2D API reports whether the specified poInteger is inside the area contained by the stroking of a path.The CanvasRenderingContext2D.lineDashOffset property of the Canvas 2D API sets the line dash offset, or invalid input: '"'(); phase.invalid input: '"'();voidThe CanvasRenderingContext2D method lineTo(), part of the Canvas 2D API, adds a straight line to the current sub-path by connecting the sub-path's last poInteger to the specified (x, y) coordinates.measureText(String text) The CanvasRenderingContext2D.measureText() method returns a TextMetrics object that contains information about the measured text (such as its width, for example).voidThe CanvasRenderingContext2D.moveTo() method of the Canvas 2D API begins a new sub-path at the poInteger specified by the given (x, y) coordinates.voidputImageData(ImageData imagedata, Integer dx, Integer dy) The CanvasRenderingContext2D.putImageData() method of the Canvas 2D API paints data from the given ImageData object onto the canvas.voidputImageData(ImageData imagedata, Integer dx, Integer dy, Integer dirtyX, Integer dirtyY, Integer dirtyWidth, Integer dirtyHeight) The CanvasRenderingContext2D.putImageData() method of the Canvas 2D API paints data from the given ImageData object onto the canvas.voidquadraticCurveTo(Integer cpx, Integer cpy, Integer x, Integer y) The CanvasRenderingContext2D.quadraticCurveTo() method of the Canvas 2D API adds a quadratic Bézier curve to the current sub-path.voidThe CanvasRenderingContext2D.rect() method of the Canvas 2D API adds a rectangle to the current path.voidreset()voidThe CanvasRenderingContext2D.resetTransform() method of the Canvas 2D API resets the current transform to the identity matrix.voidrestore()The CanvasRenderingContext2D.restore() method of the Canvas 2D API restores the most recently saved canvas state by popping the top entry in the drawing state stack.voidThe CanvasRenderingContext2D.rotate() method of the Canvas 2D API adds a rotation to the transformation matrix.voidvoidsave()The CanvasRenderingContext2D.save() method of the Canvas 2D API saves the entire state of the canvas by pushing the current state onto a stack.voidThe CanvasRenderingContext2D.scale() method of the Canvas 2D API adds a scaling transformation to the canvas units horizontally and/or vertically.voidThe CanvasRenderingContext2D.scrollPathIntoView() method of the Canvas 2D API scrolls the current or given path into view.voidscrollPathIntoView(Path2D path) The CanvasRenderingContext2D.scrollPathIntoView() method of the Canvas 2D API scrolls the current or given path into view.voidsetFillStyle(Object style) voidvoidsetGlobalAlpha(Float globalAlpha) voidsetLineCap(String lineCap) voidsetLineDash(List<Integer> segments) The setLineDash() method of the Canvas 2D API's CanvasRenderingContext2D interface sets the line dash pattern used when stroking lines.voidsetLineJoin(String lineJoin) voidsetStrokeStyle(Object style) voidThe CanvasRenderingContext2D.setTransform() method of the Canvas 2D API resets (overrides) the current transformation to the identity matrix, and then invokes a transformation described by the arguments of this method.voidsetTransform(DOMMatrix2DInit transform) The CanvasRenderingContext2D.setTransform() method of the Canvas 2D API resets (overrides) the current transformation to the identity matrix, and then invokes a transformation described by the arguments of this method.voidstroke()The CanvasRenderingContext2D.stroke() method of the Canvas 2D API strokes (outlines) the current or given path with the current stroke style.voidThe CanvasRenderingContext2D.stroke() method of the Canvas 2D API strokes (outlines) the current or given path with the current stroke style.voidstrokeRect(Integer x, Integer y, Integer w, Integer h) The CanvasRenderingContext2D.strokeRect() method of the Canvas 2D API draws a rectangle that is stroked (outlined) according to the current strokeStyle and other context settings.voidstrokeText(String text, Integer x, Integer y) The CanvasRenderingContext2D method strokeText(), part of the Canvas 2D API, strokes invalid input: '&dash'(); that is, draws the outlines of invalid input: '&dash'(); the characters of a text string at the specified coordinates.voidstrokeText(String text, Integer x, Integer y, Integer maxWidth) The CanvasRenderingContext2D method strokeText(), part of the Canvas 2D API, strokes invalid input: '&dash'(); that is, draws the outlines of invalid input: '&dash'(); the characters of a text string at the specified coordinates.voidThe CanvasRenderingContext2D.transform() method of the Canvas 2D API multiplies the current transformation with the matrix described by the arguments of this method.voidThe CanvasRenderingContext2D.translate() method of the Canvas 2D API adds a translation transformation to the current matrix.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.loboevolution.html.dom.canvas.CanvasRenderingContext2D
getCanvas, getFillStyle, getGlobalCompositeOperation, getLineWidth, getMiterLimit, getShadowBlur, getShadowOffsetX, getShadowOffsetY, getStrokeStyle, getTextAlign, getTextBaseline
-
Constructor Details
-
CanvasRenderingImpl
Constructor for CanvasRenderingImpl.
- Parameters:
canvas- aHTMLCanvasElementImplobject.
-
-
Method Details
-
getDirection
The CanvasRenderingContext2D.direction property of the Canvas 2D API specifies the current text direction used to draw text.- Specified by:
getDirectionin interfaceCanvasRenderingContext2D- See Also:
-
getFilter
The CanvasRenderingContext2D.filter property of the Canvas 2D API provides filter effects such as blurring and grayscaling. It is similar to the CSS filter property and accepts the same values.- Specified by:
getFilterin interfaceCanvasRenderingContext2D- See Also:
-
getFont
The CanvasRenderingContext2D.font property of the Canvas 2D API specifies the current text style to use when drawing text. This string uses the same syntax as the CSS font specifier.- Specified by:
getFontin interfaceCanvasRenderingContext2D- See Also:
-
getFontKerning
- Specified by:
getFontKerningin interfaceCanvasRenderingContext2D
-
getFontStretch
- Specified by:
getFontStretchin interfaceCanvasRenderingContext2D
-
getFontVariantCaps
- Specified by:
getFontVariantCapsin interfaceCanvasRenderingContext2D
-
getGlobalAlpha
The CanvasRenderingContext2D.globalAlpha property of the Canvas 2D API specifies the alpha (transparency) value that is applied to shapes and images before they are drawn onto the canvas.- Specified by:
getGlobalAlphain interfaceCanvasRenderingContext2D- See Also:
-
getImageSmoothingEnabled
public boolean getImageSmoothingEnabled()The imageSmoothingEnabled property of the CanvasRenderingContext2D interface, part of the Canvas API, determines whether scaled images are smoothed (true, default) or not (false). On getting the imageSmoothingEnabled property, the last value it was set to is returned.- Specified by:
getImageSmoothingEnabledin interfaceCanvasRenderingContext2D- See Also:
-
getImageSmoothingQuality
The imageSmoothingQuality property of the CanvasRenderingContext2D interface, part of the Canvas API, lets you set the quality of image smoothing.- Specified by:
getImageSmoothingQualityin interfaceCanvasRenderingContext2D- See Also:
-
getLetterSpacing
- Specified by:
getLetterSpacingin interfaceCanvasRenderingContext2D
-
getLineCap
The CanvasRenderingContext2D.lineCap property of the Canvas 2D API determines the shape used to draw the end points of lines.- Specified by:
getLineCapin interfaceCanvasRenderingContext2D- See Also:
-
lineDashOffset
The CanvasRenderingContext2D.lineDashOffset property of the Canvas 2D API sets the line dash offset, or invalid input: '"'(); phase.invalid input: '"'();- Specified by:
lineDashOffsetin interfaceCanvasRenderingContext2D- See Also:
-
getLineJoin
The CanvasRenderingContext2D.lineJoin property of the Canvas 2D API determines the shape used to join two line segments where they meet.- Specified by:
getLineJoinin interfaceCanvasRenderingContext2D- See Also:
-
getShadowColor
The CanvasRenderingContext2D.shadowColor property of the Canvas 2D API specifies the color of shadows.- Specified by:
getShadowColorin interfaceCanvasRenderingContext2D- See Also:
-
getTextRendering
- Specified by:
getTextRenderingin interfaceCanvasRenderingContext2D
-
getWordSpacing
- Specified by:
getWordSpacingin interfaceCanvasRenderingContext2D
-
getContextAttributes
- Specified by:
getContextAttributesin interfaceCanvasRenderingContext2D
-
drawImage
The CanvasRenderingContext2D.drawImage() method of the Canvas 2D API provides different ways to draw an image onto the canvas.- Specified by:
drawImagein interfaceCanvasRenderingContext2D- See Also:
-
drawImage
The CanvasRenderingContext2D.drawImage() method of the Canvas 2D API provides different ways to draw an image onto the canvas.- Specified by:
drawImagein interfaceCanvasRenderingContext2D- See Also:
-
drawImage
public void drawImage(CanvasImageSource image, Integer sx, Integer sy, Integer sw, Integer sh, Integer dx, Integer dy, Integer dw, Integer dh) The CanvasRenderingContext2D.drawImage() method of the Canvas 2D API provides different ways to draw an image onto the canvas.- Specified by:
drawImagein interfaceCanvasRenderingContext2D- See Also:
-
fillText
The CanvasRenderingContext2D method fillText(), part of the Canvas 2D API, draws a text string at the specified coordinates, filling the string's characters with the current fillStyle. An optional parameter allows specifying a maximum width for the rendered text, which the user agent will achieve by condensing the text or by using a lower font size.- Specified by:
fillTextin interfaceCanvasRenderingContext2D- See Also:
-
fillText
The CanvasRenderingContext2D method fillText(), part of the Canvas 2D API, draws a text string at the specified coordinates, filling the string's characters with the current fillStyle. An optional parameter allows specifying a maximum width for the rendered text, which the user agent will achieve by condensing the text or by using a lower font size.- Specified by:
fillTextin interfaceCanvasRenderingContext2D- See Also:
-
measureText
The CanvasRenderingContext2D.measureText() method returns a TextMetrics object that contains information about the measured text (such as its width, for example).- Specified by:
measureTextin interfaceCanvasRenderingContext2D- See Also:
-
strokeText
The CanvasRenderingContext2D method strokeText(), part of the Canvas 2D API, strokes invalid input: '&dash'(); that is, draws the outlines of invalid input: '&dash'(); the characters of a text string at the specified coordinates. An optional parameter allows specifying a maximum width for the rendered text, which the user agent will achieve by condensing the text or by using a lower font size.- Specified by:
strokeTextin interfaceCanvasRenderingContext2D- See Also:
-
strokeText
The CanvasRenderingContext2D method strokeText(), part of the Canvas 2D API, strokes invalid input: '&dash'(); that is, draws the outlines of invalid input: '&dash'(); the characters of a text string at the specified coordinates. An optional parameter allows specifying a maximum width for the rendered text, which the user agent will achieve by condensing the text or by using a lower font size.- Specified by:
strokeTextin interfaceCanvasRenderingContext2D- See Also:
-
createConicGradient
- Specified by:
createConicGradientin interfaceCanvasRenderingContext2D
-
createLinearGradient
The CanvasRenderingContext2D.createLinearGradient() method of the Canvas 2D API creates a gradient along the line connecting two given coordinates.- Specified by:
createLinearGradientin interfaceCanvasRenderingContext2D- See Also:
-
createPattern
The CanvasRenderingContext2D.createPattern() method of the Canvas 2D API creates a pattern using the specified image and repetition. This method returns a CanvasPattern.- Specified by:
createPatternin interfaceCanvasRenderingContext2D- See Also:
-
createRadialGradient
public CanvasGradient createRadialGradient(Integer x0, Integer y0, Integer r0, Integer x1, Integer y1, Integer r1) The CanvasRenderingContext2D.createRadialGradient() method of the Canvas 2D API creates a radial gradient using the size and coordinates of two circles.- Specified by:
createRadialGradientin interfaceCanvasRenderingContext2D- See Also:
-
beginPath
public void beginPath()The CanvasRenderingContext2D.beginPath() method of the Canvas 2D API starts a new path by emptying the list of sub-paths. Call this method when you want to create a new path.- Specified by:
beginPathin interfaceCanvasRenderingContext2D- See Also:
-
clip
The CanvasRenderingContext2D.clip() method of the Canvas 2D API turns the current or given path into the current clipping region. The previous clipping region, if any, is intersected with the current or given path to create the new clipping region.- Specified by:
clipin interfaceCanvasRenderingContext2D- See Also:
-
clip
public void clip()The CanvasRenderingContext2D.clip() method of the Canvas 2D API turns the current or given path into the current clipping region. The previous clipping region, if any, is intersected with the current or given path to create the new clipping region.- Specified by:
clipin interfaceCanvasRenderingContext2D- See Also:
-
clip
The CanvasRenderingContext2D.clip() method of the Canvas 2D API turns the current or given path into the current clipping region. The previous clipping region, if any, is intersected with the current or given path to create the new clipping region.- Specified by:
clipin interfaceCanvasRenderingContext2D- See Also:
-
clip
The CanvasRenderingContext2D.clip() method of the Canvas 2D API turns the current or given path into the current clipping region. The previous clipping region, if any, is intersected with the current or given path to create the new clipping region.- Specified by:
clipin interfaceCanvasRenderingContext2D- See Also:
-
fill
The CanvasRenderingContext2D.fill() method of the Canvas 2D API fills the current or given path with the current fillStyle.- Specified by:
fillin interfaceCanvasRenderingContext2D- See Also:
-
fill
public void fill()The CanvasRenderingContext2D.fill() method of the Canvas 2D API fills the current or given path with the current fillStyle.- Specified by:
fillin interfaceCanvasRenderingContext2D- See Also:
-
fill
The CanvasRenderingContext2D.fill() method of the Canvas 2D API fills the current or given path with the current fillStyle.- Specified by:
fillin interfaceCanvasRenderingContext2D- See Also:
-
fill
The CanvasRenderingContext2D.fill() method of the Canvas 2D API fills the current or given path with the current fillStyle.- Specified by:
fillin interfaceCanvasRenderingContext2D- See Also:
-
isPointInPath
The CanvasRenderingContext2D.isPointInPath() method of the Canvas 2D API reports whether the specified poInteger is contained in the current path.- Specified by:
isPointInPathin interfaceCanvasRenderingContext2D- See Also:
-
isPointInPath
The CanvasRenderingContext2D.isPointInPath() method of the Canvas 2D API reports whether the specified poInteger is contained in the current path.- Specified by:
isPointInPathin interfaceCanvasRenderingContext2D- See Also:
-
isPointInPath
The CanvasRenderingContext2D.isPointInPath() method of the Canvas 2D API reports whether the specified poInteger is contained in the current path.- Specified by:
isPointInPathin interfaceCanvasRenderingContext2D- See Also:
-
isPointInPath
The CanvasRenderingContext2D.isPointInPath() method of the Canvas 2D API reports whether the specified poInteger is contained in the current path.- Specified by:
isPointInPathin interfaceCanvasRenderingContext2D- See Also:
-
isPointInStroke
The CanvasRenderingContext2D.isPointInStroke() method of the Canvas 2D API reports whether the specified poInteger is inside the area contained by the stroking of a path.- Specified by:
isPointInStrokein interfaceCanvasRenderingContext2D- See Also:
-
isPointInStroke
The CanvasRenderingContext2D.isPointInStroke() method of the Canvas 2D API reports whether the specified poInteger is inside the area contained by the stroking of a path.- Specified by:
isPointInStrokein interfaceCanvasRenderingContext2D- See Also:
-
stroke
public void stroke()The CanvasRenderingContext2D.stroke() method of the Canvas 2D API strokes (outlines) the current or given path with the current stroke style.- Specified by:
strokein interfaceCanvasRenderingContext2D- See Also:
-
stroke
The CanvasRenderingContext2D.stroke() method of the Canvas 2D API strokes (outlines) the current or given path with the current stroke style.- Specified by:
strokein interfaceCanvasRenderingContext2D- See Also:
-
createImageData
The CanvasRenderingContext2D.createImageData() method of the Canvas 2D API creates a new, blank ImageData object with the specified dimensions. All the pixels in the new object are transparent black.- Specified by:
createImageDatain interfaceCanvasRenderingContext2D- See Also:
-
createImageData
The CanvasRenderingContext2D.createImageData() method of the Canvas 2D API creates a new, blank ImageData object with the specified dimensions. All the pixels in the new object are transparent black.- Specified by:
createImageDatain interfaceCanvasRenderingContext2D- See Also:
-
createImageData
The CanvasRenderingContext2D.createImageData() method of the Canvas 2D API creates a new, blank ImageData object with the specified dimensions. All the pixels in the new object are transparent black.- Specified by:
createImageDatain interfaceCanvasRenderingContext2D- See Also:
-
getImageData
public ImageData getImageData(Integer sx, Integer sy, Integer sw, Integer sh, ImageDataSettings settings) The CanvasRenderingContext2D method getImageData() of the Canvas 2D API returns an ImageData object representing the underlying pixel data for a specified portion of the canvas.- Specified by:
getImageDatain interfaceCanvasRenderingContext2D- See Also:
-
getImageData
The CanvasRenderingContext2D method getImageData() of the Canvas 2D API returns an ImageData object representing the underlying pixel data for a specified portion of the canvas.- Specified by:
getImageDatain interfaceCanvasRenderingContext2D- See Also:
-
putImageData
The CanvasRenderingContext2D.putImageData() method of the Canvas 2D API paints data from the given ImageData object onto the canvas. If a dirty rectangle is provided, only the pixels from that rectangle are painted. This method is not affected by the canvas transformation matrix.- Specified by:
putImageDatain interfaceCanvasRenderingContext2D- See Also:
-
putImageData
public void putImageData(ImageData imagedata, Integer dx, Integer dy, Integer dirtyX, Integer dirtyY, Integer dirtyWidth, Integer dirtyHeight) The CanvasRenderingContext2D.putImageData() method of the Canvas 2D API paints data from the given ImageData object onto the canvas. If a dirty rectangle is provided, only the pixels from that rectangle are painted. This method is not affected by the canvas transformation matrix.- Specified by:
putImageDatain interfaceCanvasRenderingContext2D- See Also:
-
arc
public void arc(Double x, Double y, Double radius, Integer startAngle, Double endAngle, boolean counterclockwise) The CanvasRenderingContext2D.arc() method of the Canvas 2D API adds a circular arc to the current sub-path.- Specified by:
arcin interfaceCanvasRenderingContext2D- See Also:
-
arc
The CanvasRenderingContext2D.arc() method of the Canvas 2D API adds a circular arc to the current sub-path.- Specified by:
arcin interfaceCanvasRenderingContext2D- See Also:
-
arcTo
The CanvasRenderingContext2D.arcTo() method of the Canvas 2D API adds a circular arc to the current sub-path, using the given control points and radius. The arc is automatically connected to the path's latest poInteger with a straight line, if necessary for the specified parameters.- Specified by:
arcToin interfaceCanvasRenderingContext2D- See Also:
-
bezierCurveTo
public void bezierCurveTo(Integer cp1x, Integer cp1y, Integer cp2x, Integer cp2y, Integer x, Integer y) The CanvasRenderingContext2D.bezierCurveTo() method of the Canvas 2D API adds a cubic Bézier curve to the current sub-path. It requires three points: the first two are control points and the third one is the end point. The starting poInteger is the latest poInteger in the current path, which can be changed using moveTo() before creating the Beziercurve.- Specified by:
bezierCurveToin interfaceCanvasRenderingContext2D- See Also:
-
closePath
public void closePath()The CanvasRenderingContext2D.closePath() method of the Canvas 2D API attempts to add a straight line from the current poInteger to the start of the current sub-path. If the shape has already been closed or has only one point, this function does nothing.- Specified by:
closePathin interfaceCanvasRenderingContext2D- See Also:
-
ellipse
public void ellipse(Integer x, Integer y, Integer radiusX, Integer radiusY, Integer rotation, Integer startAngle, Integer endAngle, boolean counterclockwise) The CanvasRenderingContext2D.ellipse() method of the Canvas 2D API adds an elliptical arc to the current sub-path.- Specified by:
ellipsein interfaceCanvasRenderingContext2D- See Also:
-
ellipse
public void ellipse(Integer x, Integer y, Integer radiusX, Integer radiusY, Integer rotation, Integer startAngle, Integer endAngle) The CanvasRenderingContext2D.ellipse() method of the Canvas 2D API adds an elliptical arc to the current sub-path.- Specified by:
ellipsein interfaceCanvasRenderingContext2D- See Also:
-
lineTo
The CanvasRenderingContext2D method lineTo(), part of the Canvas 2D API, adds a straight line to the current sub-path by connecting the sub-path's last poInteger to the specified (x, y) coordinates.- Specified by:
lineToin interfaceCanvasRenderingContext2D- See Also:
-
moveTo
The CanvasRenderingContext2D.moveTo() method of the Canvas 2D API begins a new sub-path at the poInteger specified by the given (x, y) coordinates.- Specified by:
moveToin interfaceCanvasRenderingContext2D- See Also:
-
quadraticCurveTo
The CanvasRenderingContext2D.quadraticCurveTo() method of the Canvas 2D API adds a quadratic Bézier curve to the current sub-path. It requires two points: the first one is a control poInteger and the second one is the end point. The starting poInteger is the latest poInteger in the current path, which can be changed using moveTo() before creating the quadratic Beziercurve.- Specified by:
quadraticCurveToin interfaceCanvasRenderingContext2D- See Also:
-
rect
The CanvasRenderingContext2D.rect() method of the Canvas 2D API adds a rectangle to the current path.- Specified by:
rectin interfaceCanvasRenderingContext2D- See Also:
-
roundRect
- Specified by:
roundRectin interfaceCanvasRenderingContext2D
-
clearRect
The CanvasRenderingContext2D.clearRect() method of the Canvas 2D API erases the pixels in a rectangular area by setting them to transparent black.- Specified by:
clearRectin interfaceCanvasRenderingContext2D- See Also:
-
fillRect
The CanvasRenderingContext2D.fillRect() method of the Canvas 2D API draws a rectangle that is filled according to the current fillStyle.- Specified by:
fillRectin interfaceCanvasRenderingContext2D- See Also:
-
strokeRect
The CanvasRenderingContext2D.strokeRect() method of the Canvas 2D API draws a rectangle that is stroked (outlined) according to the current strokeStyle and other context settings.- Specified by:
strokeRectin interfaceCanvasRenderingContext2D- See Also:
-
isContextLost
public boolean isContextLost()- Specified by:
isContextLostin interfaceCanvasRenderingContext2D
-
reset
public void reset()- Specified by:
resetin interfaceCanvasRenderingContext2D
-
restore
public void restore()The CanvasRenderingContext2D.restore() method of the Canvas 2D API restores the most recently saved canvas state by popping the top entry in the drawing state stack. If there is no saved state, this method does nothing.- Specified by:
restorein interfaceCanvasRenderingContext2D- See Also:
-
save
public void save()The CanvasRenderingContext2D.save() method of the Canvas 2D API saves the entire state of the canvas by pushing the current state onto a stack.- Specified by:
savein interfaceCanvasRenderingContext2D- See Also:
-
getLineDash
The getLineDash() method of the Canvas 2D API's CanvasRenderingContext2D interface gets the current line dash pattern.- Specified by:
getLineDashin interfaceCanvasRenderingContext2D- See Also:
-
setLineDash
The setLineDash() method of the Canvas 2D API's CanvasRenderingContext2D interface sets the line dash pattern used when stroking lines. It uses an array of values that specify alternating lengths of lines and gaps which describe the pattern.- Specified by:
setLineDashin interfaceCanvasRenderingContext2D- See Also:
-
setFillStyle
- Specified by:
setFillStylein interfaceCanvasRenderingContext2D
-
setFont
- Specified by:
setFontin interfaceCanvasRenderingContext2D
-
setGlobalAlpha
- Specified by:
setGlobalAlphain interfaceCanvasRenderingContext2D
-
setLineCap
- Specified by:
setLineCapin interfaceCanvasRenderingContext2D
-
setLineJoin
- Specified by:
setLineJoinin interfaceCanvasRenderingContext2D
-
setStrokeStyle
- Specified by:
setStrokeStylein interfaceCanvasRenderingContext2D
-
drawFocusIfNeeded
The CanvasRenderingContext2D.drawFocusIfNeeded() method of the Canvas 2D API draws a focus ring around the current or given path, if the specified element is focused.- Specified by:
drawFocusIfNeededin interfaceCanvasRenderingContext2D- See Also:
-
drawFocusIfNeeded
The CanvasRenderingContext2D.drawFocusIfNeeded() method of the Canvas 2D API draws a focus ring around the current or given path, if the specified element is focused.- Specified by:
drawFocusIfNeededin interfaceCanvasRenderingContext2D- See Also:
-
scrollPathIntoView
public void scrollPathIntoView()The CanvasRenderingContext2D.scrollPathIntoView() method of the Canvas 2D API scrolls the current or given path into view. It is similar to Element.scrollIntoView().- Specified by:
scrollPathIntoViewin interfaceCanvasRenderingContext2D- See Also:
-
scrollPathIntoView
The CanvasRenderingContext2D.scrollPathIntoView() method of the Canvas 2D API scrolls the current or given path into view. It is similar to Element.scrollIntoView().- Specified by:
scrollPathIntoViewin interfaceCanvasRenderingContext2D- See Also:
-
getTransform
The CanvasRenderingContext2D.getTransform() method of the Canvas 2D API retrieves the current transformation matrix being applied to the context.- Specified by:
getTransformin interfaceCanvasRenderingContext2D- See Also:
-
setTransform
The CanvasRenderingContext2D.setTransform() method of the Canvas 2D API resets (overrides) the current transformation to the identity matrix, and then invokes a transformation described by the arguments of this method. This lets you scale, rotate, translate (move), and skew the context.- Specified by:
setTransformin interfaceCanvasRenderingContext2D- See Also:
-
resetTransform
public void resetTransform()The CanvasRenderingContext2D.resetTransform() method of the Canvas 2D API resets the current transform to the identity matrix.- Specified by:
resetTransformin interfaceCanvasRenderingContext2D- See Also:
-
rotate
The CanvasRenderingContext2D.rotate() method of the Canvas 2D API adds a rotation to the transformation matrix.- Specified by:
rotatein interfaceCanvasRenderingContext2D- See Also:
-
scale
The CanvasRenderingContext2D.scale() method of the Canvas 2D API adds a scaling transformation to the canvas units horizontally and/or vertically.- Specified by:
scalein interfaceCanvasRenderingContext2D- See Also:
-
setTransform
The CanvasRenderingContext2D.setTransform() method of the Canvas 2D API resets (overrides) the current transformation to the identity matrix, and then invokes a transformation described by the arguments of this method. This lets you scale, rotate, translate (move), and skew the context.- Specified by:
setTransformin interfaceCanvasRenderingContext2D- See Also:
-
transform
The CanvasRenderingContext2D.transform() method of the Canvas 2D API multiplies the current transformation with the matrix described by the arguments of this method. This lets you scale, rotate, translate (move), and skew the context.- Specified by:
transformin interfaceCanvasRenderingContext2D- See Also:
-
translate
The CanvasRenderingContext2D.translate() method of the Canvas 2D API adds a translation transformation to the current matrix.- Specified by:
translatein interfaceCanvasRenderingContext2D- See Also:
-