public class PieSegment extends java.lang.Object implements IPieSegment
IPieRenderableSeries
PieRenderableSeries
,
DonutRenderableSeries
Modifier and Type | Class and Description |
---|---|
protected static class |
PieSegment.PieSegmentPropertyChangeListener |
Modifier and Type | Field and Description |
---|---|
protected com.scichart.core.framework.SmartProperty<com.scichart.drawing.common.BrushStyle> |
fillStyleProperty |
protected com.scichart.core.framework.SmartPropertyBoolean |
isSelectedProperty |
protected PieSegment.PieSegmentPropertyChangeListener |
pieSegmentPropertyChangeListener |
protected com.scichart.core.framework.SmartProperty<com.scichart.drawing.common.PenStyle> |
strokeStyleProperty |
protected com.scichart.core.framework.SmartProperty<java.lang.String> |
titleProperty |
protected com.scichart.core.framework.SmartProperty<com.scichart.drawing.common.FontStyle> |
titleStyleProperty |
protected com.scichart.core.framework.SmartPropertyDouble |
valueProperty |
Constructor and Description |
---|
PieSegment()
Creates a new instance of
PieSegment class. |
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(PieSegmentChangeListener listener)
Add the listener which should be invoked if this segment changes
|
void |
addIsSelectedChangeListener(PieSegmentChangeListener listener)
Add the listener which should be invoked if this segment becomes selected/unselected
|
void |
applyThemeProvider(IThemeProvider themeProvider)
Applies specified theme to current instance
|
com.scichart.drawing.common.BrushStyle |
getFillStyle()
Gets the fill style of this segment.
|
boolean |
getIsSelected()
Gets whether this segment is selected.
|
IStyle |
getSelectedSegmentStyle()
Gets the
IStyle which is applied when segment is selected |
com.scichart.drawing.common.PenStyle |
getStrokeStyle()
Gets the stroke style of this segment.
|
java.lang.String |
getTitle()
Gets the title of this segment.
|
com.scichart.drawing.common.FontStyle |
getTitleStyle()
Gets the font style of the title of this segment.
|
double |
getValue()
Gets the value of this segment.
|
void |
removeChangeListener(PieSegmentChangeListener listener)
Removes the listener which should invoke if this segment changes
|
void |
removeIsSelectedChangeListener(PieSegmentChangeListener listener)
Removes the listener which should invoke if this segment become selected/unselected
|
void |
setFillStyle(com.scichart.drawing.common.BrushStyle fillStyle)
Sets the fill style for this segment.
|
void |
setIsSelected(boolean isSelected)
Sets whether this segment is selected.
|
void |
setSelectedSegmentStyle(IStyle selectedSegmentStyle)
Sets the
IStyle which is applied when segment is selected |
void |
setStrokeStyle(com.scichart.drawing.common.PenStyle strokeStyle)
Sets the stroke style for this segment.
|
void |
setTitle(java.lang.String title)
Sets the title for this segment.
|
void |
setTitleStyle(com.scichart.drawing.common.FontStyle titleStyle)
Sets the font style for the title of this segment.
|
void |
setValue(double value)
Sets the value for this segment.
|
protected final PieSegment.PieSegmentPropertyChangeListener pieSegmentPropertyChangeListener
protected final com.scichart.core.framework.SmartPropertyBoolean isSelectedProperty
protected final com.scichart.core.framework.SmartPropertyDouble valueProperty
protected final com.scichart.core.framework.SmartProperty<java.lang.String> titleProperty
protected final com.scichart.core.framework.SmartProperty<com.scichart.drawing.common.PenStyle> strokeStyleProperty
protected final com.scichart.core.framework.SmartProperty<com.scichart.drawing.common.BrushStyle> fillStyleProperty
protected final com.scichart.core.framework.SmartProperty<com.scichart.drawing.common.FontStyle> titleStyleProperty
public PieSegment()
PieSegment
class.public final double getValue()
getValue
in interface IPieSegment
public final void setValue(double value)
setValue
in interface IPieSegment
value
- New value.public final boolean getIsSelected()
getIsSelected
in interface IPieSegment
public final void setIsSelected(boolean isSelected)
setIsSelected
in interface IPieSegment
isSelected
- New isSelected valuepublic final java.lang.String getTitle()
getTitle
in interface IPieSegment
public final void setTitle(java.lang.String title)
setTitle
in interface IPieSegment
title
- New title.public final com.scichart.drawing.common.PenStyle getStrokeStyle()
getStrokeStyle
in interface IPieSegment
public final void setStrokeStyle(com.scichart.drawing.common.PenStyle strokeStyle)
setStrokeStyle
in interface IPieSegment
strokeStyle
- New stroke style.public final com.scichart.drawing.common.BrushStyle getFillStyle()
getFillStyle
in interface IPieSegment
public final void setFillStyle(com.scichart.drawing.common.BrushStyle fillStyle)
setFillStyle
in interface IPieSegment
fillStyle
- New fill style.public final com.scichart.drawing.common.FontStyle getTitleStyle()
getTitleStyle
in interface IPieSegment
public final void setTitleStyle(com.scichart.drawing.common.FontStyle titleStyle)
setTitleStyle
in interface IPieSegment
titleStyle
- New font style for the title.public final IStyle getSelectedSegmentStyle()
IStyle
which is applied when segment is selectedgetSelectedSegmentStyle
in interface IPieSegment
public void setSelectedSegmentStyle(IStyle selectedSegmentStyle)
IStyle
which is applied when segment is selectedsetSelectedSegmentStyle
in interface IPieSegment
selectedSegmentStyle
- The new segment selected stylepublic void applyThemeProvider(IThemeProvider themeProvider)
applyThemeProvider
in interface IThemeable
themeProvider
- The IThemeProvider
instance which provides new theme for current instancepublic final void addIsSelectedChangeListener(PieSegmentChangeListener listener)
addIsSelectedChangeListener
in interface IPieSegment
listener
- The listener to addpublic final void removeIsSelectedChangeListener(PieSegmentChangeListener listener)
removeIsSelectedChangeListener
in interface IPieSegment
listener
- The listener to removepublic final void addChangeListener(PieSegmentChangeListener listener)
addChangeListener
in interface IPieSegment
listener
- The listener to addpublic final void removeChangeListener(PieSegmentChangeListener listener)
removeChangeListener
in interface IPieSegment
listener
- The listener to remove