public class SvgUse extends SvgGraphic
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.Float |
h |
(package private) java.lang.String |
linkId |
(package private) java.lang.Float |
w |
(package private) float |
x |
(package private) float |
y |
description, fill, stroke, title, transform
Constructor and Description |
---|
SvgUse(SvgContainer container,
java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
void |
apply(org.eclipse.swt.graphics.GC gc)
Apply this svg graphic to the given graphics context.
|
(package private) SvgFill |
getFill() |
(package private) SvgStroke |
getStroke() |
getDescription, getTitle, getTransform
getAncestry, getContainer, getElement, getFragment, getId, getViewport, setContainer
java.lang.String linkId
float x
float y
java.lang.Float w
java.lang.Float h
SvgUse(SvgContainer container, java.lang.String id)
public void apply(org.eclipse.swt.graphics.GC gc)
SvgGraphic
Note that to support the rather abstract structure of svg, each time this method is called all transformations and css properties to be calculated and applied. If this is a shape, it will be painted to the graphics context. Containers will recursively make this call on their children.
apply
in class SvgGraphic
gc
- the gc to use in all graphics operationsSvgFill getFill()
getFill
in class SvgGraphic
SvgStroke getStroke()
getStroke
in class SvgGraphic