SvgContainer
, SvgShape
, SvgUse
public abstract class SvgGraphic extends SvgElement
Modifier and Type | Method | Description |
---|---|---|
abstract void |
apply(org.eclipse.swt.graphics.GC gc) |
Apply this svg graphic to the given graphics context.
|
java.lang.String |
getDescription() |
Returns the value of the
desc element that is a child of this svg element. |
java.lang.String |
getTitle() |
Returns the value of the
title element that is a child of this svg element. |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getId
public abstract void apply(org.eclipse.swt.graphics.GC gc)
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.
gc
- the gc to use in all graphics operationspublic java.lang.String getDescription()
desc
element that is a child of this svg element.
If there is no desc
element that is a direct decendent of this element, null
is returned.desc
of this svg elementpublic java.lang.String getTitle()
title
element that is a child of this svg element.
If there is no title
element that is a direct decendent of this element, null
is returned.title
of this svg element