public class SvgContainer extends SvgGraphic
| Modifier and Type | Field and Description |
|---|---|
(package private) java.util.List<SvgElement> |
elements |
description, fill, stroke, title, transform| Constructor and Description |
|---|
SvgContainer(SvgContainer container,
java.lang.String id) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
add(SvgElement element) |
void |
apply(org.eclipse.swt.graphics.GC gc)
Apply this svg graphic to the given graphics context.
|
SvgElement[] |
getElements()
Returns an array of child elements contained by this container element.
|
boolean |
isEmpty()
Returns true if this list contains no elements.
|
getDescription, getFill, getStroke, getTitle, getTransformgetAncestry, getContainer, getElement, getFragment, getId, getViewport, setContainerjava.util.List<SvgElement> elements
SvgContainer(SvgContainer container, java.lang.String id)
void add(SvgElement element)
public void apply(org.eclipse.swt.graphics.GC gc)
SvgGraphicNote 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 SvgGraphicgc - the gc to use in all graphics operationspublic SvgElement[] getElements()
public boolean isEmpty()