Class StiShape
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.components.simplecomponents.StiShape
- All Implemented Interfaces:
IStiAppExpressionCollection,IStiJsonReportObject,IStiSerializable,IStiSerializableRef,IStiName,IStiBorderColor,IStiBrush,IStiCanGrow,IStiCanShrink,IStiComponentGuid,IStiConditions,IStiExportImage,IStiExportImageExtended,IStiGrowToHeight,IStiInteraction,IStiPrintOn,IStiSelect,IStiShape,IStiShift,IStiUnitConvert,IStiReportProperty,IStiInherited,IStiStateSaveRestore,Cloneable
public class StiShape
extends StiComponent
implements IStiBrush, IStiBorderColor, IStiExportImageExtended, IStiShape
Class describes the component that serves to show shapes.
-
Field Summary
Fields 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
ConstructorsConstructorDescriptionStiShape()Creates a new component of the type StiShape.StiShape(StiRectangle rect) Creates a new component of the type StiShape. -
Method Summary
Modifier and TypeMethodDescriptionclone(boolean cloneProperties) Creates a new object that is a copy of the current instance.final StiColorGets or sets border color.getBrush()Gets or sets 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 the default client area of a component.Gets a localized name of the component category.Gets a localized component name.final StiShapeTypeServiceGets or sets type of the shape.final doublegetSize()Gets or sets size of the border.final StiPenStylegetStyle()Gets or sets a pen style.intGets value to sort a position in the toolbox.booleanisExportAsImage(StiExportFormat format) booleanIsExportAsImage(StiExportFormat format) voidLoadFromJsonObject(JSONObject jObject) final voidsetBorderColor(StiColor value) voidvoidsetCanGrow(boolean value) voidsetCanShrink(boolean value) final voidsetShapeType(StiShapeTypeService value) final voidsetSize(double value) final voidsetStyle(StiPenStyle value) 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, 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, getGrowToHeight, getGuid, getHeight, getHighlightState, getHyperlink, getHyperlinkValue, getIgnoreNamingRule, getImage, getImage, getInherited, getInteraction, 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, getToolTip, getToolTipValue, getTop, getUseParentStyles, 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, 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
-
Constructor Details
-
StiShape
public StiShape()Creates a new component of the type StiShape. -
StiShape
Creates a new component of the type StiShape.- Parameters:
rect- The rectangle describes size and position of the component.
-
-
Method Details
-
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
-
setCanShrink
public void setCanShrink(boolean value) - Specified by:
setCanShrinkin interfaceIStiCanShrink- Overrides:
setCanShrinkin 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
-
setCanGrow
public void setCanGrow(boolean value) - Specified by:
setCanGrowin interfaceIStiCanGrow- Overrides:
setCanGrowin classStiComponent
-
clone
Creates a new object that is a copy of the current instance.- Overrides:
clonein classStiComponent- Returns:
- A new object that is a copy of this instance.
-
isExportAsImage
- Specified by:
isExportAsImagein interfaceIStiExportImageExtended- Overrides:
isExportAsImagein classStiComponent
-
getBrush
Gets or sets a brush to fill a component. -
setBrush
-
getBorderColor
Gets or sets border color.- Specified by:
getBorderColorin interfaceIStiBorderColor
-
setBorderColor
- Specified by:
setBorderColorin interfaceIStiBorderColor
-
getToolboxPosition
public int getToolboxPosition()Gets value to sort a position in the toolbox.- Overrides:
getToolboxPositionin classStiComponent
-
getLocalizedCategory
Gets a localized name of the component category.- Overrides:
getLocalizedCategoryin classStiBase
-
getLocalizedName
Gets a localized component name.- Overrides:
getLocalizedNamein classStiBase
-
getDefaultClientRectangle
Gets or sets the default client area of a component.- Overrides:
getDefaultClientRectanglein classStiComponent
-
getStyle
Gets or sets a pen style. -
setStyle
-
getSize
public final double getSize()Gets or sets size of the border. -
setSize
public final void setSize(double value) -
getShapeType
Gets or sets type of the shape. -
setShapeType
-
IsExportAsImage
-
SaveToJsonObject
- Specified by:
SaveToJsonObjectin interfaceIStiJsonReportObject- Overrides:
SaveToJsonObjectin classStiComponent- Throws:
JSONException
-
LoadFromJsonObject
- Specified by:
LoadFromJsonObjectin interfaceIStiJsonReportObject- Overrides:
LoadFromJsonObjectin classStiComponent- Throws:
JSONException
-