SvgDocument
, SvgFragment
public class SvgContainer extends SvgGraphic
Modifier and Type | Method | Description |
---|---|---|
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.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getId
getDescription, getTitle
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 operationspublic SvgElement[] getElements()
public boolean isEmpty()