com.stimulsoft.report.components.simplecomponents
Class StiZipCode

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.StiZipCode
All Implemented Interfaces:
IStiAppExpressionCollection, IStiJsonReportObject, IStiSerializable, IStiSerializableRef, IStiName, IStiBorder, IStiBrush, IStiCanGrow, IStiCanShrink, IStiComponentGuid, IStiConditions, IStiExportImage, IStiExportImageExtended, IStiGrowToHeight, IStiInteraction, IStiPrintOn, IStiSelect, IStiShift, IStiTextBrush, IStiUnitConvert, IStiReportProperty, IStiInherited, IStiStateSaveRestore, java.lang.Cloneable

public class StiZipCode
extends StiComponent
implements IStiBorder, IStiExportImageExtended, IStiTextBrush, IStiBrush

Class describes the component - ZipCode.


Field Summary
 
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
StiZipCode()
          Creates a new component of the type StiZipCode.
StiZipCode(StiRectangle rect)
          Creates a new component of the type StiZipCode.
 
Method Summary
 StiRectangle calculateRect(StiRectangle rect, int count, int index, StiRectangle markRect)
          Calculate Rectangle
 java.lang.Object clone(boolean cloneProperties)
          Creates a new object that is a copy of the current instance.
 StiBorder getBorder()
          Gets or sets border of the component.
 StiBrush getBrush()
          Gets or sets a brush to fill a component.
 boolean getCanGrow()
          gets or sets a value which indicates that this object can grow.
 boolean getCanShrink()
          gets or sets value which indicates that this object can shrink.
 StiZipCodeExpression getCode()
          Gets or sets the expression to fill a code of zip code.
 java.lang.String getCodeValue()
          Gets or sets the component zip code.
 StiRectangle getDefaultClientRectangle()
          Gets or sets the default client area of a component.
 StiEventsCollection getEvents()
          Return events collection of this component.
 StiColor getForeColor()
          Gets or sets a fore color.
 StiGetZipCodeEvent getGetZipCodeEvent()
          Occurs when getting the code of zip code.
 java.awt.image.BufferedImage getImage(java.lang.Double zoom)
           
 java.lang.String getLocalizedCategory()
          Gets a localized name of the component category.
 java.lang.String getLocalizedName()
          Gets a localized component name.
 boolean getRatio()
          Get or sets value, which indicates width and height ratio.
 double getSize()
          Gets or sets a contour size.
 double getSpaceRatio()
           
 StiBrush getTextBrush()
          Gets or sets a brush to draw text.
 int getToolboxPosition()
          Gets value to sort a position in the toolbox.
 boolean getUpperMarks()
           
 void invokeEvents()
          Invokes all events for this components.
 void InvokeGetZipCode(StiComponent sender, StiValueEventArgs e)
          Raises the GetZipCode event.
 boolean isExportAsImage(StiExportFormat format)
           
 void LoadFromJsonObject(JSONObject jObject)
           
 JSONObject SaveToJsonObject(StiJsonSaveMode mode)
           
 void setBorder(StiBorder value)
           
 void setBrush(StiBrush value)
           
 void setCanGrow(boolean value)
           
 void setCanShrink(boolean value)
           
 void setCode(StiZipCodeExpression value)
           
 void setCodeValue(java.lang.String value)
           
 void setForeColor(StiColor value)
           
 void setGetZipCodeEvent(StiGetZipCodeEvent value)
           
 void setRatio(boolean value)
           
 void setSize(double value)
           
 void setSpaceRatio(double spaceRatio)
           
 void setTextBrush(StiBrush value)
           
 void setUpperMarks(boolean upperMarks)
           
 
Methods inherited from class com.stimulsoft.report.components.StiComponent
addSize, applyConditions, canContainIn, CheckForParentComponent, clearAllStates, ClearAllStates, ClearContents, clone, ComponentToPage, ComponentToPage, ComponentToPage, convert, convert, decrementTop, doBookmark, DoBookmark, DockToContainer, DockToContainer, doGetBookmark, DoOffsetRect, doPointer, fillComponentPlacement, getActualSize, getAfterPrintEvent, getAlias, getAllowDelete, getAnchor, getBeforePrintEvent, getBookmark, getBookmarkValue, getBottom, getClickEvent, getClientRectangle, getComponentPlacement, getComponentStyle, getComponentType, getConditions, getContainer, getCurrentBookmark, getDataBand, GetDataBand, getDelimiterComponent, getDisplayRectangle, getDisplayRectangle1, getDockable, getDockRegion, getDockRegion, getDockStyle, getDoubleClickEvent, getDrillDownParameters, getEnabled, getExpressions, getForceRedrawAll, getgetBookmarkEvent, getgetDrillDownReportEvent, getgetHyperlinkEvent, getgetTagEvent, getgetToolTipEvent, getGroupHeaderBand, GetGroupHeaderBand, getGrowToHeight, getGuid, getHeight, getHighlightState, getHyperlink, getHyperlinkValue, getIgnoreNamingRule, 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, getTag, getTagStrValue, getTagValue, getToolTip, getToolTipValue, getTop, getUseParentStyles, getWidth, incrementtTop, InternalRender, invert, InvokeAfterPrint, InvokeBeforePrint, InvokeBeginRender, InvokeClick, InvokeDoubleClick, InvokeEndRender, InvokegetBookmark, InvokegetDrillDownReport, InvokegetHyperlink, InvokegetTag, InvokegetToolTip, InvokeMouseEnter, InvokeMouseLeave, InvokePainted, invokePainting, isAutomaticDock, isDesigning, IsParentSelect, NewGuid, 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, 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
 
