Interface IPieSegment
Defines the interface for PieSegment.
Namespace:
Assembly: .dll
Syntax
public interface IPieSegment extends IThemeable, ISuspendable
Methods
addChangeListener(renderableSeries.PieSegmentChangeListener listener)
Add the listener which should be invoked if this segment changes
Declaration
public abstract void addChangeListener(renderableSeries.PieSegmentChangeListener listener)
Parameters
Type | Name | Description |
---|---|---|
renderableSeries.PieSegmentChangeListener | listener | The listener to add |
addIsSelectedChangeListener(renderableSeries.PieSegmentChangeListener listener)
Add the listener which should be invoked if this segment becomes selected/unselected
Declaration
public abstract void addIsSelectedChangeListener(renderableSeries.PieSegmentChangeListener listener)
Parameters
Type | Name | Description |
---|---|---|
renderableSeries.PieSegmentChangeListener | listener | The listener to add |
getFillStyle()
Gets the fill style of this segment.
Declaration
public abstract BrushStyle getFillStyle()
Returns
Type | Description |
---|---|
BrushStyle | The current fill style. |
getIsSelected()
Gets whether this segment is selected.
Declaration
public abstract boolean getIsSelected()
Returns
Type | Description |
---|---|
boolean | True if this segment is selected. Otherwise - false. |
getSelectedSegmentStyle()
Gets the IStyle which is applied when segment is selected
Declaration
public abstract renderableSeries.IStyle getSelectedSegmentStyle()
Returns
Type | Description |
---|---|
renderableSeries.IStyle | The current segment style |
getStrokeStyle()
Gets the stroke style of this segment.
Declaration
public abstract PenStyle getStrokeStyle()
Returns
Type | Description |
---|---|
PenStyle | The current stroke style. |
getTitle()
Gets the title of this segment.
Declaration
public abstract String getTitle()
Returns
Type | Description |
---|---|
String | The current title. |
getTitleStyle()
Gets the font style of the title of this segment.
Declaration
public abstract FontStyle getTitleStyle()
Returns
Type | Description |
---|---|
FontStyle | The current font style of the title. |
getValue()
Gets the value of this segment.
Declaration
public abstract double getValue()
Returns
Type | Description |
---|---|
double | The current value. |
removeChangeListener(renderableSeries.PieSegmentChangeListener listener)
Removes the listener which should invoke if this segment changes
Declaration
public abstract void removeChangeListener(renderableSeries.PieSegmentChangeListener listener)
Parameters
Type | Name | Description |
---|---|---|
renderableSeries.PieSegmentChangeListener | listener | The listener to remove |
removeIsSelectedChangeListener(renderableSeries.PieSegmentChangeListener listener)
Removes the listener which should invoke if this segment become selected/unselected
Declaration
public abstract void removeIsSelectedChangeListener(renderableSeries.PieSegmentChangeListener listener)
Parameters
Type | Name | Description |
---|---|---|
renderableSeries.PieSegmentChangeListener | listener | The listener to remove |
setFillStyle(BrushStyle fillStyle)
Sets the fill style for this segment.
Declaration
public abstract void setFillStyle(BrushStyle fillStyle)
Parameters
Type | Name | Description |
---|---|---|
BrushStyle | fillStyle | New fill style. |
setIsSelected(boolean isSelected)
Sets whether this segment is selected.
Declaration
public abstract void setIsSelected(boolean isSelected)
Parameters
Type | Name | Description |
---|---|---|
boolean | isSelected | New isSelected value |
setSelectedSegmentStyle(renderableSeries.IStyle selectedSegmentStyle)
Sets the IStyle which is applied when segment is selected
Declaration
public abstract void setSelectedSegmentStyle(renderableSeries.IStyle selectedSegmentStyle)
Parameters
Type | Name | Description |
---|---|---|
renderableSeries.IStyle | selectedSegmentStyle | The new segment selected style |
setStrokeStyle(PenStyle strokeStyle)
Sets the stroke style for this segment.
Declaration
public abstract void setStrokeStyle(PenStyle strokeStyle)
Parameters
Type | Name | Description |
---|---|---|
PenStyle | strokeStyle | New stroke style. |
setTitle(String title)
Sets the title for this segment.
Declaration
public abstract void setTitle(String title)
Parameters
Type | Name | Description |
---|---|---|
String | title | New title. |
setTitleStyle(FontStyle titleStyle)
Sets the font style for the title of this segment.
Declaration
public abstract void setTitleStyle(FontStyle titleStyle)
Parameters
Type | Name | Description |
---|---|---|
FontStyle | titleStyle | New font style for the title. |
setValue(double value)
Sets the value for this segment.
Declaration
public abstract void setValue(double value)
Parameters
Type | Name | Description |
---|---|---|
double | value | New value. |