Class StiContainer
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.complexcomponents.StiContainer
- All Implemented Interfaces:
IStiAppExpressionCollection,IStiJsonReportObject,IStiForceSerializable,IStiSerializable,IStiSerializableRef,IStiSerializableToAttributes,IStiName,IStiBorder,IStiBreakable,IStiBrush,IStiCanGrow,IStiCanShrink,IStiComponentGuid,IStiConditions,IStiGrowToHeight,IStiInteraction,IStiPrintOn,IStiSelect,IStiShift,IStiUnitConvert,IStiReportProperty,IStiIgnoryStyle,IStiInherited,IStiStateSaveRestore,Cloneable
- Direct Known Subclasses:
StiBand,StiClone,StiColumnsContainer,StiCrossTab,StiFooterMarkerContainer,StiGroup,StiLevelContainer,StiNewPageContainer,StiPanel,StiReportControl,StiSubReport
public class StiContainer
extends StiComponent
implements IStiBorder, IStiBrush, IStiBreakable, IStiIgnoryStyle, IStiSerializableToAttributes, IStiForceSerializable
-
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionCreates a new container.StiContainer(StiRectangle rect) Creates a new container. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidAlignTo(StiAligning aligning) Aligns, in the rectangle of selected objects, all selected objects.final voidAligns to grid all selected components in the container.final voidAlignToGrid(StiComponent comp) booleanBreak(StiComponent dividedComponent, double devideFactor, StiRefObject<Double> divideLine, StiRefObject<Boolean> haveBreaked) Divides content of components in two parts.final voidBrings to front objects of the list in the container.final voidChangePosition(StiRectangle delta) Changes the position of the selected component.protected voidcheckBlockedException(String propertyName) protected voidCheckBlockedException(String propertyName) voidcheckLargeHeight(boolean needFullCalculation) voidClear all earlier saved object states.clone(boolean cloneProperties) Creates a new object that is a copy of the current instanc.clone(boolean cloneProperties, boolean cloneComponents) Creates a new object that instanceof a copy of the current instance.final StiPointContainerToPage(StiPoint point) Converts a point of coordinates of the container into coodinates of a page.final StiRectangleContainerToPage(StiRectangle rect) Converts a rectangle from container coordinates into coordinates of a page.voidConverts a component out of one unit into another.final voidConverts a component out of one unit into another.final voidConverts coordinates of all objects into coordinates of a page.final voidConverts objects from all coordinates into coordinates of a page without move them on a page.final voidCorrect()Corrects in the container all objects which require motion between containers.final voidCorrect(boolean onlySelect) Corrects in container all objects which require moving.voidcorrect2(boolean onlySelect) Initializes a new instance of the StiSize class from the specified dimensi.final StiSizegetActualSize(boolean isFirstPass, StiRefObject<Boolean> needSecondPass) protected booleanGets or sets frame of the component.final ObjectReturns a frame of the object of the type IStiBorder being met first.getBrush()Gets or sets a brush to fill a component.final ObjectGetBrush()Returns a brush of an object of the type StiBrush being met first.booleanGets or sets value which indicates whether the component can or cannot break its contents on several pages.gets or sets the client area of a component.final ObjectGets or sets collapsed value of the component.intGets or sets a collection of components.final StiComponentsCollectionReturns the list of all components which are located in the container.intfinal ArrayList<StiComponent> Returns the list of all components which are located in the container.final StiRectangleReturns the rectangle that includes all selected objects in the container.gets or sets a style of a component.Gets the type of processing when printing.final StiConditionsCollectionReturns conditions of an object of the type.final StiContainerInfoV1final StiContainerInfoV2final StiContainerGetContainerInRect(StiRectangle rect, StiComponent component) Returns an container in which client zone coordinates are got.GetContainerInRect2(StiRectangle rect, StiComponent component, HashMap hash) Gets or sets the default client area of a component.final StiComponentReturns the first docked and selected component.final ObjectReturns the style of docking of the component being met first.final StiComponentReturns the first selected component.final ObjectGetFont()Returns a font of an object of the type IStiFont being met first.getGuid()gets or sets a guid of component.final booleanInternal use only.final ObjectReturns a horizontal alignment of the object of the type IStiHorAlignment being met first.final StiComponentsCollectionReturns the list of all objects which require motion between containers.final StiComponentsCollectionGetIncorrect(boolean onlySelect) Returns the list of all objects which require motion between containers.getIncorrect2(boolean onlySelect) Gets a localized name of the component category.Gets a localized component name.final StiSizeReturns maximum sizes among selected objects.getName()Gets or sets a component name.intGets a component priority.final StiRectangleThe rectangle includes all selected objects in the container.final StiComponentsCollectionReturns the array of the selected components.final StiComponentsCollectionReturns the array of the selected objects including child of the selected objects.final StiRectangleThe rectangle includes all selected objects in the container and children containers which are located in the selected containers.gets or sets tag of a component.final ObjectReturns a brush of an object of the type IStiTextBrush being met first.final StiFormatServiceReturns a format of an object of the type IStiText being met first.final ObjectReturns a horizontal alignment of an object of the type IStiTextHorAlignment being met first.intGets value to sort a position in the toolbox.final ObjectReturns a vertical alignment of the object of the type IStiVertAlignment being met first.final Objectfinal voidGrowFont()final voidbooleanvoidLoadFromJsonObject(JSONObject jObject) final voidPuts components which are equivalent to their width.final voidMakeSameHeight(double height) Sets the height to all selected objects.final voidMakeSameSize(StiSize size) Sets the size to all selected objects.final voidMakeSameWidth(double width) Sets the width to all selected objects.final voidPuts components which are equal in their height.final voidMoves backward objects of the list in the container.final voidConverts coordinates of all objects into coordinates of a page and moves objects on the page.final voidMoves forward objects of the list in the container.final voidNormalizes all selected objects in the container.final voidOffsetLocation(double offsetX, double offsetY) protected voidprotected voidfinal StiPointPageToContainer(StiPoint point) Converts a point of coordinates of a page into coodinates of a container.final StiRectanglePageToContainer(StiRectangle rectIn) Converts a rectangle from coordinates of a page into container coordinates.final voidRemoves all selected object from the container.final voidResets selection from all selected objects in the container.voidRestoreState(String stateName) Restores the earlier saved object state.voidSaves the current state of an object.final voidSelect all components in container.final voidSelectComponent(StiComponent component) Selects the specified component in the container.final voidSelects all objects in the container which intersect with the specified rectangle.final voidfinal voidSends to back objects of the list in the container.voidsetBlocked(boolean value) voidfinal voidSets StiBorder from all selected objects in the container.voidfinal voidSets IStiBrush from all selected objects in the container.voidsetCanBreak(boolean value) final voidCenters horizontally all selected objects.final voidCenters vertically all selected objects.final voidsetCollapsedValue(Object value) voidsetCollapsingIndex(int value) voidsetCollapsingTreePath(String collapsingTreePath) voidfinal voidsetComponentsFont(StiFont font) final voidsetComponentsFont(StiFont font, boolean setFontFamily, boolean setSize, boolean setStyleBold, boolean setStyleItalic, boolean setStyleUnderline, boolean setStyleStrikeout, boolean setUnit, boolean setGdiCharSet, boolean setGdiVerticalFont) Sets IStiFont from all selected objects in the container.voidsetComponentsWithSetParent(StiComponentsCollection components) final voidsetComponentsWordWrap(boolean wordWrap) final voidSetConditions(StiConditionsCollection conditions) Sets conditions to all selected objects in the container.voidsetContainerInfoV2(StiContainerInfoV2 containerInfoV2) final voidSetDockStyle(StiDockStyle dockStyle) Sets Dock from all selected objects in the container.voidsetForceSerializeToReport(boolean forceSerializeToReport) final voidSets StiHorAlignment from all selected objects in the container.final voidSetLink(boolean linked) Sets Link from all selected objects in the container.voidsetParentComponentIsBand(boolean value) voidsetParentComponentIsCrossBand(boolean value) final voidfinal voidfinal voidSetTextBrush(StiBrush brush) Sets IStiTextBrush from all selected objects in the container.final voidSetTextFormat(StiFormatService format) Sets StiFormatService from all selected objects in the container.final voidSets StiTextHorAlignment from all selected objects in the container.final voidSets StiVertAlignment from all selected objects in the container.final voidfinal voidMethods inherited from class com.stimulsoft.report.components.StiComponent
addSize, AllowPrintOn, applyConditions, canContainIn, CheckForParentComponent, clearAllStates, ClearContents, clone, ComponentToPage, ComponentToPage, ComponentToPage, convert, decrementTop, doBookmark, DoBookmark, DockToContainer, DockToContainer, doGetBookmark, DoOffsetRect, doPointer, doPointer, fillComponentPlacement, getAfterPrintEvent, getAlias, getAllowDelete, getAnchor, getBeforePrintEvent, getBookmark, getBookmarkValue, getBottom, getBuilder, getCanGrow, getCanShrink, getClickEvent, getComponentPlacement, GetComponentStyle, 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, 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, getQuickInfo, getRenderedCount, getReport, getRestrictions, getRight, getSelectionTick, getSelectRectangle, getServiceCategory, getServiceType, getShift, getShiftMode, getShowQuickButtons, getStates, getTag, getTagStrValue, 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, isExportAsImage, 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, 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
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.base.serializing.interfaceobject.IStiSerializableRef
getReference, setReference
-
Field Details
-
border
-
brush
-
ParentComponentIsBand
public boolean ParentComponentIsBand -
ParentComponentIsCrossBand
public boolean ParentComponentIsCrossBand -
collapsingIndex
public int collapsingIndex -
components
-
PropertyBlocked
-
engine
-
-
Constructor Details
-
StiContainer
public StiContainer()Creates a new container. -
StiContainer
Creates a new container.- Parameters:
rect- The rectangle describes size and position of the container.
-
-
Method Details
-
SaveToJsonObject
- Specified by:
SaveToJsonObjectin interfaceIStiJsonReportObject- Overrides:
SaveToJsonObjectin classStiComponent- Throws:
JSONException
-
LoadFromJsonObject
- Specified by:
LoadFromJsonObjectin interfaceIStiJsonReportObject- Overrides:
LoadFromJsonObjectin classStiComponent- Throws:
JSONException
-
isForceSerializeToReport
public boolean isForceSerializeToReport()- Specified by:
isForceSerializeToReportin interfaceIStiForceSerializable- Returns:
- the forceSerializeToReport
-
setForceSerializeToReport
public void setForceSerializeToReport(boolean forceSerializeToReport) - Specified by:
setForceSerializeToReportin interfaceIStiForceSerializable- Parameters:
forceSerializeToReport- the forceSerializeToReport to set
-
getCanBreak
public boolean getCanBreak()Gets or sets value which indicates whether the component can or cannot break its contents on several pages.- Specified by:
getCanBreakin interfaceIStiBreakable
-
getCollapsingTreePath
- Returns:
- the collapsingTreePath
-
setCollapsingTreePath
- Parameters:
collapsingTreePath- the collapsingTreePath to set
-
setCanBreak
public void setCanBreak(boolean value) - Specified by:
setCanBreakin interfaceIStiBreakable
-
Break
public boolean Break(StiComponent dividedComponent, double devideFactor, StiRefObject<Double> divideLine, StiRefObject<Boolean> haveBreaked) Divides content of components in two parts. Returns result of dividing. If true, then component instanceof successful divided.- Specified by:
Breakin interfaceIStiBreakable- Parameters:
dividedComponent- Component for store part of content.- Returns:
- If true, then component instanceof successful divided.
-
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.
-
clone
Creates a new object that instanceof a copy of the current instance.- Returns:
- A new object that instanceof a copy of this instance.
-
getBorder
Gets or sets frame of the component.- Specified by:
getBorderin interfaceIStiBorder
-
setBorder
- Specified by:
setBorderin interfaceIStiBorder
-
getBrush
Gets or sets a brush to fill a component. -
setBrush
-
saveState
Saves the current state of an object.- Specified by:
saveStatein interfaceIStiStateSaveRestore- Overrides:
saveStatein classStiComponent- Parameters:
stateName- A name of the state being saved.
-
RestoreState
Restores the earlier saved object state.- Overrides:
RestoreStatein classStiComponent- Parameters:
stateName- A name of the state being restored.
-
ClearAllStates
public void ClearAllStates()Clear all earlier saved object states.- Overrides:
ClearAllStatesin classStiComponent
-
getActualSize
Description copied from class:StiComponentInitializes a new instance of the StiSize class from the specified dimensi.- Overrides:
getActualSizein classStiComponent- Returns:
- A class of the StiSize type which represents an actual size of the component.
-
getActualSize
-
getContainerInfoV1
-
getContainerInfoV2
-
getPriority
public int getPriority()Gets a component priority.- Overrides:
getPriorityin classStiComponent
-
getToolboxPosition
public int getToolboxPosition()Gets value to sort a position in the toolbox.- Overrides:
getToolboxPositionin classStiComponent
-
getComponentType
Gets the type of processing when printing.- Overrides:
getComponentTypein classStiComponent
-
getLocalizedCategory
Gets a localized name of the component category.- Overrides:
getLocalizedCategoryin classStiBase
-
getLocalizedName
Gets a localized component name.- Overrides:
getLocalizedNamein classStiBase
-
getCollapsedValue
Gets or sets collapsed value of the component. -
setCollapsedValue
-
getCollapsingIndex
public int getCollapsingIndex() -
setCollapsingIndex
public void setCollapsingIndex(int value) -
getHasSelected
public final boolean getHasSelected()Internal use only. -
getDefaultClientRectangle
Gets or sets the default client area of a component.- Overrides:
getDefaultClientRectanglein classStiComponent
-
getComponents
Gets or sets a collection of components. -
setComponents
-
checkBlockedException
-
CheckBlockedException
-
getBlocked
protected boolean getBlocked() -
setBlocked
public void setBlocked(boolean value) -
OnComponentAdded
-
OnComponentRemoved
-
SetParentStylesToChilds
public final void SetParentStylesToChilds() -
SetParentStylesToChilds
-
OffsetLocation
public final void OffsetLocation(double offsetX, double offsetY) -
ChangePosition
Changes the position of the selected component.- Parameters:
delta- Parameters of changing.
-
Normalize
public final void Normalize()Normalizes all selected objects in the container. -
SetLink
public final void SetLink(boolean linked) Sets Link from all selected objects in the container. -
SetBorder
Sets StiBorder from all selected objects in the container. Sets Side, DropShadow, Color, Style. All other elements are ignored. -
GetBorder
Returns a frame of the object of the type IStiBorder being met first. Scans all selected objects in the container.- Returns:
- The frame of the object type IStiBorder found. If nothing instanceof found then null instanceof returned.
-
SetVertAlign
Sets StiVertAlignment from all selected objects in the container.- Parameters:
vl- StiVertAlignment being set.
-
GetVertAlignment
Returns a vertical alignment of the object of the type IStiVertAlignment being met first. Scans all selected objects in the container.- Returns:
- Vertical alignment of the object of the type IStiVertAlignment found. If nothing instanceof found then null instanceof returned.
-
SetHorAlign
Sets StiHorAlignment from all selected objects in the container.- Parameters:
vl- StiHorAlignment being set.
-
GetHorAlignment
Returns a horizontal alignment of the object of the type IStiHorAlignment being met first. Scans all selected objects in the container.- Returns:
- Horizontal alignment of an object of the type IStiHorAlignment found. If nothing instanceof found then null instanceof returned.
-
SetTextHorAlign
Sets StiTextHorAlignment from all selected objects in the container.- Parameters:
vl- StiTextHorAlignment being set.
-
GetTextHorAlignment
Returns a horizontal alignment of an object of the type IStiTextHorAlignment being met first. Scans all selected objects in the container.- Returns:
- Horizontal alignment of the object of the type IStiTextHorAlignment found. If nothing instanceof found then null instanceof returned.
-
GetWordWrap
-
setComponentsWordWrap
public final void setComponentsWordWrap(boolean wordWrap) -
setComponentsFont
-
setComponentsFont
public final void setComponentsFont(StiFont font, boolean setFontFamily, boolean setSize, boolean setStyleBold, boolean setStyleItalic, boolean setStyleUnderline, boolean setStyleStrikeout, boolean setUnit, boolean setGdiCharSet, boolean setGdiVerticalFont) Sets IStiFont from all selected objects in the container. -
GetFont
Returns a font of an object of the type IStiFont being met first. Scans all selected objects in the container.- Returns:
- The font of an object of the type IStiFont found. If nothing instanceof found then null instanceof returned.
-
GrowFont
public final void GrowFont() -
ShrinkFont
public final void ShrinkFont() -
SetBrush
Sets IStiBrush from all selected objects in the container. -
GetBrush
Returns a brush of an object of the type StiBrush being met first. Scans all selected objects in the container.- Returns:
- The brush of an object of the type IStiBrush found. If nothing instanceof found then null instanceof returned.
-
SetTextFormat
Sets StiFormatService from all selected objects in the container.- Parameters:
format- Format being set.
-
GetTextFormat
Returns a format of an object of the type IStiText being met first. Scans all selected objects in the container.- Returns:
- The format of an object of the type IStiText found. If nothing instanceof found then null instanceof returned.
-
SetTextBrush
Sets IStiTextBrush from all selected objects in the container.- Parameters:
brush- TextBrush being set.
-
GetTextBrush
Returns a brush of an object of the type IStiTextBrush being met first. Scans all selected objects in the container.- Returns:
- The brush of an object of the type IStiTextBrush found. If nothing instanceof found then null instanceof returned.
-
SetConditions
Sets conditions to all selected objects in the container. -
GetConditions
Returns conditions of an object of the type. Scans all selected objects in the container. -
SetDockStyle
Sets Dock from all selected objects in the container.- Parameters:
dockStyle- DockStyle being set.
-
GetDockStyle
Returns the style of docking of the component being met first. Scans all selected objects in the container.- Returns:
- The style of docking of the component found. If nothing instanceof found then null instanceof returned.
-
GetSelectedRectangleWithChilds
The rectangle includes all selected objects in the container and children containers which are located in the selected containers. The rectangle instanceof represented in page coordinates.- Returns:
- The rectangle includes all selected objects.
-
getComponentsSelectedRectangle
Returns the rectangle that includes all selected objects in the container. The rectangle instanceof represented in page coordinates.- Returns:
- The rectangle includes all selected objects.
-
GetRectangle
The rectangle includes all selected objects in the container. The rectangle instanceof represented in page coordinates.- Returns:
- The rectangle includes all objects.
-
GetMaxSize
Returns maximum sizes among selected objects.- Returns:
- Maximum sizes.
-
MakeSameSize
Sets the size to all selected objects.- Parameters:
size- Size to be set.
-
MakeSameWidth
public final void MakeSameWidth(double width) Sets the width to all selected objects.- Parameters:
width- Width to be set.
-
MakeSameHeight
public final void MakeSameHeight(double height) Sets the height to all selected objects.- Parameters:
height- Height to be set.
-
MakeHorizontalSpacingEqual
public final void MakeHorizontalSpacingEqual()Puts components which are equivalent to their width. -
MakeVerticalSpacingEqual
public final void MakeVerticalSpacingEqual()Puts components which are equal in their height. -
SetCenterHorizontally
public final void SetCenterHorizontally()Centers horizontally all selected objects. -
SetCenterVertically
public final void SetCenterVertically()Centers vertically all selected objects. -
AlignToGrid
public final void AlignToGrid()Aligns to grid all selected components in the container. -
AlignToGrid
-
SortByPriority
public final void SortByPriority() -
AlignTo
Aligns, in the rectangle of selected objects, all selected objects.- Parameters:
aligning- Type of aligning.
-
BringToFront
public final void BringToFront()Brings to front objects of the list in the container. -
SendToBack
public final void SendToBack()Sends to back objects of the list in the container. -
MoveForward
public final void MoveForward()Moves forward objects of the list in the container. -
MoveBackward
public final void MoveBackward()Moves backward objects of the list in the container. -
GetContainerInRect
Returns an container in which client zone coordinates are got.- Parameters:
component- The component for which positions are being looked for.x- Coordinate X for checking(coordinates of a page).y- Coordinate Y for checking(coordinates of a page).
-
GetContainerInRect2
-
getIncorrect2
-
correct2
public void correct2(boolean onlySelect) -
GetIncorrect
Returns the list of all objects which require motion between containers.- Returns:
- List of objects.
-
GetIncorrect
Returns the list of all objects which require motion between containers.- Returns:
- List of objects.
-
Correct
public final void Correct()Corrects in the container all objects which require motion between containers. -
Correct
public final void Correct(boolean onlySelect) Corrects in container all objects which require moving.- Parameters:
onlySelect- If true then correct only selected components.
-
checkLargeHeight
public void checkLargeHeight(boolean needFullCalculation) -
GetDockableComponent
Returns the first docked and selected component. -
GetFirstSelectableCompanent
Returns the first selected component.- Returns:
-
ResetSelection
public final void ResetSelection()Resets selection from all selected objects in the container. -
GetSelectedComponents
Returns the array of the selected components.- Returns:
- The array of selected components.
-
GetSelectedComponentsWithChilds
Returns the array of the selected objects including child of the selected objects.- Returns:
- The array of selected components.
-
SelectInRectangleCheckBands
-
SelectInRectangle
Selects all objects in the container which intersect with the specified rectangle.- Parameters:
rect- Specified rectangle.
-
SelectAll
public final void SelectAll()Select all components in container. -
SelectComponent
Selects the specified component in the container.- Parameters:
component- Object for selection.
-
ContainerToPage
Converts a point of coordinates of the container into coodinates of a page.- Parameters:
point- Point to be converted.- Returns:
- Converted point.
-
PageToContainer
Converts a point of coordinates of a page into coodinates of a container.- Parameters:
point- Point to be converted.- Returns:
- Converted point.
-
ContainerToPage
Converts a rectangle from container coordinates into coordinates of a page.- Parameters:
rect- Rectangle to be converted.- Returns:
- Converted rectangle.
-
PageToContainer
Converts a rectangle from coordinates of a page into container coordinates.- Parameters:
rect- Rectangle to be converted.- Returns:
- Converted rectangle.
-
GetComponents
Returns the list of all components which are located in the container.- Returns:
- List of components.
-
GetComponentsList
Returns the list of all components which are located in the container.- Returns:
- List of components.
-
GetComponentsCount
public int GetComponentsCount() -
RemoveAllSelected
public final void RemoveAllSelected()Removes all selected object from the container. -
MoveComponentsToPage
public final void MoveComponentsToPage()Converts coordinates of all objects into coordinates of a page and moves objects on the page. -
ConvertSelectedToPage
public final void ConvertSelectedToPage()Converts coordinates of all objects into coordinates of a page. -
ConvertToPage
public final void ConvertToPage()Converts objects from all coordinates into coordinates of a page without move them on a page. -
InvertComponentsPosition
public final void InvertComponentsPosition() -
Convert
Converts a component out of one unit into another.- Parameters:
oldUnit- Old units.newUnit- New units.
-
convert
Converts a component out of one unit into another.- Specified by:
convertin interfaceIStiUnitConvert- Overrides:
convertin classStiComponent- Parameters:
oldUnit- Old units.newUnit- New units.
-
setComponentsWithSetParent
-
getComponentPlacementForChildren
-
setParentComponentIsBand
public void setParentComponentIsBand(boolean value) -
setParentComponentIsCrossBand
public void setParentComponentIsCrossBand(boolean value) -
setContainerInfoV2
-
getClientRectangle
Description copied from class:StiComponentgets or sets the client area of a component.- Overrides:
getClientRectanglein classStiComponent
-
getName
Description copied from class:StiBaseGets or sets a component name. -
getComponentStyle
Description copied from class:StiComponentgets or sets a style of a component.- Overrides:
getComponentStylein classStiComponent
-
getGuid
Description copied from class:StiComponentgets or sets a guid of component.- Specified by:
getGuidin interfaceIStiComponentGuid- Overrides:
getGuidin classStiComponent
-
getTagValue
Description copied from class:StiComponentgets or sets tag of a component.- Overrides:
getTagValuein classStiComponent
-