Methods inherited from interface com.stimulsoft.report.components.interfaces.IStiExportImageExtended
getImage
 

Constructor Detail

StiZipCode

public StiZipCode()
Creates a new component of the type StiZipCode.


StiZipCode

public StiZipCode(StiRectangle rect)
Creates a new component of the type StiZipCode.

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

getImage

public java.awt.image.BufferedImage getImage(java.lang.Double zoom)
Specified by:
getImage in interface IStiExportImage
Overrides:
getImage in class StiComponent

isExportAsImage

public boolean isExportAsImage(StiExportFormat format)
Specified by:
isExportAsImage in interface IStiExportImageExtended
Overrides:
isExportAsImage in class StiComponent

getCanShrink

public boolean getCanShrink()
Description copied from class: StiComponent
gets or sets value which indicates that this object can shrink.

Specified by:
getCanShrink in interface IStiCanShrink
Overrides:
getCanShrink in class StiComponent

setCanShrink

public void setCanShrink(boolean value)
Specified by:
setCanShrink in interface IStiCanShrink
Overrides:
setCanShrink in class StiComponent

getCanGrow

public boolean getCanGrow()
Description copied from class: StiComponent
gets or sets a value which indicates that this object can grow.

Specified by:
getCanGrow in interface IStiCanGrow
Overrides:
getCanGrow in class StiComponent

setCanGrow

public void setCanGrow(boolean value)
Specified by:
setCanGrow in interface IStiCanGrow
Overrides:
setCanGrow in class StiComponent

clone

public java.lang.Object clone(boolean cloneProperties)
Creates a new object that is a copy of the current instance.

Overrides:
clone in class StiComponent
Returns:
A new object that is a copy of this instance.

getBrush

public final StiBrush getBrush()
Gets or sets a brush to fill a component.

Specified by:
getBrush in interface IStiBrush

setBrush

public final void setBrush(StiBrush value)
Specified by:
setBrush in interface IStiBrush

getBorder

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

Specified by:
getBorder in interface IStiBorder

setBorder

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

getTextBrush

public final StiBrush getTextBrush()
Gets or sets a brush to draw text.

Specified by:
getTextBrush in interface IStiTextBrush

setTextBrush

public final void setTextBrush(StiBrush value)
Specified by:
setTextBrush in interface IStiTextBrush

calculateRect

public final StiRectangle calculateRect(StiRectangle rect,
                                        int count,
                                        int index,
                                        StiRectangle markRect)
Calculate Rectangle


getEvents

public StiEventsCollection getEvents()
Return events collection of this component.

Overrides:
getEvents in class StiComponent

getToolboxPosition

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

Overrides:
getToolboxPosition in class StiComponent

getLocalizedCategory

public java.lang.String getLocalizedCategory()
Gets a localized name of the component category.

Overrides:
getLocalizedCategory in class StiBase

getLocalizedName

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

Overrides:
getLocalizedName in class StiBase

getCodeValue

public final java.lang.String getCodeValue()
Gets or sets the component zip code.


setCodeValue

public final void setCodeValue(java.lang.String value)

getCode

public StiZipCodeExpression getCode()
Gets or sets the expression to fill a code of zip code.


setCode

public void setCode(StiZipCodeExpression value)

invokeEvents

public void invokeEvents()
Invokes all events for this components.

Overrides:
invokeEvents in class StiComponent

InvokeGetZipCode

public final void InvokeGetZipCode(StiComponent sender,
                                   StiValueEventArgs e)
Raises the GetZipCode event.


getGetZipCodeEvent

public final StiGetZipCodeEvent getGetZipCodeEvent()
Occurs when getting the code of zip code.


setGetZipCodeEvent

public final void setGetZipCodeEvent(StiGetZipCodeEvent value)

getDefaultClientRectangle

public StiRectangle getDefaultClientRectangle()
Gets or sets the default client area of a component.

Overrides:
getDefaultClientRectangle in class StiComponent

getRatio

public final boolean getRatio()
Get or sets value, which indicates width and height ratio.


setRatio

public final void setRatio(boolean value)

getForeColor

public final StiColor getForeColor()
Gets or sets a fore color.


setForeColor

public final void setForeColor(StiColor value)

getSize

public final double getSize()
Gets or sets a contour size.


setSize

public final void setSize(double value)

getSpaceRatio

public double getSpaceRatio()
Returns:
the spaceRatio

setSpaceRatio

public void setSpaceRatio(double spaceRatio)
Parameters:
spaceRatio - the spaceRatio to set

getUpperMarks

public boolean getUpperMarks()
Returns:
the upperMarks

setUpperMarks

public void setUpperMarks(boolean upperMarks)
Parameters:
upperMarks - the upperMarks to set

SaveToJsonObject

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

LoadFromJsonObject

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