com.stimulsoft.report.components.simplecomponents
Class StiRectanglePrimitive

java.lang.Object
  extended by com.stimulsoft.base.serializing.StiSerializedObject
      extended by com.stimulsoft.base.services.StiService
          extended by com.stimulsoft.report.StiBase
              extended by com.stimulsoft.report.components.StiComponent
                  extended by com.stimulsoft.report.components.simplecomponents.StiPrimitive
                      extended by com.stimulsoft.report.components.simplecomponents.StiLinePrimitive
                          extended by com.stimulsoft.report.components.simplecomponents.StiCrossLinePrimitive
                              extended by com.stimulsoft.report.components.simplecomponents.StiRectanglePrimitive
All Implemented Interfaces:
IStiAppExpressionCollection, IStiJsonReportObject, IStiSerializable, IStiSerializableRef, IStiName, IStiBorder, IStiCanGrow, IStiCanShrink, IStiComponentGuid, IStiConditions, IStiGrowToHeight, IStiHideBorderFromDesigner, IStiInteraction, IStiPrintOn, IStiSelect, IStiShift, IStiUnitConvert, IStiReportProperty, IStiInherited, IStiStateSaveRestore, java.lang.Cloneable
Direct Known Subclasses:
StiRoundedRectanglePrimitive

public class StiRectanglePrimitive
extends StiCrossLinePrimitive
implements IStiHideBorderFromDesigner, IStiBorder

Describes class that realizes component - StiRectanglePrimitive.


Field Summary
 
Fields inherited from class com.stimulsoft.report.components.simplecomponents.StiCrossLinePrimitive
StoredEndPoint, StoredStartPoint
 
Fields inherited from class com.stimulsoft.report.components.StiComponent
canGrow, canShrink, componentPlacement, conditions, currentPointer, expressions, interaction, isRendered, page, parent, parentBookmark, parentPointer, top, width
 
Fields inherited from interface com.stimulsoft.base.serializing.interfaceobject.IStiSerializableRef
REFERENCE_EMPTY, REFERENCE_REPORT
 
Constructor Summary
StiRectanglePrimitive()
          Creates a new StiRectanglePrimitive.
StiRectanglePrimitive(StiRectangle rect)
          Creates a new StiRectanglePrimitive.
 
Method Summary
 void convert(StiUnit oldUnit, StiUnit newUnit)
          Converts a component out of one unit into another.
 StiBorder getBorder()
          Gets or sets frame of the component.
 boolean getBottomSide()
          Gets os sets property which indicates to draw bottom side of the rectangle or no.
 boolean getLeftSide()
          Gets os sets property which indicates to draw left side of the rectangle or no.
 java.lang.String getLocalizedName()
          Gets a localized component name.
 boolean getRightSide()
          Gets os sets property which indicates to draw right side of the rectangle or no.
 int getToolboxPosition()
          Gets value to sort a position in the toolbox.
 boolean getTopSide()
          Gets os sets property which indicates to draw top side of the rectangle or no.
 double getWidth()
          gets or sets width of a component.
 void LoadFromJsonObject(JSONObject jObject)
           
 JSONObject SaveToJsonObject(StiJsonSaveMode mode)
           
 void setBorder(StiBorder value)
           
 void setBottomSide(boolean value)
           
 void setLeftSide(boolean value)
           
 void setRightSide(boolean value)
           
 void setTopSide(boolean value)
           
 void setWidth(double value)
           
 
Methods inherited from class com.stimulsoft.report.components.simplecomponents.StiCrossLinePrimitive
canContainIn, getEndPoint, getEndPoint, getHeight, getLeft, getLinked, getStartPoint, getStartPoint, getTop, OnRemoveComponent, setHeight, setLeft, setLinked, setTop
 
Methods inherited from class com.stimulsoft.report.components.simplecomponents.StiLinePrimitive
getColor, getDefaultClientRectangle, getInvalidateOnMouseOver, getSize, getStyle, setColor, setSize, setStyle
 
Methods inherited from class com.stimulsoft.report.components.simplecomponents.StiPrimitive
getCanGrow, getCanShrink, getClientRectangle, getComponentType, getConditions, getDisplayRectangle, getDockStyle, getGrowToHeight, getLocalizedCategory, getPriority, getShift, getUseParentStyles, setCanGrow, setCanShrink, setClientRectangle, setConditions, setDirectDisplayRectangle, setDisplayRectangle, setDockStyle, setGrowToHeight, setShift, setUseParentStyles
 
