public class SvgShape extends SvgGraphic
See also: http://www.w3.org/TR/SVG/shapes.html
| Modifier and Type | Field and Description |
|---|---|
(package private) org.eclipse.swt.graphics.PathData |
pathData |
description, fill, stroke, title, transform| Constructor and Description |
|---|
SvgShape(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.
|
boolean |
contains(float x,
float y,
org.eclipse.swt.graphics.GC gc,
boolean outline)
Returns whether or not the given point is contained by this shape.
|
(package private) float[] |
getBounds() |
getDescription, getFill, getStroke, getTitle, getTransformgetAncestry, getContainer, getElement, getFragment, getId, getViewport, setContainerSvgShape(SvgContainer container, java.lang.String id)
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 boolean contains(float x,
float y,
org.eclipse.swt.graphics.GC gc,
boolean outline)
x - y - gc - outline - Path.contains(float, float, GC, boolean)float[] getBounds()