Class StiGauge
java.lang.Object
com.stimulsoft.base.serializing.StiSerializedObject
com.stimulsoft.base.services.StiService
com.stimulsoft.report.StiBase
com.stimulsoft.report.components.StiComponent
com.stimulsoft.report.infographics.gauge.StiGauge
- All Implemented Interfaces:
IStiAppExpressionCollection,IStiJsonReportObject,IStiSerializable,IStiSerializableRef,IStiName,IStiBorder,IStiBrush,IStiCanGrow,IStiCanShrink,IStiComponentGuid,IStiConditions,IStiExportImage,IStiExportImageExtended,IStiGrowToHeight,IStiInteraction,IStiPrintOn,IStiSelect,IStiShift,IStiUnitConvert,IStiReportProperty,IStiInherited,IStiStateSaveRestore,Cloneable
public class StiGauge
extends StiComponent
implements IStiExportImageExtended, IStiBorder, IStiBrush
Copyright Stimulsoft
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanFields inherited from class com.stimulsoft.report.components.StiComponent
canGrow, canShrink, componentPlacement, conditions, currentPointer, eventFlags, expressions, interaction, isRendered, page, parent, parentBookmark, parentPointer, PropertyComponentStyle, PropertyDelimiterComponent, PropertyDockable, PropertyInherited, PropertyLinked, PropertyLocked, PropertyMaxSize, PropertyMinSize, PropertyPlaceOnToolbox, PropertyRenderedCount, PropertyRestrictions, PropertySelectionTick, PropertyShowQuickButtons, PropertyUseParentStyles, top, widthFields inherited from class com.stimulsoft.base.services.StiService
propertiesFields inherited from interface com.stimulsoft.base.serializing.interfaceobject.IStiSerializableRef
REFERENCE_EMPTY, REFERENCE_REPORT -
Constructor Summary
ConstructorsConstructorDescriptionStiGauge()Creates a new StiGauge.StiGauge(StiRectangle rect) Creates a new StiGauge. -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyStyle(IStiGaugeStyle style) clone(boolean cloneProperties) Creates a new object that is a copy of the current instanc.voiddrawGauge(StiGaugeContextPainter context) frame of the component.getBrush()a brush to fill a component.booleangets or sets a value which indicates that this object can grow.booleangets or sets value which indicates that this object can shrink.gets or sets a style of a component.gets the default client area of a component.booleangets or sets a value which indicates that the height of this component increases/decreases to the bottom of a container.getImage(double zoom) getImage(double zoom, StiExportFormat format) gets interaction options of this component.booleanGets a localized name of the component category.Gets a localized component name.doubledoublegetMode()getStyle()style of the chart.getType()booleangets or sets a value which indicates that this component must use styles from parent component.booleanbooleanisExportAsImage(StiExportFormat format) booleanvoidLoadFromJsonObject(JSONObject jObject) voidsetAllowApplyStyle(boolean allowApplyStyle) voidframe of the component.voida brush to fill a component.voidsetCalculationMode(StiGaugeCalculationMode calculationMode) voidsetCustomStyleName(String customStyleName) voidsetIsAnimation(boolean value) voidsetMaximum(double maximum) voidsetMinimum(double minimum) voidsetMode(StiScaleMode mode) voidsetScales(StiScaleCollection scales) voidsetShortValue(boolean shortValue) voidsetStyle(IStiGaugeStyle value) style of the chart.voidsetType(StiGaugeType type) Methods inherited from class com.stimulsoft.report.components.StiComponent
addSize, AllowPrintOn, applyConditions, canContainIn, CheckForParentComponent, clearAllStates, ClearAllStates, ClearContents, clone, ComponentToPage, ComponentToPage, ComponentToPage, convert, convert, decrementTop, doBookmark, DoBookmark, DockToContainer, DockToContainer, doGetBookmark, DoOffsetRect, doPointer, doPointer, fillComponentPlacement, getActualSize, getAfterPrintEvent, getAlias, getAllowDelete, getAnchor, getBeforePrintEvent, getBookmark, getBookmarkValue, getBottom, getBuilder, getClickEvent, getClientRectangle, getComponentPlacement, GetComponentStyle, getComponentType, getConditions, getContainer, getCurrentBookmark, getDataBand, GetDataBand, getDelimiterComponent, getDisplayRectangle, getDisplayRectangle1, getDockable, getDockRegion, getDockRegion, getDockStyle, getDoubleClickEvent, getDrillDownParameters, getEnabled, getEvents, getExpressions, getForceRedrawAll, getGetBookmarkEvent, getGetDrillDownReportEvent, getGetHyperlinkEvent, getGetTagEvent, getGetToolTipEvent, getGroupHeaderBand, GetGroupHeaderBand, getGuid, getHeight, getHighlightState, getHyperlink, getHyperlinkValue, getIgnoreNamingRule, getImage, getImage, getInherited, getInvalidateOnMouseOver, getIsCross, getIsDesigning, getIsEnabled, getIsEventEmpty, getIsExporting, getIsgetTagHandlerEmpty, getIsPrinting, getIsRendered, getIsSelected, getLeft, getLevel, getLinked, getLocked, getMaxSize, getMeasureGraphics, getMinSize, getMouseEnterEvent, getMouseLeaveEvent, getPage, getPaintRectangle, getPaintRectangle, getPaintRectangle, getParent, getParentBookmark, getPlaceOnToolbox, getPointer, getPointerValue, getPrintable, getPrintOn, getPriority, getQuickInfo, getRenderedCount, getReport, getRestrictions, getRight, getSelectionTick, getSelectRectangle, getServiceCategory, getServiceType, getShift, getShiftMode, getShowQuickButtons, getStates, getTag, getTagStrValue, getTagValue, getToolboxPosition, getToolTip, getToolTipValue, getTop, getWidth, incrementtTop, InternalRender, invert, InvokeAfterPrint, InvokeBeforePrint, InvokeBeginRender, invokeBlockly, InvokeClick, InvokeDoubleClick, InvokeEndRender, invokeEvents, InvokegetBookmark, InvokegetDrillDownReport, InvokegetHyperlink, InvokegetTag, InvokegetToolTip, InvokeMouseEnter, InvokeMouseLeave, InvokePainted, invokePainting, invokeScript, invokeScript, invokeScript, isAutomaticDock, isDesigning, IsParentSelect, NewGuid, OnAfterPrint, OnBeforePrint, OnClick, OnDoubleClick, OngetBookmark, OngetDrillDownReport, OngetHyperlink, OngetTag, OngetToolTip, OnMouseEnter, OnMouseLeave, OnPainted, OnPainting, OnRemoveComponent, packService, PageToComponent, PageToComponent, paint, PlacedOnColumnBand, Prepare, render, reset, Reset, restoreState, RestoreState, saveState, select, setAfterPrintEvent, setAlias, setAnchor, setBeforePrintEvent, setBookmark, setBookmarkValue, setCanGrow, setCanShrink, setClickEvent, setClientRectangle, setComponentPlacement, setComponentStyle, setConditions, setCurrentBookmark, setDelimiterComponent, setDirectDisplayRectangle, setDisplayRectangle, setDockable, setDockStyle, setDoubleClickEvent, setDrillDownParameters, setEnabled, setExpressions, setGetBookmarkEvent, setGetDrillDownReportEvent, setGetHyperlinkEvent, setGetTagEvent, setGetToolTipEvent, setGrowToHeight, setGuid, setHeight, setHeightProp, setHighlightState, setHyperlink, setHyperlinkValue, setIgnoreNamingRule, setInherited, setInteraction, setIsRendered, setIsSelected, setLeft, setLeftProp, setLinked, setLocked, setMaxSize, setMinSize, setMouseEnterEvent, setMouseLeaveEvent, setName, setPage, setPaintRectangle, setParent, setParentBookmark, setPlaceOnToolbox, setPointer, setPointerValue, setPrintable, setPrintOn, setRenderedCount, setReport, SetReportVariables, setRestrictions, setSelectionTick, setSelectRectangle, setShift, setShiftMode, setShowQuickButtons, setStates, setTag, setTagValue, setToolTip, setToolTipValue, setTop, setTopProp, setUseParentStyles, setWidth, setWidthProp, toString, UnPrepareMethods inherited from class com.stimulsoft.report.StiBase
getName, getServiceNameMethods inherited from class com.stimulsoft.base.services.StiService
getProperties, getServiceEnabled, getServiceInfo, isPropertyPresent, MemberwiseClone, properties, setProperties, setServiceEnabledMethods inherited from class com.stimulsoft.base.serializing.StiSerializedObject
cleanReference, getReference, setReferenceMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.stimulsoft.report.components.interfaces.IStiExportImage
getImageMethods inherited from interface com.stimulsoft.report.components.interfaces.IStiExportImageExtended
getImage
-
Field Details
-
shortValue
public boolean shortValue -
painter
-
valueFormat
-
-
Constructor Details
-
StiGauge
public StiGauge()Creates a new StiGauge. -
StiGauge
Creates a new StiGauge.- Parameters:
rect- The rectangle describes size and position of the component.
-
-
Method Details
-
SaveToJsonObject
- Specified by:
SaveToJsonObjectin interfaceIStiJsonReportObject- Overrides:
SaveToJsonObjectin classStiComponent- Throws:
JSONException
-
LoadFromJsonObject
- Specified by:
LoadFromJsonObjectin interfaceIStiJsonReportObject- Overrides:
LoadFromJsonObjectin classStiComponent- Throws:
JSONException
-
getGaugeStyle
-
getComponentId
-
getMode
-
setMode
-
getMinimum
public double getMinimum() -
setMinimum
public void setMinimum(double minimum) -
getMaximum
public double getMaximum() -
setMaximum
public void setMaximum(double maximum) -
getType
-
setType
-
getCalculationMode
-
setCalculationMode
-
isAllowApplyStyle
public boolean isAllowApplyStyle() -
setAllowApplyStyle
public void setAllowApplyStyle(boolean allowApplyStyle) -
clone
Description copied from class:StiComponentCreates a new object that is a copy of the current instanc.- Overrides:
clonein classStiComponent- Returns:
- A new object that is a copy of this instance.
-
getImage
-
getImage
-
isExportAsImage
- Specified by:
isExportAsImagein interfaceIStiExportImageExtended- Overrides:
isExportAsImagein classStiComponent
-
getBorder
frame of the component.- Specified by:
getBorderin interfaceIStiBorder- Returns:
- the border
-
setBorder
frame of the component.- Specified by:
setBorderin interfaceIStiBorder- Parameters:
border- the border to set
-
getBrush
a brush to fill a component. -
setBrush
a brush to fill a component. -
isShortValue
public boolean isShortValue()- Returns:
- the shortValue
-
setShortValue
public void setShortValue(boolean shortValue) - Parameters:
shortValue- the shortValue to set
-
getLocalizedCategory
Description copied from class:StiBaseGets a localized name of the component category.- Overrides:
getLocalizedCategoryin classStiBase
-
getLocalizedName
Description copied from class:StiBaseGets a localized component name.- Overrides:
getLocalizedNamein classStiBase
-
getDefaultClientRectangle
Description copied from class:StiComponentgets the default client area of a component.- Overrides:
getDefaultClientRectanglein classStiComponent
-
getComponentStyle
Description copied from class:StiComponentgets or sets a style of a component.- Overrides:
getComponentStylein classStiComponent
-
getUseParentStyles
public boolean getUseParentStyles()Description copied from class:StiComponentgets or sets a value which indicates that this component must use styles from parent component.- Overrides:
getUseParentStylesin classStiComponent
-
getCanGrow
public boolean getCanGrow()Description copied from class:StiComponentgets or sets a value which indicates that this object can grow.- Specified by:
getCanGrowin interfaceIStiCanGrow- Overrides:
getCanGrowin classStiComponent
-
getCanShrink
public boolean getCanShrink()Description copied from class:StiComponentgets or sets value which indicates that this object can shrink.- Specified by:
getCanShrinkin interfaceIStiCanShrink- Overrides:
getCanShrinkin classStiComponent
-
getGrowToHeight
public boolean getGrowToHeight()Description copied from class:StiComponentgets or sets a value which indicates that the height of this component increases/decreases to the bottom of a container.- Specified by:
getGrowToHeightin interfaceIStiGrowToHeight- Overrides:
getGrowToHeightin classStiComponent
-
getInteraction
Description copied from class:StiComponentgets interaction options of this component.- Specified by:
getInteractionin interfaceIStiInteraction- Overrides:
getInteractionin classStiComponent
-
getStyle
style of the chart.- Returns:
- the style
-
setStyle
style of the chart.- Parameters:
style- the style to set
-
getCustomStyleName
- Returns:
- the customStyleName
-
setCustomStyleName
- Parameters:
customStyleName- the customStyleName to set
-
getScales
- Returns:
- the scales
-
setScales
- Parameters:
scales- the scales to set
-
getIsAnimation
public boolean getIsAnimation() -
setIsAnimation
public void setIsAnimation(boolean value) -
drawGauge
-
createNew
-
applyStyle
-