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) boolean
boundingBox
(package private) float[]
bounds
(package private) static int
CX
(package private) static int
CY
(package private) float[]
data
(package private) static int
FX
(package private) static int
FY
(package private) org.eclipse.swt.graphics.GC
gc
(package private) java.lang.String
linkId
(package private) static int
PAD
(package private) org.eclipse.swt.graphics.Pattern
pattern
(package private) static int
R
(package private) static int
REFLECT
(package private) static int
REPEAT
(package private) int
spreadMethod
(package private) java.util.List<SvgGradientStop>
stops
(package private) SvgTransform
transform
(package private) static int
X1
(package private) static int
X2
(package private) static int
Y1
(package private) static int
Y2
-
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 void
apply(boolean foreground)
private void
apply(org.eclipse.swt.graphics.GC gc, SvgGradientStop stop, boolean foreground)
void
create(SvgShape shape, org.eclipse.swt.graphics.GC gc)
private org.eclipse.swt.graphics.Color
createColor(org.eclipse.swt.graphics.GC gc, int color)
void
dispose()
SvgGradientStop[]
getStops()
SvgTransform
getTransform()
(package private) void
setLinkId(java.lang.String id)
(package private) void
setSpreadMethod(java.lang.String s)
(package private) void
setTransform(SvgTransform transform)
(package private) void
setUnits(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)
-
-