Interface Gradient
- All Superinterfaces:
org.eclipse.emf.ecore.EObject
,Fill
,IChartObject
,org.eclipse.emf.common.notify.Notifier
- All Known Implementing Classes:
GradientImpl
A representation of the model object
'Gradient'.
Gradient extends type Fill specialized to represent
a two-color gradient.
The following features are supported:
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the value of the 'Direction' attribute.Returns the value of the 'End Color' containment reference.Returns the value of the 'Start Color' containment reference.int
Returns the value of the 'Transparency' attribute.boolean
isCyclic()
Returns the value of the 'Cyclic' attribute.boolean
Returns whether the value of the 'Cyclic
' attribute is set.boolean
Returns whether the value of the 'Direction
' attribute is set.boolean
Returns whether the value of the 'Transparency
' attribute is set.void
setCyclic
(boolean value) Sets the value of the 'Cyclic
' attribute.void
setDirection
(double value) Sets the value of the 'Direction
' attribute.void
setEndColor
(ColorDefinition value) Sets the value of the 'End Color
' containment reference.void
setStartColor
(ColorDefinition value) Sets the value of the 'Start Color
' containment reference.void
setTransparency
(int value) Sets the value of the 'Transparency
' attribute.void
Unsets the value of the 'Cyclic
' attribute.void
Unsets the value of the 'Direction
' attribute.void
Unsets the value of the 'Transparency
' attribute.Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
Methods inherited from interface org.eclipse.birt.chart.model.attribute.Fill
getType, isSetType, setType, unsetType
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Method Details
-
getStartColor
ColorDefinition getStartColor()Returns the value of the 'Start Color' containment reference. Gets the start color of the gradient. Specifies the start color of the gradient.- Returns:
- the value of the 'Start Color' containment reference.
- See Also:
-
setStartColor
Sets the value of the 'Start Color
' containment reference. Sets the start color of the gradient.- Parameters:
value
- the new value of the 'Start Color' containment reference.- See Also:
-
getEndColor
ColorDefinition getEndColor()Returns the value of the 'End Color' containment reference. Gets the end color of the gradient. Specifies the end color of the gradient.- Returns:
- the value of the 'End Color' containment reference.
- See Also:
-
setEndColor
Sets the value of the 'End Color
' containment reference. Sets the end color of the gradient.- Parameters:
value
- the new value of the 'End Color' containment reference.- See Also:
-
getDirection
double getDirection()Returns the value of the 'Direction' attribute. Gets the angle of the gradient. Defines the angle of the gradient. e.g. If Direction is 45, the Gradient is at an angle of 45 degrees to vertical. With start color being on the left.- Returns:
- the value of the 'Direction' attribute.
- See Also:
-
setDirection
void setDirection(double value) Sets the value of the 'Direction
' attribute. Sets the angle of the gradient.- Parameters:
value
- the new value of the 'Direction' attribute.- See Also:
-
unsetDirection
void unsetDirection()Unsets the value of the 'Direction
' attribute. -
isSetDirection
boolean isSetDirection()Returns whether the value of the 'Direction
' attribute is set.- Returns:
- whether the value of the 'Direction' attribute is set.
- See Also:
-
isCyclic
boolean isCyclic()Returns the value of the 'Cyclic' attribute. Attribute "Cyclic" specifies whether the gradient is cyclic or linear.- Returns:
- the value of the 'Cyclic' attribute.
- See Also:
-
setCyclic
void setCyclic(boolean value) Sets the value of the 'Cyclic
' attribute.- Parameters:
value
- the new value of the 'Cyclic' attribute.- See Also:
-
unsetCyclic
void unsetCyclic()Unsets the value of the 'Cyclic
' attribute.- See Also:
-
isSetCyclic
boolean isSetCyclic()Returns whether the value of the 'Cyclic
' attribute is set.- Returns:
- whether the value of the 'Cyclic' attribute is set.
- See Also:
-
getTransparency
int getTransparency()Returns the value of the 'Transparency' attribute. Gets the transparency for the gradient colors. Specifies the transparency for the gradient.- Returns:
- the value of the 'Transparency' attribute.
- See Also:
-
setTransparency
void setTransparency(int value) Sets the value of the 'Transparency
' attribute. Sets the transparency for the gradient.- Parameters:
value
- the new value of the 'Transparency' attribute.- See Also:
-
unsetTransparency
void unsetTransparency()Unsets the value of the 'Transparency
' attribute. -
isSetTransparency
boolean isSetTransparency()Returns whether the value of the 'Transparency
' attribute is set.- Returns:
- whether the value of the 'Transparency' attribute is set.
- See Also:
-
copyInstance
Gradient copyInstance()- Specified by:
copyInstance
in interfaceFill
- Specified by:
copyInstance
in interfaceIChartObject
-