public class SvgShape extends SvgGraphic
See also: http://www.w3.org/TR/SVG/shapes.html
Modifier and Type | Method | 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.
|
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 boolean contains(float x, float y, org.eclipse.swt.graphics.GC gc, boolean outline)
x
- y
- gc
- outline
- Path.contains(float, float, GC, boolean)