Package org.eclipse.nebula.cwt.svg
Class SvgUse
- java.lang.Object
-
- org.eclipse.nebula.cwt.svg.SvgElement
-
- org.eclipse.nebula.cwt.svg.SvgGraphic
-
- org.eclipse.nebula.cwt.svg.SvgUse
-
public class SvgUse extends SvgGraphic
An SvgUse is an svg graphical element that uses another, previously defined graphical element to paint to the graphics context with its own set of styles and transforms.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.Floath(package private) java.lang.StringlinkId(package private) java.lang.Floatw(package private) floatx(package private) floaty-
Fields inherited from class org.eclipse.nebula.cwt.svg.SvgGraphic
description, fill, stroke, title, transform
-
-
Constructor Summary
Constructors Constructor Description SvgUse(SvgContainer container, java.lang.String id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(org.eclipse.swt.graphics.GC gc)Apply this svg graphic to the given graphics context.(package private) SvgFillgetFill()private SvgGraphicgetGraphic()(package private) SvgStrokegetStroke()-
Methods inherited from class org.eclipse.nebula.cwt.svg.SvgGraphic
getDescription, getTitle, getTransform
-
Methods inherited from class org.eclipse.nebula.cwt.svg.SvgElement
getAncestry, getContainer, getElement, getFragment, getId, getViewport, setContainer
-
-
-
-
Constructor Detail
-
SvgUse
SvgUse(SvgContainer container, java.lang.String id)
-
-
Method Detail
-
apply
public void apply(org.eclipse.swt.graphics.GC gc)
Description copied from class:SvgGraphicApply this svg graphic to the given graphics context.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.
- Specified by:
applyin classSvgGraphic- Parameters:
gc- the gc to use in all graphics operations
-
getFill
SvgFill getFill()
- Overrides:
getFillin classSvgGraphic
-
getGraphic
private SvgGraphic getGraphic()
-
getStroke
SvgStroke getStroke()
- Overrides:
getStrokein classSvgGraphic
-
-