Methods inherited from class com.stimulsoft.report.components.StiComponent
addSize, applyConditions, CheckForParentComponent, clearAllStates, ClearAllStates, ClearContents, clone, clone, ComponentToPage, ComponentToPage, ComponentToPage, convert, decrementTop, doBookmark, DoBookmark, DockToContainer, DockToContainer, doGetBookmark, DoOffsetRect, doPointer, fillComponentPlacement, getActualSize, getAfterPrintEvent, getAlias, getAllowDelete, getAnchor, getBeforePrintEvent, getBookmark, getBookmarkValue, getBottom, getClickEvent, getComponentPlacement, getComponentStyle, getContainer, getCurrentBookmark, getDataBand, GetDataBand, getDelimiterComponent, getDisplayRectangle1, getDockable, getDockRegion, getDockRegion, getDoubleClickEvent, getDrillDownParameters, getEnabled, getEvents, getExpressions, getForceRedrawAll, getgetBookmarkEvent, getgetDrillDownReportEvent, getgetHyperlinkEvent, getgetTagEvent, getgetToolTipEvent, getGroupHeaderBand, GetGroupHeaderBand, getGuid, getHighlightState, getHyperlink, getHyperlinkValue, getIgnoreNamingRule, getImage, getImage, getInherited, getInteraction, getIsCross, getIsDesigning, getIsEnabled, getIsEventEmpty, getIsExporting, getIsgetTagHandlerEmpty, getIsPrinting, getIsRendered, getIsSelected, getLevel, getLocked, getMaxSize, getMeasureGraphics, getMinSize, getMouseEnterEvent, getMouseLeaveEvent, getPage, getPaintRectangle, getPaintRectangle, getPaintRectangle, getParent, getParentBookmark, getPlaceOnToolbox, getPointer, getPointerValue, getPrintable, getPrintOn, getQuickInfo, getRenderedCount, getReport, getRestrictions, getRight, getSelectionTick, getSelectRectangle, getServiceCategory, getServiceType, getShiftMode, getShowQuickButtons, getTag, getTagStrValue, getTagValue, getToolTip, getToolTipValue, incrementtTop, InternalRender, invert, InvokeAfterPrint, InvokeBeforePrint, InvokeBeginRender, InvokeClick, InvokeDoubleClick, InvokeEndRender, invokeEvents, InvokegetBookmark, InvokegetDrillDownReport, InvokegetHyperlink, InvokegetTag, InvokegetToolTip, InvokeMouseEnter, InvokeMouseLeave, InvokePainted, invokePainting, isAutomaticDock, isDesigning, isExportAsImage, IsParentSelect, NewGuid, packService, PageToComponent, PageToComponent, paint, PlacedOnColumnBand, Prepare, render, reset, Reset, restoreState, RestoreState, saveState, select, setAfterPrintEvent, setAlias, setAnchor, setBeforePrintEvent, setBookmark, setBookmarkValue, setClickEvent, setComponentPlacement, setComponentStyle, setCurrentBookmark, setDelimiterComponent, setDockable, setDoubleClickEvent, setDrillDownParameters, setEnabled, setExpressions, setgetBookmarkEvent, setgetDrillDownReportEvent, setgetHyperlinkEvent, setgetTagEvent, setgetToolTipEvent, setGuid, setHeightProp, setHighlightState, setHyperlink, setHyperlinkValue, setIgnoreNamingRule, setInherited, setInteraction, setIsRendered, setIsSelected, setLeftProp, setLocked, setMaxSize, setMinSize, setMouseEnterEvent, setMouseLeaveEvent, setName, setPage, setPaintRectangle, setParent, setParentBookmark, setPlaceOnToolbox, setPointer, setPointerValue, setPrintable, setPrintOn, setRenderedCount, setReport, SetReportVariables, setRestrictions, setSelectionTick, setSelectRectangle, setShiftMode, setShowQuickButtons, setStates, setTag, setTagValue, setToolTip, setToolTipValue, setTopProp, setWidthProp, toString, UnPrepare
 
Methods inherited from class com.stimulsoft.report.StiBase
getName, getServiceName
 
Methods inherited from class com.stimulsoft.base.services.StiService
getProperties, getServiceEnabled, getServiceInfo, isPropertyPresent, MemberwiseClone, properties, setProperties, setServiceEnabled
 
Methods inherited from class com.stimulsoft.base.serializing.StiSerializedObject
cleanReference, getReference, setReference
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StiRectanglePrimitive

public StiRectanglePrimitive()
Creates a new StiRectanglePrimitive.


StiRectanglePrimitive

public StiRectanglePrimitive(StiRectangle rect)
Creates a new StiRectanglePrimitive.

Parameters:
rect - The rectangle describes size and position of the component.
Method Detail

getBorder

public final StiBorder getBorder()
Gets or sets frame of the component.

Specified by:
getBorder in interface IStiBorder

setBorder

public final void setBorder(StiBorder value)
Specified by:
setBorder in interface IStiBorder

convert

public void convert(StiUnit oldUnit,
                    StiUnit newUnit)
Converts a component out of one unit into another.

Specified by:
convert in interface IStiUnitConvert
Overrides:
convert in class StiComponent
Parameters:
oldUnit - Old units.
newUnit - New units.

getToolboxPosition

public int getToolboxPosition()
Gets value to sort a position in the toolbox.

Overrides:
getToolboxPosition in class StiComponent

getLocalizedName

public java.lang.String getLocalizedName()
Gets a localized component name.

Overrides:
getLocalizedName in class StiBase

getWidth

public double getWidth()
Description copied from class: StiComponent
gets or sets width of a component.

Overrides:
getWidth in class StiComponent

setWidth

public void setWidth(double value)
Overrides:
setWidth in class StiComponent

getTopSide

public boolean getTopSide()
Gets os sets property which indicates to draw top side of the rectangle or no.


setTopSide

public void setTopSide(boolean value)

getLeftSide

public boolean getLeftSide()
Gets os sets property which indicates to draw left side of the rectangle or no.


setLeftSide

public void setLeftSide(boolean value)

getBottomSide

public boolean getBottomSide()
Gets os sets property which indicates to draw bottom side of the rectangle or no.


setBottomSide

public void setBottomSide(boolean value)

getRightSide

public boolean getRightSide()
Gets os sets property which indicates to draw right side of the rectangle or no.


setRightSide

public void setRightSide(boolean value)

SaveToJsonObject

public JSONObject SaveToJsonObject(StiJsonSaveMode mode)
                            throws JSONException
Specified by:
SaveToJsonObject in interface IStiJsonReportObject
Overrides:
SaveToJsonObject in class StiLinePrimitive
Throws:
JSONException

LoadFromJsonObject

public void LoadFromJsonObject(JSONObject jObject)
                        throws JSONException
Specified by:
LoadFromJsonObject in interface IStiJsonReportObject
Overrides:
LoadFromJsonObject in class StiLinePrimitive
Throws:
JSONException