public abstract class SvgGraphic extends SvgElement
| Modifier and Type | Field and Description | 
|---|---|
| (package private) java.lang.String | description | 
| (package private) SvgFill | fill | 
| (package private) SvgStroke | stroke | 
| (package private) java.lang.String | title | 
| (package private) SvgTransform | transform | 
| Constructor and Description | 
|---|
| SvgGraphic(SvgContainer container,
          java.lang.String id) | 
| Modifier and Type | Method and 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  descelement that is a child of this svg element. | 
| (package private) SvgFill | getFill() | 
| (package private) SvgStroke | getStroke() | 
| java.lang.String | getTitle()Returns the value of the  titleelement that is a child of this svg element. | 
| (package private) org.eclipse.swt.graphics.Transform | getTransform(org.eclipse.swt.graphics.GC gc) | 
getAncestry, getContainer, getElement, getFragment, getId, getViewport, setContainerjava.lang.String title
java.lang.String description
SvgFill fill
SvgStroke stroke
SvgTransform transform
SvgGraphic(SvgContainer container, java.lang.String id)
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 elementSvgFill getFill()
SvgStroke getStroke()
org.eclipse.swt.graphics.Transform getTransform(org.eclipse.swt.graphics.GC gc)
public 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