Package org.eclipse.nebula.cwt.svg
Class SvgGradient
- java.lang.Object
-
- org.eclipse.nebula.cwt.svg.SvgElement
-
- org.eclipse.nebula.cwt.svg.SvgGradient
-
class SvgGradient extends SvgElement
-
-
Field Summary
Fields Modifier and Type Field Description (package private) booleanboundingBox(package private) float[]bounds(package private) static intCX(package private) static intCY(package private) float[]data(package private) static intFX(package private) static intFY(package private) org.eclipse.swt.graphics.GCgc(package private) java.lang.StringlinkId(package private) static intPAD(package private) org.eclipse.swt.graphics.Patternpattern(package private) static intR(package private) static intREFLECT(package private) static intREPEAT(package private) intspreadMethod(package private) java.util.List<SvgGradientStop>stops(package private) SvgTransformtransform(package private) static intX1(package private) static intX2(package private) static intY1(package private) static intY2
-
Constructor Summary
Constructors Constructor Description SvgGradient(SvgContainer container, java.lang.String id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(boolean foreground)private voidapply(org.eclipse.swt.graphics.GC gc, SvgGradientStop stop, boolean foreground)voidcreate(SvgShape shape, org.eclipse.swt.graphics.GC gc)private org.eclipse.swt.graphics.ColorcreateColor(org.eclipse.swt.graphics.GC gc, int color)voiddispose()SvgGradientStop[]getStops()SvgTransformgetTransform()(package private) voidsetLinkId(java.lang.String id)(package private) voidsetSpreadMethod(java.lang.String s)(package private) voidsetTransform(SvgTransform transform)(package private) voidsetUnits(java.lang.String s)-
Methods inherited from class org.eclipse.nebula.cwt.svg.SvgElement
getAncestry, getContainer, getElement, getFragment, getId, getViewport, setContainer
-
-
-
-
Field Detail
-
X1
static final int X1
- See Also:
- Constant Field Values
-
Y1
static final int Y1
- See Also:
- Constant Field Values
-
X2
static final int X2
- See Also:
- Constant Field Values
-
Y2
static final int Y2
- See Also:
- Constant Field Values
-
CX
static final int CX
- See Also:
- Constant Field Values
-
CY
static final int CY
- See Also:
- Constant Field Values
-
FX
static final int FX
- See Also:
- Constant Field Values
-
FY
static final int FY
- See Also:
- Constant Field Values
-
R
static final int R
- See Also:
- Constant Field Values
-
PAD
static final int PAD
- See Also:
- Constant Field Values
-
REFLECT
static final int REFLECT
- See Also:
- Constant Field Values
-
REPEAT
static final int REPEAT
- See Also:
- Constant Field Values
-
data
float[] data
-
linkId
java.lang.String linkId
-
stops
java.util.List<SvgGradientStop> stops
-
gc
org.eclipse.swt.graphics.GC gc
-
bounds
float[] bounds
-
pattern
org.eclipse.swt.graphics.Pattern pattern
-
boundingBox
boolean boundingBox
-
spreadMethod
int spreadMethod
-
transform
SvgTransform transform
-
-
Constructor Detail
-
SvgGradient
SvgGradient(SvgContainer container, java.lang.String id)
-
-
Method Detail
-
apply
public void apply(boolean foreground)
-
apply
private void apply(org.eclipse.swt.graphics.GC gc, SvgGradientStop stop, boolean foreground)
-
create
public void create(SvgShape shape, org.eclipse.swt.graphics.GC gc)
-
createColor
private org.eclipse.swt.graphics.Color createColor(org.eclipse.swt.graphics.GC gc, int color)
-
dispose
public void dispose()
-
getStops
public SvgGradientStop[] getStops()
-
getTransform
public SvgTransform getTransform()
-
setLinkId
void setLinkId(java.lang.String id)
-
setSpreadMethod
void setSpreadMethod(java.lang.String s)
-
setTransform
void setTransform(SvgTransform transform)
-
setUnits
void setUnits(java.lang.String s)
-
-