Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- a() - Method in record class io.brunoborges.jairosvg.css.Colors.RGBA
-
Returns the value of the
arecord component. - applyFilter(Surface, String, BufferedImage) - Static method in class io.brunoborges.jairosvg.draw.Defs
-
Apply filter primitives to an image.
- authority() - Method in record class io.brunoborges.jairosvg.util.UrlHelper.ParsedUrl
-
Returns the value of the
authorityrecord component.
B
- b() - Method in record class io.brunoborges.jairosvg.css.Colors.RGBA
-
Returns the value of the
brecord component. - backgroundColor(String) - Method in class io.brunoborges.jairosvg.JairoSVG.ConversionBuilder
- BLACK - Static variable in record class io.brunoborges.jairosvg.css.Colors.RGBA
- BoundingBox - Class in io.brunoborges.jairosvg.dom
-
Bounding box calculations for SVG shapes and paths.
- BoundingBox.Box - Record Class in io.brunoborges.jairosvg.dom
-
Bounding box as (minX, minY, width, height).
- Box(double, double, double, double) - Constructor for record class io.brunoborges.jairosvg.dom.BoundingBox.Box
-
Creates an instance of a
Boxrecord class. - builder() - Static method in class io.brunoborges.jairosvg.JairoSVG
-
Create a new conversion builder.
- buildGlyphPath(SvgFont.Glyph, double, double, double) - Method in class io.brunoborges.jairosvg.dom.SvgFont
-
Build a GeneralPath for a glyph, scaled to the given font size.
C
- cachedPath() - Method in record class io.brunoborges.jairosvg.dom.SvgFont.Glyph
-
Returns the value of the
cachedPathrecord component. - calculate(Surface, Node) - Static method in class io.brunoborges.jairosvg.dom.BoundingBox
- charsConsumed() - Method in record class io.brunoborges.jairosvg.dom.SvgFont.GlyphMatch
-
Returns the value of the
charsConsumedrecord component. - children - Variable in class io.brunoborges.jairosvg.dom.Node
- circle(Surface, Node) - Static method in class io.brunoborges.jairosvg.dom.BoundingBox
- circle(Surface, Node) - Static method in class io.brunoborges.jairosvg.draw.ShapeDrawer
-
Draw a circle node.
- clipMarkerBox(Surface, Node, double, double) - Static method in class io.brunoborges.jairosvg.util.Helpers
-
Get clip (x, y, width, height) of marker box.
- clipPath(Surface, Node) - Static method in class io.brunoborges.jairosvg.draw.Defs
-
Handle clip-path.
- clipRect(String) - Static method in class io.brunoborges.jairosvg.util.Helpers
-
Parse clip rect values.
- color(String) - Static method in class io.brunoborges.jairosvg.css.Colors
-
Parse with default opacity of 1.
- color(String, double) - Static method in class io.brunoborges.jairosvg.css.Colors
-
Parse a color string into RGBA.
- Colors - Class in io.brunoborges.jairosvg.css
-
SVG color parsing.
- Colors.RGBA - Record Class in io.brunoborges.jairosvg.css
-
RGBA color as (r, g, b, a) with each component in [0.0, 1.0].
- combine(BoundingBox.Box, BoundingBox.Box) - Static method in class io.brunoborges.jairosvg.dom.BoundingBox
- context - Variable in class io.brunoborges.jairosvg.surface.Surface
- contextHeight - Variable in class io.brunoborges.jairosvg.surface.Surface
- contextWidth - Variable in class io.brunoborges.jairosvg.surface.Surface
- createSurface(double, double) - Method in class io.brunoborges.jairosvg.surface.JpegSurface
- createSurface(double, double) - Method in class io.brunoborges.jairosvg.surface.Surface
- CssProcessor - Class in io.brunoborges.jairosvg.css
-
Minimal CSS parsing for SVG inline styles and stylesheets.
- CssProcessor.Declaration - Record Class in io.brunoborges.jairosvg.css
-
A CSS declaration: (property-name, value).
- CssProcessor.MatchResult - Record Class in io.brunoborges.jairosvg.css
-
Both normal and important declarations from a single pass.
- CssProcessor.StyleRule - Record Class in io.brunoborges.jairosvg.css
-
A CSS rule with selector and declarations.
- cursorDPosition - Variable in class io.brunoborges.jairosvg.surface.Surface
- cursorPosition - Variable in class io.brunoborges.jairosvg.surface.Surface
D
- Declaration(String, String) - Constructor for record class io.brunoborges.jairosvg.css.CssProcessor.Declaration
-
Creates an instance of a
Declarationrecord class. - declarations() - Method in record class io.brunoborges.jairosvg.css.CssProcessor.StyleRule
-
Returns the value of the
declarationsrecord component. - Defs - Class in io.brunoborges.jairosvg.draw
-
SVG definitions: gradients, patterns, clips, masks, filters, markers, use.
- distance(double, double, double, double) - Static method in class io.brunoborges.jairosvg.util.Helpers
-
Distance between two points.
- dpi - Variable in class io.brunoborges.jairosvg.surface.Surface
- dpi(double) - Method in class io.brunoborges.jairosvg.JairoSVG.ConversionBuilder
- draw(Node) - Method in class io.brunoborges.jairosvg.surface.Surface
-
Main draw method - renders a node and its children.
- drawGradient(Surface, Node, String, double) - Static method in class io.brunoborges.jairosvg.draw.Defs
-
Draw a gradient.
- drawMarkers(Surface, Node) - Static method in class io.brunoborges.jairosvg.draw.Defs
- drawPattern(Surface, Node, String, double) - Static method in class io.brunoborges.jairosvg.draw.Defs
-
Draw a pattern.
E
- ellipse(Surface, Node) - Static method in class io.brunoborges.jairosvg.dom.BoundingBox
- ellipse(Surface, Node) - Static method in class io.brunoborges.jairosvg.draw.ShapeDrawer
-
Draw an ellipse node.
- EMPTY - Static variable in class io.brunoborges.jairosvg.dom.BoundingBox
- entries() - Method in class io.brunoborges.jairosvg.dom.Node
- equals(Object) - Method in record class io.brunoborges.jairosvg.css.Colors.RGBA
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.brunoborges.jairosvg.css.CssProcessor.Declaration
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.brunoborges.jairosvg.css.CssProcessor.MatchResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.brunoborges.jairosvg.css.CssProcessor.StyleRule
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.brunoborges.jairosvg.dom.BoundingBox.Box
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.brunoborges.jairosvg.dom.SvgFont.Glyph
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.brunoborges.jairosvg.dom.SvgFont.GlyphMatch
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.brunoborges.jairosvg.util.ParsedPoint
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.brunoborges.jairosvg.util.UrlHelper.ParsedUrl
-
Indicates whether some other object is "equal to" this one.
- extendBox(BoundingBox.Box, double, double) - Static method in class io.brunoborges.jairosvg.dom.BoundingBox
F
- family - Variable in class io.brunoborges.jairosvg.dom.SvgFont
-
Font family name from
<font-face font-family="...">. - Features - Class in io.brunoborges.jairosvg.util
-
SVG conditional processing helpers.
- fetch(String, String) - Static method in class io.brunoborges.jairosvg.util.UrlHelper
-
Default URL fetcher that fetches from file system or network.
- fetch(String, String) - Method in interface io.brunoborges.jairosvg.util.UrlHelper.UrlFetcher
- fetchUrl(UrlHelper.ParsedUrl, String) - Method in class io.brunoborges.jairosvg.dom.Node
-
Fetch URL content.
- filter(Surface, Node) - Static method in class io.brunoborges.jairosvg.draw.Defs
-
Handle filter definition.
- filters - Variable in class io.brunoborges.jairosvg.surface.Surface
- finish() - Method in class io.brunoborges.jairosvg.surface.JpegSurface
- finish() - Method in class io.brunoborges.jairosvg.surface.PdfSurface
- finish() - Method in class io.brunoborges.jairosvg.surface.PngSurface
- finish() - Method in class io.brunoborges.jairosvg.surface.PsSurface
- finish() - Method in class io.brunoborges.jairosvg.surface.Surface
-
Write output.
- finish() - Method in class io.brunoborges.jairosvg.surface.TiffSurface
- fonts - Variable in class io.brunoborges.jairosvg.surface.Surface
- fontSize - Variable in class io.brunoborges.jairosvg.surface.Surface
- fragment() - Method in record class io.brunoborges.jairosvg.util.UrlHelper.ParsedUrl
-
Returns the value of the
fragmentrecord component. - fromBytes(byte[]) - Method in class io.brunoborges.jairosvg.JairoSVG.ConversionBuilder
- fromFile(Path) - Method in class io.brunoborges.jairosvg.JairoSVG.ConversionBuilder
- fromStream(InputStream) - Method in class io.brunoborges.jairosvg.JairoSVG.ConversionBuilder
- fromString(String) - Method in class io.brunoborges.jairosvg.JairoSVG.ConversionBuilder
- fromUrl(String) - Method in class io.brunoborges.jairosvg.JairoSVG.ConversionBuilder
G
- g() - Method in record class io.brunoborges.jairosvg.css.Colors.RGBA
-
Returns the value of the
grecord component. - get(String) - Method in class io.brunoborges.jairosvg.dom.Node
- get(String, String) - Method in class io.brunoborges.jairosvg.dom.Node
- getAdvance(SvgFont.Glyph, double) - Method in class io.brunoborges.jairosvg.dom.SvgFont
-
Get the scaled horizontal advance for a glyph.
- getAllMatchingDeclarations(Node, List) - Static method in class io.brunoborges.jairosvg.css.CssProcessor
-
Get all matching CSS declarations in a single pass through the rules.
- getGlyph(String, int) - Method in class io.brunoborges.jairosvg.dom.SvgFont
-
Look up a glyph starting at
offsetintextusing greedy longest-match. - getHref() - Method in class io.brunoborges.jairosvg.dom.Node
-
Get href, checking both xlink:href and href.
- getImage() - Method in class io.brunoborges.jairosvg.surface.Surface
-
Get the rendered image.
- getMatchingDeclarations(Node, List, boolean) - Static method in class io.brunoborges.jairosvg.css.CssProcessor
-
Get CSS declarations that apply to this node from a list of rules.
- getUrl() - Method in record class io.brunoborges.jairosvg.util.UrlHelper.ParsedUrl
- getViewbox(double[]) - Static method in class io.brunoborges.jairosvg.util.Helpers
-
Get viewbox part from nodeFormat result.
- glyph() - Method in record class io.brunoborges.jairosvg.dom.SvgFont.GlyphMatch
-
Returns the value of the
glyphrecord component. - Glyph(GeneralPath, double) - Constructor for record class io.brunoborges.jairosvg.dom.SvgFont.Glyph
-
Creates an instance of a
Glyphrecord class. - GlyphMatch(SvgFont.Glyph, int) - Constructor for record class io.brunoborges.jairosvg.dom.SvgFont.GlyphMatch
-
Creates an instance of a
GlyphMatchrecord class. - gradientOrPattern(Surface, Node, String, double) - Static method in class io.brunoborges.jairosvg.draw.Defs
-
Apply gradient or pattern color.
- gradients - Variable in class io.brunoborges.jairosvg.surface.Surface
- group(Surface, Node) - Static method in class io.brunoborges.jairosvg.dom.BoundingBox
H
- has(String) - Method in class io.brunoborges.jairosvg.dom.Node
- hasFeatures(String) - Static method in class io.brunoborges.jairosvg.util.Features
-
Check whether all listed features are supported.
- hashCode() - Method in record class io.brunoborges.jairosvg.css.Colors.RGBA
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.brunoborges.jairosvg.css.CssProcessor.Declaration
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.brunoborges.jairosvg.css.CssProcessor.MatchResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.brunoborges.jairosvg.css.CssProcessor.StyleRule
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.brunoborges.jairosvg.dom.BoundingBox.Box
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.brunoborges.jairosvg.dom.SvgFont.Glyph
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.brunoborges.jairosvg.dom.SvgFont.GlyphMatch
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.brunoborges.jairosvg.util.ParsedPoint
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.brunoborges.jairosvg.util.UrlHelper.ParsedUrl
-
Returns a hash code value for this object.
- hasNonFragmentParts() - Method in record class io.brunoborges.jairosvg.util.UrlHelper.ParsedUrl
- hasViewbox(double[]) - Static method in class io.brunoborges.jairosvg.util.Helpers
-
Check if viewbox is present (not NaN).
- height - Variable in class io.brunoborges.jairosvg.surface.Surface
- height() - Method in record class io.brunoborges.jairosvg.dom.BoundingBox.Box
-
Returns the value of the
heightrecord component. - Helpers - Class in io.brunoborges.jairosvg.util
-
Surface helpers: size parsing, transforms, normalize, point, etc.
- Helpers.PointError - Exception Class in io.brunoborges.jairosvg.util
- horizAdvX() - Method in record class io.brunoborges.jairosvg.dom.SvgFont.Glyph
-
Returns the value of the
horizAdvXrecord component.
I
- image - Variable in class io.brunoborges.jairosvg.surface.Surface
- image(Surface, Node) - Static method in class io.brunoborges.jairosvg.draw.ImageHandler
-
Draw an image node.
- ImageHandler - Class in io.brunoborges.jairosvg.draw
-
SVG image element handler.
- imageHeight - Variable in class io.brunoborges.jairosvg.dom.Node
- images - Variable in class io.brunoborges.jairosvg.surface.Surface
- imageWidth - Variable in class io.brunoborges.jairosvg.dom.Node
- important() - Method in record class io.brunoborges.jairosvg.css.CssProcessor.MatchResult
-
Returns the value of the
importantrecord component. - important() - Method in record class io.brunoborges.jairosvg.css.CssProcessor.StyleRule
-
Returns the value of the
importantrecord component. - init(Node, OutputStream, double, Surface, Double, Double, double, Double, Double, String, UnaryOperator) - Method in class io.brunoborges.jairosvg.surface.Surface
-
Initialize the surface.
- io.brunoborges.jairosvg - package io.brunoborges.jairosvg
- io.brunoborges.jairosvg.cli - package io.brunoborges.jairosvg.cli
- io.brunoborges.jairosvg.css - package io.brunoborges.jairosvg.css
- io.brunoborges.jairosvg.dom - package io.brunoborges.jairosvg.dom
- io.brunoborges.jairosvg.draw - package io.brunoborges.jairosvg.draw
- io.brunoborges.jairosvg.surface - package io.brunoborges.jairosvg.surface
- io.brunoborges.jairosvg.util - package io.brunoborges.jairosvg.util
- isNonEmpty(BoundingBox.Box) - Static method in class io.brunoborges.jairosvg.dom.BoundingBox
- isValid(BoundingBox.Box) - Static method in class io.brunoborges.jairosvg.dom.BoundingBox
J
- JairoSVG - Class in io.brunoborges.jairosvg
-
JairoSVG - A Java port of CairoSVG.
- JairoSVG.ConversionBuilder - Class in io.brunoborges.jairosvg
-
Fluent builder for SVG conversion.
- jpegQuality(float) - Method in class io.brunoborges.jairosvg.JairoSVG.ConversionBuilder
-
Set JPEG quality (0.0-1.0). 0.0 = lowest quality (smallest file), 1.0 = highest quality (largest file).
- JpegSurface - Class in io.brunoborges.jairosvg.surface
-
JPEG output surface.
- JpegSurface() - Constructor for class io.brunoborges.jairosvg.surface.JpegSurface
L
- line(Surface, Node) - Static method in class io.brunoborges.jairosvg.dom.BoundingBox
- line(Surface, Node) - Static method in class io.brunoborges.jairosvg.draw.ShapeDrawer
-
Draw a line node.
- linearGradient(Surface, Node) - Static method in class io.brunoborges.jairosvg.draw.Defs
-
Handle gradient definitions.
M
- main(String[]) - Static method in class io.brunoborges.jairosvg.cli.Main
- Main - Class in io.brunoborges.jairosvg.cli
-
Command-line interface to JairoSVG.
- Main() - Constructor for class io.brunoborges.jairosvg.cli.Main
- mapColor(String) - Method in class io.brunoborges.jairosvg.surface.Surface
- mapColor(String, double) - Method in class io.brunoborges.jairosvg.surface.Surface
-
Map a color string through the color mapper.
- marker(Surface, Node) - Static method in class io.brunoborges.jairosvg.draw.Defs
-
Handle markers.
- markers - Variable in class io.brunoborges.jairosvg.surface.Surface
- mask(Surface, Node) - Static method in class io.brunoborges.jairosvg.draw.Defs
-
Handle mask definition.
- masks - Variable in class io.brunoborges.jairosvg.surface.Surface
- matchesSelector(Node, String) - Static method in class io.brunoborges.jairosvg.css.CssProcessor
-
Check if a Node matches a simple CSS selector.
- matchFeatures(String, String, String) - Static method in class io.brunoborges.jairosvg.util.Features
-
Check the node matches the conditional processing attributes.
- MatchResult(List, List) - Constructor for record class io.brunoborges.jairosvg.css.CssProcessor.MatchResult
-
Creates an instance of a
MatchResultrecord class. - minX() - Method in record class io.brunoborges.jairosvg.dom.BoundingBox.Box
-
Returns the value of the
minXrecord component. - minY() - Method in record class io.brunoborges.jairosvg.dom.BoundingBox.Box
-
Returns the value of the
minYrecord component.
N
- name() - Method in record class io.brunoborges.jairosvg.css.CssProcessor.Declaration
-
Returns the value of the
namerecord component. - negateColor(Colors.RGBA) - Static method in class io.brunoborges.jairosvg.css.Colors
-
Negate (complement) a color.
- negateColors(boolean) - Method in class io.brunoborges.jairosvg.JairoSVG.ConversionBuilder
- Node - Class in io.brunoborges.jairosvg.dom
-
SVG Node with dict-like properties and children.
- nodeFormat(Surface, Node) - Static method in class io.brunoborges.jairosvg.util.Helpers
- nodeFormat(Surface, Node, boolean) - Static method in class io.brunoborges.jairosvg.util.Helpers
-
Return (width, height, viewbox) of a node.
- normal() - Method in record class io.brunoborges.jairosvg.css.CssProcessor.MatchResult
-
Returns the value of the
normalrecord component. - normalize(String) - Static method in class io.brunoborges.jairosvg.util.Helpers
-
Normalize a string corresponding to an array of various values.
O
- output - Variable in class io.brunoborges.jairosvg.surface.Surface
- outputHeight(double) - Method in class io.brunoborges.jairosvg.JairoSVG.ConversionBuilder
- outputWidth(double) - Method in class io.brunoborges.jairosvg.JairoSVG.ConversionBuilder
P
- paint(String) - Static method in class io.brunoborges.jairosvg.util.Helpers
-
Extract URI and color from a paint value.
- PAINT_URL - Static variable in class io.brunoborges.jairosvg.util.Helpers
- paintMask(Surface, Node, String, double) - Static method in class io.brunoborges.jairosvg.draw.Defs
-
Handle mask (simplified).
- parent - Variable in class io.brunoborges.jairosvg.dom.Node
- parentHeight(double) - Method in class io.brunoborges.jairosvg.JairoSVG.ConversionBuilder
- parentNode - Variable in class io.brunoborges.jairosvg.surface.Surface
- parentWidth(double) - Method in class io.brunoborges.jairosvg.JairoSVG.ConversionBuilder
- parse(Node) - Static method in class io.brunoborges.jairosvg.dom.SvgFont
-
Parse an SVG font from a
<font>node. - parseAllDefs(Surface, Node) - Static method in class io.brunoborges.jairosvg.draw.Defs
-
Recursively parse all definition elements.
- parseDeclarations(String) - Static method in class io.brunoborges.jairosvg.css.CssProcessor
-
Parse inline style declarations into normal and important lists.
- parseDef(Surface, Node) - Static method in class io.brunoborges.jairosvg.draw.Defs
-
Parse a single definition element.
- ParsedPoint - Record Class in io.brunoborges.jairosvg.util
-
Parsed point with remaining unparsed string.
- ParsedPoint(double, double, String) - Constructor for record class io.brunoborges.jairosvg.util.ParsedPoint
-
Creates an instance of a
ParsedPointrecord class. - ParsedUrl(String, String, String, String, String) - Constructor for record class io.brunoborges.jairosvg.util.UrlHelper.ParsedUrl
-
Creates an instance of a
ParsedUrlrecord class. - parseExternalStylesheets(List, UrlHelper.UrlFetcher, String) - Static method in class io.brunoborges.jairosvg.css.CssProcessor
-
Parse external stylesheet data from captured
<?xml-stylesheet?>processing instruction data strings. - parseFont(String) - Static method in class io.brunoborges.jairosvg.util.Helpers
-
Parse font shorthand property.
- parsePseudoAttributes(String) - Static method in class io.brunoborges.jairosvg.css.CssProcessor
-
Parse pseudo-attributes from a processing instruction data string.
- parseStylesheet(String, List) - Static method in class io.brunoborges.jairosvg.css.CssProcessor
-
Parse a CSS stylesheet string into rules.
- parseStylesheets(Node) - Static method in class io.brunoborges.jairosvg.css.CssProcessor
-
Extract stylesheets from <style> elements in the Node tree.
- parseTransform(Surface, String) - Static method in class io.brunoborges.jairosvg.util.Helpers
-
Parse an SVG transform string into an AffineTransform.
- parseTree(byte[]) - Static method in class io.brunoborges.jairosvg.dom.Node
- parseTree(byte[], String, boolean) - Static method in class io.brunoborges.jairosvg.dom.Node
- parseTree(byte[], String, UrlHelper.UrlFetcher, boolean) - Static method in class io.brunoborges.jairosvg.dom.Node
-
Parse an SVG from bytes, file, or URL into a Node tree.
- parseUrl(String) - Static method in class io.brunoborges.jairosvg.util.UrlHelper
-
Parse URL without base.
- parseUrl(String, String) - Static method in class io.brunoborges.jairosvg.util.UrlHelper
-
Parse a URL, potentially extracting it from url() notation.
- path - Variable in class io.brunoborges.jairosvg.surface.Surface
- path() - Method in record class io.brunoborges.jairosvg.util.UrlHelper.ParsedUrl
-
Returns the value of the
pathrecord component. - path(Surface, Node) - Static method in class io.brunoborges.jairosvg.dom.BoundingBox
- path(Surface, Node) - Static method in class io.brunoborges.jairosvg.draw.PathDrawer
-
Draw a path node.
- PATH_LETTERS - Static variable in class io.brunoborges.jairosvg.util.Helpers
- PathDrawer - Class in io.brunoborges.jairosvg.draw
-
SVG path command parser and drawer.
- paths - Variable in class io.brunoborges.jairosvg.surface.Surface
- pattern(Surface, Node) - Static method in class io.brunoborges.jairosvg.draw.Defs
-
Handle pattern definition.
- patterns - Variable in class io.brunoborges.jairosvg.surface.Surface
- PdfSurface - Class in io.brunoborges.jairosvg.surface
-
PDF output surface using Apache PDFBox.
- PdfSurface() - Constructor for class io.brunoborges.jairosvg.surface.PdfSurface
- pngCompressionLevel(int) - Method in class io.brunoborges.jairosvg.JairoSVG.ConversionBuilder
-
Set PNG compression level (0-9). 0 = no compression (fastest), 9 = max compression (smallest).
- PngSurface - Class in io.brunoborges.jairosvg.surface
-
PNG output surface.
- PngSurface() - Constructor for class io.brunoborges.jairosvg.surface.PngSurface
- point(Surface, String) - Static method in class io.brunoborges.jairosvg.util.Helpers
-
Return (x, y, trailing_text) from string.
- pointAngle(double, double, double, double) - Static method in class io.brunoborges.jairosvg.util.Helpers
-
Return angle between x axis and point knowing given center.
- PointError() - Constructor for exception class io.brunoborges.jairosvg.util.Helpers.PointError
- PointError(String) - Constructor for exception class io.brunoborges.jairosvg.util.Helpers.PointError
- pointWithRemainder(Surface, String) - Static method in class io.brunoborges.jairosvg.util.Helpers
-
Return (x, y, remaining_string).
- polygon(Surface, Node) - Static method in class io.brunoborges.jairosvg.draw.ShapeDrawer
-
Draw a polygon node.
- polyline(Surface, Node) - Static method in class io.brunoborges.jairosvg.dom.BoundingBox
- polyline(Surface, Node) - Static method in class io.brunoborges.jairosvg.draw.ShapeDrawer
-
Draw a polyline node.
- popRotation(Node, List, List) - Static method in class io.brunoborges.jairosvg.util.Helpers
-
Pop rotation values already used.
- prepareFilter(Surface, Node, String) - Static method in class io.brunoborges.jairosvg.draw.Defs
-
Handle filter preparation.
- preserveRatio(Surface, Node) - Static method in class io.brunoborges.jairosvg.util.Helpers
- preserveRatio(Surface, Node, double, double) - Static method in class io.brunoborges.jairosvg.util.Helpers
-
Manage the ratio preservation.
- PsSurface - Class in io.brunoborges.jairosvg.surface
-
PostScript output surface.
- PsSurface() - Constructor for class io.brunoborges.jairosvg.surface.PsSurface
- PsSurface(boolean) - Constructor for class io.brunoborges.jairosvg.surface.PsSurface
Q
- quadraticPoints(double, double, double, double, double, double) - Static method in class io.brunoborges.jairosvg.util.Helpers
-
Return quadratic points for cubic curve approximation.
- query() - Method in record class io.brunoborges.jairosvg.util.UrlHelper.ParsedUrl
-
Returns the value of the
queryrecord component.
R
- r() - Method in record class io.brunoborges.jairosvg.css.Colors.RGBA
-
Returns the value of the
rrecord component. - radialGradient(Surface, Node) - Static method in class io.brunoborges.jairosvg.draw.Defs
- readUrl(UrlHelper.ParsedUrl, UrlHelper.UrlFetcher, String) - Static method in class io.brunoborges.jairosvg.util.UrlHelper
-
Read bytes from a parsed URL using the given fetcher.
- rect(Surface, Node) - Static method in class io.brunoborges.jairosvg.dom.BoundingBox
- rect(Surface, Node) - Static method in class io.brunoborges.jairosvg.draw.ShapeDrawer
-
Draw a rect node.
- remainder() - Method in record class io.brunoborges.jairosvg.util.ParsedPoint
-
Returns the value of the
remainderrecord component. - remove(String) - Method in class io.brunoborges.jairosvg.dom.Node
- resolveCustomProperties(String, Map) - Static method in class io.brunoborges.jairosvg.css.CssProcessor
-
Resolve CSS custom properties in
var(--name[, fallback])expressions. - RGBA(double, double, double, double) - Constructor for record class io.brunoborges.jairosvg.css.Colors.RGBA
-
Creates an instance of a
RGBArecord class. - root - Variable in class io.brunoborges.jairosvg.dom.Node
- rootNode - Variable in class io.brunoborges.jairosvg.surface.Surface
- rotate(double, double, double) - Static method in class io.brunoborges.jairosvg.util.Helpers
-
Rotate a point by angle around origin.
- rotations(Node) - Static method in class io.brunoborges.jairosvg.util.Helpers
-
Get original rotation values from a node.
S
- safeFetch(String, String) - Static method in class io.brunoborges.jairosvg.util.UrlHelper
-
Safe fetcher that only allows data: URLs.
- scale(double) - Method in class io.brunoborges.jairosvg.JairoSVG.ConversionBuilder
- scheme() - Method in record class io.brunoborges.jairosvg.util.UrlHelper.ParsedUrl
-
Returns the value of the
schemerecord component. - selector() - Method in record class io.brunoborges.jairosvg.css.CssProcessor.StyleRule
-
Returns the value of the
selectorrecord component. - set(String, double) - Method in class io.brunoborges.jairosvg.dom.Node
- set(String, String) - Method in class io.brunoborges.jairosvg.dom.Node
- setCompressionLevel(int) - Method in class io.brunoborges.jairosvg.surface.PngSurface
-
Set PNG compression level (0-9). 0 = no compression (fastest), 9 = max compression (smallest).
- setCompressionType(String) - Method in class io.brunoborges.jairosvg.surface.TiffSurface
-
Set TIFF compression type.
- setContextSize(double, double, double[], Node) - Method in class io.brunoborges.jairosvg.surface.Surface
-
Set the context size and apply viewport transformations.
- setQuality(float) - Method in class io.brunoborges.jairosvg.surface.JpegSurface
-
Set JPEG quality (0.0-1.0). 0.0 = lowest quality (smallest), 1.0 = highest quality (largest).
- ShapeDrawer - Class in io.brunoborges.jairosvg.draw
-
SVG shape drawers.
- size(Surface, String) - Static method in class io.brunoborges.jairosvg.util.Helpers
-
Size with no reference.
- size(Surface, String, String) - Static method in class io.brunoborges.jairosvg.util.Helpers
-
Replace a string with units by a float value.
- strokeAndFill - Variable in class io.brunoborges.jairosvg.surface.Surface
- StyleRule(String, List, boolean) - Constructor for record class io.brunoborges.jairosvg.css.CssProcessor.StyleRule
-
Creates an instance of a
StyleRulerecord class. - supportLanguages(String) - Static method in class io.brunoborges.jairosvg.util.Features
-
Check whether one of the languages is part of user locales.
- Surface - Class in io.brunoborges.jairosvg.surface
-
Abstract base surface for SVG rendering using Java2D.
- Surface() - Constructor for class io.brunoborges.jairosvg.surface.Surface
- svg(Surface, Node) - Static method in class io.brunoborges.jairosvg.draw.SvgDrawer
-
Draw a svg node (nested SVG).
- svg2pdf(byte[]) - Static method in class io.brunoborges.jairosvg.JairoSVG
-
Convert SVG bytes to PDF bytes.
- svg2pdf(String) - Static method in class io.brunoborges.jairosvg.JairoSVG
-
Convert SVG URL to PDF bytes.
- svg2pdf(Path, Path) - Static method in class io.brunoborges.jairosvg.JairoSVG
-
Convert SVG file to PDF file.
- svg2png(byte[]) - Static method in class io.brunoborges.jairosvg.JairoSVG
-
Convert SVG bytes to PNG bytes.
- svg2png(String) - Static method in class io.brunoborges.jairosvg.JairoSVG
-
Convert SVG URL to PNG bytes.
- svg2png(Path, Path) - Static method in class io.brunoborges.jairosvg.JairoSVG
-
Convert SVG file to PNG file.
- SvgDrawer - Class in io.brunoborges.jairosvg.draw
-
Root SVG tag drawer.
- SvgFont - Class in io.brunoborges.jairosvg.dom
-
Represents a parsed SVG font with its glyphs.
- SvgFont.Glyph - Record Class in io.brunoborges.jairosvg.dom
-
A single glyph definition with a pre-parsed cached path.
- SvgFont.GlyphMatch - Record Class in io.brunoborges.jairosvg.dom
-
Result of a glyph lookup: the matched glyph and how many chars were consumed.
T
- tag - Variable in class io.brunoborges.jairosvg.dom.Node
- text - Variable in class io.brunoborges.jairosvg.dom.Node
- text(Surface, Node) - Static method in class io.brunoborges.jairosvg.draw.TextDrawer
-
Draw a text node.
- text(Surface, Node, boolean) - Static method in class io.brunoborges.jairosvg.draw.TextDrawer
-
Draw a text node, optionally as filled text.
- TextDrawer - Class in io.brunoborges.jairosvg.draw
-
SVG text rendering.
- textPathWidth - Variable in class io.brunoborges.jairosvg.surface.Surface
- tiffCompressionType(String) - Method in class io.brunoborges.jairosvg.JairoSVG.ConversionBuilder
-
Set TIFF compression type.
- TiffSurface - Class in io.brunoborges.jairosvg.surface
-
TIFF output surface.
- TiffSurface() - Constructor for class io.brunoborges.jairosvg.surface.TiffSurface
- toEps() - Method in class io.brunoborges.jairosvg.JairoSVG.ConversionBuilder
-
Convert to EPS bytes.
- toImage() - Method in class io.brunoborges.jairosvg.JairoSVG.ConversionBuilder
-
Convert and return the rendered BufferedImage (useful for in-memory use).
- toJpeg() - Method in class io.brunoborges.jairosvg.JairoSVG.ConversionBuilder
-
Convert to JPEG bytes.
- toJpeg(OutputStream) - Method in class io.brunoborges.jairosvg.JairoSVG.ConversionBuilder
-
Convert to JPEG and write to output stream.
- toPdf() - Method in class io.brunoborges.jairosvg.JairoSVG.ConversionBuilder
-
Convert to PDF bytes.
- toPdf(OutputStream) - Method in class io.brunoborges.jairosvg.JairoSVG.ConversionBuilder
-
Convert to PDF and write to output stream.
- toPng() - Method in class io.brunoborges.jairosvg.JairoSVG.ConversionBuilder
-
Convert to PNG bytes.
- toPng(OutputStream) - Method in class io.brunoborges.jairosvg.JairoSVG.ConversionBuilder
-
Convert to PNG and write to output stream.
- toPs() - Method in class io.brunoborges.jairosvg.JairoSVG.ConversionBuilder
-
Convert to PS bytes.
- toString() - Method in record class io.brunoborges.jairosvg.css.Colors.RGBA
-
Returns a string representation of this record class.
- toString() - Method in record class io.brunoborges.jairosvg.css.CssProcessor.Declaration
-
Returns a string representation of this record class.
- toString() - Method in record class io.brunoborges.jairosvg.css.CssProcessor.MatchResult
-
Returns a string representation of this record class.
- toString() - Method in record class io.brunoborges.jairosvg.css.CssProcessor.StyleRule
-
Returns a string representation of this record class.
- toString() - Method in record class io.brunoborges.jairosvg.dom.BoundingBox.Box
-
Returns a string representation of this record class.
- toString() - Method in record class io.brunoborges.jairosvg.dom.SvgFont.Glyph
-
Returns a string representation of this record class.
- toString() - Method in record class io.brunoborges.jairosvg.dom.SvgFont.GlyphMatch
-
Returns a string representation of this record class.
- toString() - Method in record class io.brunoborges.jairosvg.util.ParsedPoint
-
Returns a string representation of this record class.
- toString() - Method in record class io.brunoborges.jairosvg.util.UrlHelper.ParsedUrl
-
Returns a string representation of this record class.
- toTiff() - Method in class io.brunoborges.jairosvg.JairoSVG.ConversionBuilder
-
Convert to TIFF bytes.
- toTiff(OutputStream) - Method in class io.brunoborges.jairosvg.JairoSVG.ConversionBuilder
-
Convert to TIFF and write to output stream.
- transform(Surface, String) - Static method in class io.brunoborges.jairosvg.util.Helpers
- transform(Surface, String, AffineTransform, String) - Static method in class io.brunoborges.jairosvg.util.Helpers
-
Apply SVG transform string to the surface Graphics2D.
- TRANSPARENT - Static variable in record class io.brunoborges.jairosvg.css.Colors.RGBA
U
- UNITS - Static variable in class io.brunoborges.jairosvg.util.Helpers
- unsafe - Variable in class io.brunoborges.jairosvg.dom.Node
- unsafe(boolean) - Method in class io.brunoborges.jairosvg.JairoSVG.ConversionBuilder
- url - Variable in class io.brunoborges.jairosvg.dom.Node
- urlFetcher - Variable in class io.brunoborges.jairosvg.dom.Node
- UrlHelper - Class in io.brunoborges.jairosvg.util
-
URL handling utilities.
- UrlHelper.ParsedUrl - Record Class in io.brunoborges.jairosvg.util
-
A parsed URL wrapper.
- UrlHelper.UrlFetcher - Interface in io.brunoborges.jairosvg.util
-
Functional interface for URL fetching.
- use(Surface, Node) - Static method in class io.brunoborges.jairosvg.draw.Defs
-
Handle use element.
V
- value() - Method in record class io.brunoborges.jairosvg.css.CssProcessor.Declaration
-
Returns the value of the
valuerecord component. - VERSION - Static variable in class io.brunoborges.jairosvg.JairoSVG
- vertices - Variable in class io.brunoborges.jairosvg.dom.Node
W
- width - Variable in class io.brunoborges.jairosvg.surface.Surface
- width() - Method in record class io.brunoborges.jairosvg.dom.BoundingBox.Box
-
Returns the value of the
widthrecord component. - withoutFragment() - Method in record class io.brunoborges.jairosvg.util.UrlHelper.ParsedUrl
X
- x() - Method in record class io.brunoborges.jairosvg.util.ParsedPoint
-
Returns the value of the
xrecord component.
Y
- y() - Method in record class io.brunoborges.jairosvg.util.ParsedPoint
-
Returns the value of the
yrecord component.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form