Class StiNeedle
java.lang.Object
com.stimulsoft.report.infographics.gauge.primitives.base.StiElementBase
com.stimulsoft.report.infographics.gauge.primitives.base.StiGaugeElement
com.stimulsoft.report.infographics.gauge.primitives.indicators.StiIndicatorBase
com.stimulsoft.report.infographics.gauge.indicators.StiNeedle
- All Implemented Interfaces:
IStiJsonReportObject,IStiSerializable,IStiSerializableRef,IStiApplyStyleGauge,Cloneable
Copyright Stimulsoft
-
Field Summary
Fields inherited from class com.stimulsoft.report.infographics.gauge.primitives.base.StiGaugeElement
animation, scaleFields inherited from interface com.stimulsoft.base.serializing.interfaceobject.IStiSerializableRef
REFERENCE_EMPTY, REFERENCE_REPORT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyStyle(IStiGaugeStyle style) Apply style to component which release this interface.voiddrawElement(StiGaugeContextPainter context) getBrush()the border of the cap.doublethe border thickness of the cap.a brush to fill a cap.the center coordinate, around which it rotates.doublegetFont()font of component.the format string for the ShowValue property.doubledoublethe height factor relative to the height of the basic component.doublethe width ratio relative to the height of the basic component.getSkin()the skin of the component rendering.doublea brush to draw text.voidinteractiveClick(StiRectangle rect, StiPoint p) booleana value indicating whether to calculate CenterPoint for the indicator automatically.booleana value indicating whether to display a current value of the indicator.voidLoadFromJsonObject(JSONObject jObject) voidsetAutoCalculateCenterPoint(boolean autoCalculateCenterPoint) a value indicating whether to calculate CenterPoint for the indicator automatically.voidvoidsetCapBorderBrush(StiBrush capBorderBrush) the border of the cap.voidsetCapBorderWidth(double capBorderWidth) the border thickness of the cap.voidsetCapBrush(StiBrush capBrush) a brush to fill a cap.voidsetCenterPoint(StiPoint centerPoint) the center coordinate, around which it rotates.voidsetCustomSkin(StiGaugeElementSkin customSkin) voidsetEndWidth(double endWidth) voidfont of component.voidthe format string for the ShowValue property.voidsetOffsetNeedle(double offsetNeedle) voidsetRelativeHeight(double relativeHeight) the height factor relative to the height of the basic component.voidsetRelativeWidth(double relativeWidth) the width ratio relative to the height of the basic component.voidsetShowValue(boolean showValue) a value indicating whether to display a current value of the indicator.voidsetSkin(StiNeedleSkin skin) the skin of the component rendering.voidsetStartWidth(double startWidth) voidsetTextBrush(StiBrush textBrush) a brush to draw text.Methods inherited from class com.stimulsoft.report.infographics.gauge.primitives.indicators.StiIndicatorBase
clone, getActualValue, getBorderBrush, getBorderWidth, getGetValueEvent, getPlacement, getValue, getValueObj, InvokeGetValue, OnGetValue, onValueChanged, prepareGaugeElement, setBorderBrush, setBorderWidth, setGetValueEvent, setPlacement, setValue, setValueObjMethods inherited from class com.stimulsoft.report.infographics.gauge.primitives.base.StiGaugeElement
cleanReference, getAnimation, getReference, getScale, setAnimation, setReference, setScaleMethods inherited from class com.stimulsoft.report.infographics.gauge.primitives.base.StiElementBase
isAllowApplyStyle, setAllowApplyStyle
-
Constructor Details
-
StiNeedle
public StiNeedle()
-
-
Method Details
-
SaveToJsonObject
- Specified by:
SaveToJsonObjectin interfaceIStiJsonReportObject- Overrides:
SaveToJsonObjectin classStiIndicatorBase- Throws:
JSONException
-
LoadFromJsonObject
- Specified by:
LoadFromJsonObjectin interfaceIStiJsonReportObject- Overrides:
LoadFromJsonObjectin classStiIndicatorBase- Throws:
JSONException
-
getComponentId
-
applyStyle
Description copied from interface:IStiApplyStyleGaugeApply style to component which release this interface.- Specified by:
applyStylein interfaceIStiApplyStyleGauge- Overrides:
applyStylein classStiElementBase- Parameters:
style-
-
getFormat
the format string for the ShowValue property.- Returns:
- the format
-
setFormat
the format string for the ShowValue property.- Parameters:
format- the format to set
-
isShowValue
public boolean isShowValue()a value indicating whether to display a current value of the indicator.- Returns:
- the showValue
-
setShowValue
public void setShowValue(boolean showValue) a value indicating whether to display a current value of the indicator.- Parameters:
showValue- the showValue to set
-
getTextBrush
a brush to draw text.- Returns:
- the textBrush
-
setTextBrush
a brush to draw text.- Parameters:
textBrush- the textBrush to set
-
getFont
font of component.- Returns:
- the font
-
setFont
font of component.- Parameters:
font- the font to set
-
getCapBrush
a brush to fill a cap.- Returns:
- the capBrush
-
setCapBrush
a brush to fill a cap.- Parameters:
capBrush- the capBrush to set
-
getCapBorderBrush
the border of the cap.- Returns:
- the capBorderBrush
-
setCapBorderBrush
the border of the cap.- Parameters:
capBorderBrush- the capBorderBrush to set
-
getCapBorderWidth
public double getCapBorderWidth()the border thickness of the cap.- Returns:
- the capBorderWidth
-
setCapBorderWidth
public void setCapBorderWidth(double capBorderWidth) the border thickness of the cap.- Parameters:
capBorderWidth- the capBorderWidth to set
-
getOffsetNeedle
public double getOffsetNeedle()- Returns:
- the offsetNeedle
-
setOffsetNeedle
public void setOffsetNeedle(double offsetNeedle) - Parameters:
offsetNeedle- the offsetNeedle to set
-
getStartWidth
public double getStartWidth()- Returns:
- the startWidth
-
setStartWidth
public void setStartWidth(double startWidth) - Parameters:
startWidth- the startWidth to set
-
getEndWidth
public double getEndWidth()- Returns:
- the endWidth
-
setEndWidth
public void setEndWidth(double endWidth) - Parameters:
endWidth- the endWidth to set
-
isAutoCalculateCenterPoint
public boolean isAutoCalculateCenterPoint()a value indicating whether to calculate CenterPoint for the indicator automatically.- Returns:
- the autoCalculateCenterPoint
-
setAutoCalculateCenterPoint
public void setAutoCalculateCenterPoint(boolean autoCalculateCenterPoint) a value indicating whether to calculate CenterPoint for the indicator automatically.- Parameters:
autoCalculateCenterPoint- the autoCalculateCenterPoint to set
-
getCenterPoint
the center coordinate, around which it rotates. The minimum value - Point (0,0), the maximum - Point (1,1).- Returns:
- the centerPoint
-
setCenterPoint
the center coordinate, around which it rotates. The minimum value - Point (0,0), the maximum - Point (1,1).- Parameters:
centerPoint- the centerPoint to set
-
getRelativeHeight
public double getRelativeHeight()the height factor relative to the height of the basic component.- Returns:
- the relativeHeight
-
setRelativeHeight
public void setRelativeHeight(double relativeHeight) the height factor relative to the height of the basic component.- Parameters:
relativeHeight- the relativeHeight to set
-
getRelativeWidth
public double getRelativeWidth()the width ratio relative to the height of the basic component.- Returns:
- the relativeWidth
-
setRelativeWidth
public void setRelativeWidth(double relativeWidth) the width ratio relative to the height of the basic component.- Parameters:
relativeWidth- the relativeWidth to set
-
getSkin
the skin of the component rendering.- Returns:
- the skin
-
setSkin
the skin of the component rendering.- Parameters:
skin- the skin to set
-
getCustomSkin
- Returns:
- the customSkin
-
setCustomSkin
- Parameters:
customSkin- the customSkin to set
-
getBrush
- Overrides:
getBrushin classStiIndicatorBase- Returns:
- the brush
-
setBrush
- Overrides:
setBrushin classStiIndicatorBase- Parameters:
brush- the brush to set
-
getElementType
- Overrides:
getElementTypein classStiGaugeElement
-
getLocalizeName
- Overrides:
getLocalizeNamein classStiGaugeElement
-
createNew
- Overrides:
createNewin classStiGaugeElement
-
drawElement
- Overrides:
drawElementin classStiElementBase
-
interactiveClick
- Specified by:
interactiveClickin classStiIndicatorBase
-