|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stimulsoft.base.serializing.StiSerializedObject
com.stimulsoft.base.services.StiService
com.stimulsoft.report.StiBase
com.stimulsoft.report.components.StiComponent
com.stimulsoft.report.components.complexcomponents.StiContainer
public class StiContainer
Field Summary | |
---|---|
StiBorder |
border
|
StiBrush |
brush
|
int |
collapsingIndex
|
StiComponentsCollection |
components
|
boolean |
ParentComponentIsBand
Если true, то Parent компонент этого контейнера является Band. |
boolean |
ParentComponentIsCrossBand
Если true, то Parent компонент этого контейнера является CrossBand. |
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 | |
---|---|
StiContainer()
Creates a new container. |
|
StiContainer(StiRectangle rect)
Creates a new container. |
Method Summary | |
---|---|
void |
AlignTo(StiAligning aligning)
Aligns, in the rectangle of selected objects, all selected objects. |
void |
AlignToGrid()
Aligns to grid all selected components in the container. |
void |
AlignToGrid(StiComponent comp)
|
boolean |
Break(StiComponent dividedComponent,
double devideFactor,
StiRefObject<java.lang.Double> divideLine)
Divides content of components in two parts. |
void |
BringToFront()
Brings to front objects of the list in the container. |
void |
ChangePosition(StiRectangle delta)
Changes the position of the selected component. |
void |
checkLargeHeight(boolean needFullCalculation)
|
void |
ClearAllStates()
Clear all earlier saved object states. |
java.lang.Object |
clone(boolean cloneProperties)
Creates a new object that is a copy of the current instanc. |
java.lang.Object |
clone(boolean cloneProperties,
boolean cloneComponents)
Creates a new object that instanceof a copy of the current instance. |
StiPoint |
ContainerToPage(StiPoint point)
Converts a point of coordinates of the container into coodinates of a page. |
StiRectangle |
ContainerToPage(StiRectangle rect)
Converts a rectangle from container coordinates into coordinates of a page. |
void |
convert(StiUnit oldUnit,
StiUnit newUnit)
Converts a component out of one unit into another. |
void |
Convert(StiUnit oldUnit,
StiUnit newUnit,
boolean convertComponents)
Converts a component out of one unit into another. |
void |
ConvertSelectedToPage()
Converts coordinates of all objects into coordinates of a page. |
void |
ConvertToPage()
Converts objects from all coordinates into coordinates of a page without move them on a page. |
void |
Correct()
Corrects in the container all objects which require motion between containers. |
void |
Correct(boolean onlySelect)
Corrects in container all objects which require moving. |
void |
correct2(boolean onlySelect)
|
StiSize |
getActualSize()
Initializes a new instance of the StiSize class from the specified dimensi. |
StiSize |
getActualSize(boolean isFirstPass,
StiRefObject<java.lang.Boolean> needSecondPass)
|
StiBorder |
getBorder()
Gets or sets frame of the component. |
java.lang.Object |
GetBorder()
Returns a frame of the object of the type IStiBorder being met first. |
StiBrush |
getBrush()
Gets or sets a brush to fill a component. |
java.lang.Object |
GetBrush()
Returns a brush of an object of the type StiBrush being met first. |
boolean |
getCanBreak()
Gets or sets value which indicates whether the component can or cannot break its contents on several pages. |
StiRectangle |
getClientRectangle()
gets or sets the client area of a component. |
java.lang.Object |
getCollapsedValue()
Gets or sets collapsed value of the component. |
int |
getCollapsingIndex()
|
java.lang.String |
getCollapsingTreePath()
|
java.lang.String |
getComponentPlacementForChildren()
|
StiComponentsCollection |
getComponents()
Gets or sets a collection of components. |
StiComponentsCollection |
GetComponents()
Returns the list of all components which are located in the container. |
int |
GetComponentsCount()
|
java.util.ArrayList<StiComponent> |
GetComponentsList()
Returns the list of all components which are located in the container. |
StiRectangle |
getComponentsSelectedRectangle()
Returns the rectangle that includes all selected objects in the container. |
java.lang.String |
getComponentStyle()
gets or sets a style of a component. |
StiComponentType |
getComponentType()
Gets the type of processing when printing. |
StiConditionsCollection |
GetConditions()
Returns conditions of an object of the type. |
StiContainerInfoV1 |
getContainerInfoV1()
|
StiContainerInfoV2 |
getContainerInfoV2()
|
StiContainer |
GetContainerInRect(StiRectangle rect,
StiComponent component)
Returns an container in which client zone coordinates are got. |
StiContainer |
GetContainerInRect2(StiRectangle rect,
StiComponent component,
java.util.HashMap hash)
|
StiRectangle |
getDefaultClientRectangle()
Gets or sets the default client area of a component. |
StiComponent |
GetDockableComponent()
Returns the first docked and selected component. |
java.lang.Object |
GetDockStyle()
Returns the style of docking of the component being met first. |
StiComponent |
GetFirstSelectableCompanent()
Returns the first selected component. |
java.lang.Object |
GetFont()
Returns a font of an object of the type IStiFont being met first. |
java.lang.String |
getGuid()
gets or sets a guid of component. |
boolean |
getHasSelected()
Internal use only. |
java.lang.Object |
GetHorAlignment()
Returns a horizontal alignment of the object of the type IStiHorAlignment being met first. |
StiComponentsCollection |
GetIncorrect()
Returns the list of all objects which require motion between containers. |
StiComponentsCollection |
GetIncorrect(boolean onlySelect)
Returns the list of all objects which require motion between containers. |
StiComponentsCollection |
getIncorrect2(boolean onlySelect)
|
java.lang.String |
getLocalizedCategory()
Gets a localized name of the component category. |
java.lang.String |
getLocalizedName()
Gets a localized component name. |
StiSize |
GetMaxSize()
Returns maximum sizes among selected objects. |
java.lang.String |
getName()
Gets or sets a component name. |
int |
getPriority()
Gets a component priority. |
StiRectangle |
GetRectangle()
The rectangle includes all selected objects in the container. |
StiComponentsCollection |
GetSelectedComponents()
Returns the array of the selected components. |
StiComponentsCollection |
GetSelectedComponentsWithChilds()
Returns the array of the selected objects including child of the selected objects. |
StiRectangle |
GetSelectedRectangleWithChilds()
The rectangle includes all selected objects in the container and children containers which are located in the selected containers. |
java.lang.Object |
getTagValue()
gets or sets tag of a component. |
java.lang.Object |
GetTextBrush()
Returns a brush of an object of the type IStiTextBrush being met first. |
StiFormatService |
GetTextFormat()
Returns a format of an object of the type IStiText being met first. |
java.lang.Object |
GetTextHorAlignment()
Returns a horizontal alignment of an object of the type IStiTextHorAlignment being met first. |
int |
getToolboxPosition()
Gets value to sort a position in the toolbox. |
java.lang.Object |
GetVertAlignment()
Returns a vertical alignment of the object of the type IStiVertAlignment being met first. |
java.lang.Object |
GetWordWrap()
|
void |
GrowFont()
|
void |
InvertComponentsPosition()
|
boolean |
isForceSerializeToReport()
|
void |
LoadFromJsonObject(JSONObject jObject)
|
void |
MakeHorizontalSpacingEqual()
Puts components which are equivalent to their width. |
void |
MakeSameHeight(double height)
Sets the height to all selected objects. |
void |
MakeSameSize(StiSize size)
Sets the size to all selected objects. |
void |
MakeSameWidth(double width)
Sets the width to all selected objects. |
void |
MakeVerticalSpacingEqual()
Puts components which are equal in their height. |
void |
MoveBackward()
Moves backward objects of the list in the container. |
void |
MoveComponentsToPage()
Converts coordinates of all objects into coordinates of a page and moves objects on the page. |
void |
MoveForward()
Moves forward objects of the list in the container. |
void |
Normalize()
Normalizes all selected objects in the container. |
void |
OffsetLocation(double offsetX,
double offsetY)
|
StiPoint |
PageToContainer(StiPoint point)
Converts a point of coordinates of a page into coodinates of a container. |
StiRectangle |
PageToContainer(StiRectangle rectIn)
Converts a rectangle from coordinates of a page into container coordinates. |
void |
RemoveAllSelected()
Removes all selected object from the container. |
void |
ResetSelection()
Resets selection from all selected objects in the container. |
void |
RestoreState(java.lang.String stateName)
Restores the earlier saved object state. |
void |
saveState(java.lang.String stateName)
Saves the current state of an object. |
JSONObject |
SaveToJsonObject(StiJsonSaveMode mode)
|
void |
SelectAll()
Select all components in container. |
void |
SelectComponent(StiComponent component)
Selects the specified component in the container. |
void |
SelectInRectangle(StiRectangle rect)
Selects all objects in the container which intersect with the specified rectangle. |
void |
SelectInRectangleCheckBands(StiRectangle rect)
|
void |
SendToBack()
Sends to back objects of the list in the container. |
void |
setBlocked(boolean value)
|
void |
setBorder(StiBorder value)
|
void |
SetBorder(StiBorder border)
Sets StiBorder from all selected objects in the container. |
void |
setBrush(StiBrush value)
|
void |
SetBrush(StiBrush brush)
Sets IStiBrush from all selected objects in the container. |
void |
setCanBreak(boolean value)
|
void |
SetCenterHorizontally()
Centers horizontally all selected objects. |
void |
SetCenterVertically()
Centers vertically all selected objects. |
void |
setCollapsedValue(java.lang.Object value)
|
void |
setCollapsingIndex(int value)
|
void |
setCollapsingTreePath(java.lang.String collapsingTreePath)
|
void |
setComponents(StiComponentsCollection value)
|
void |
setComponentsFont(StiFont font)
|
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. |
void |
setComponentsWithSetParent(StiComponentsCollection components)
|
void |
setComponentsWordWrap(boolean wordWrap)
|
void |
SetConditions(StiConditionsCollection conditions)
Sets conditions to all selected objects in the container. |
void |
setContainerInfoV2(StiContainerInfoV2 containerInfoV2)
|
void |
SetDockStyle(StiDockStyle dockStyle)
Sets Dock from all selected objects in the container. |
void |
setForceSerializeToReport(boolean forceSerializeToReport)
|
void |
SetHorAlign(StiHorAlignment vl)
Sets StiHorAlignment from all selected objects in the container. |
void |
SetLink(boolean linked)
Sets Link from all selected objects in the container. |
void |
setParentComponentIsBand(boolean value)
|
void |
setParentComponentIsCrossBand(boolean value)
|
void |
SetParentStylesToChilds()
|
void |
SetParentStylesToChilds(StiBaseStyle style)
|
void |
SetTextBrush(StiBrush brush)
Sets IStiTextBrush from all selected objects in the container. |
void |
SetTextFormat(StiFormatService format)
Sets StiFormatService from all selected objects in the container. |
void |
SetTextHorAlign(StiTextHorAlignment vl)
Sets StiTextHorAlignment from all selected objects in the container. |
void |
SetVertAlign(StiVertAlignment vl)
Sets StiVertAlignment from all selected objects in the container. |
void |
ShrinkFont()
|
void |
SortByPriority()
|
Methods inherited from class com.stimulsoft.report.StiBase |
---|
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.base.serializing.interfaceobject.IStiSerializableRef |
---|
getReference, setReference |
Field Detail |
---|
public StiBorder border
public StiBrush brush
public boolean ParentComponentIsBand
public boolean ParentComponentIsCrossBand
public int collapsingIndex
public StiComponentsCollection components
Constructor Detail |
---|
public StiContainer()
public StiContainer(StiRectangle rect)
rect
- The rectangle describes size and position of the container.Method Detail |
---|
public JSONObject SaveToJsonObject(StiJsonSaveMode mode) throws JSONException
SaveToJsonObject
in interface IStiJsonReportObject
SaveToJsonObject
in class StiComponent
JSONException
public void LoadFromJsonObject(JSONObject jObject) throws JSONException
LoadFromJsonObject
in interface IStiJsonReportObject
LoadFromJsonObject
in class StiComponent
JSONException
public boolean isForceSerializeToReport()
isForceSerializeToReport
in interface IStiForceSerializable
public void setForceSerializeToReport(boolean forceSerializeToReport)
setForceSerializeToReport
in interface IStiForceSerializable
forceSerializeToReport
- the forceSerializeToReport to setpublic boolean getCanBreak()
getCanBreak
in interface IStiBreakable
public java.lang.String getCollapsingTreePath()
public void setCollapsingTreePath(java.lang.String collapsingTreePath)
collapsingTreePath
- the collapsingTreePath to setpublic void setCanBreak(boolean value)
setCanBreak
in interface IStiBreakable
public boolean Break(StiComponent dividedComponent, double devideFactor, StiRefObject<java.lang.Double> divideLine)
Break
in interface IStiBreakable
dividedComponent
- Component for store part of content.
public java.lang.Object clone(boolean cloneProperties)
StiComponent
clone
in class StiComponent
public java.lang.Object clone(boolean cloneProperties, boolean cloneComponents)
public StiBorder getBorder()
getBorder
in interface IStiBorder
public void setBorder(StiBorder value)
setBorder
in interface IStiBorder
public StiBrush getBrush()
getBrush
in interface IStiBrush
public void setBrush(StiBrush value)
setBrush
in interface IStiBrush
public void saveState(java.lang.String stateName)
saveState
in interface IStiStateSaveRestore
saveState
in class StiComponent
stateName
- A name of the state being saved.public void RestoreState(java.lang.String stateName)
RestoreState
in class StiComponent
stateName
- A name of the state being restored.public void ClearAllStates()
ClearAllStates
in class StiComponent
public StiSize getActualSize()
StiComponent
getActualSize
in class StiComponent
public final StiSize getActualSize(boolean isFirstPass, StiRefObject<java.lang.Boolean> needSecondPass)
public final StiContainerInfoV1 getContainerInfoV1()
public final StiContainerInfoV2 getContainerInfoV2()
public int getPriority()
getPriority
in class StiComponent
public int getToolboxPosition()
getToolboxPosition
in class StiComponent
public StiComponentType getComponentType()
getComponentType
in class StiComponent
public java.lang.String getLocalizedCategory()
getLocalizedCategory
in class StiBase
public java.lang.String getLocalizedName()
getLocalizedName
in class StiBase
public final java.lang.Object getCollapsedValue()
public final void setCollapsedValue(java.lang.Object value)
public int getCollapsingIndex()
public void setCollapsingIndex(int value)
public final boolean getHasSelected()
public StiRectangle getDefaultClientRectangle()
getDefaultClientRectangle
in class StiComponent
public StiComponentsCollection getComponents()
public void setComponents(StiComponentsCollection value)
public void setBlocked(boolean value)
public final void SetParentStylesToChilds()
public final void SetParentStylesToChilds(StiBaseStyle style)
public final void OffsetLocation(double offsetX, double offsetY)
public final void ChangePosition(StiRectangle delta)
delta
- Parameters of changing.public final void Normalize()
public final void SetLink(boolean linked)
public final void SetBorder(StiBorder border)
public final java.lang.Object GetBorder()
public final void SetVertAlign(StiVertAlignment vl)
vl
- StiVertAlignment being set.public final java.lang.Object GetVertAlignment()
public final void SetHorAlign(StiHorAlignment vl)
vl
- StiHorAlignment being set.public final java.lang.Object GetHorAlignment()
public final void SetTextHorAlign(StiTextHorAlignment vl)
vl
- StiTextHorAlignment being set.public final java.lang.Object GetTextHorAlignment()
public final java.lang.Object GetWordWrap()
public final void setComponentsWordWrap(boolean wordWrap)
public final void setComponentsFont(StiFont font)
public final void setComponentsFont(StiFont font, boolean setFontFamily, boolean setSize, boolean setStyleBold, boolean setStyleItalic, boolean setStyleUnderline, boolean setStyleStrikeout, boolean setUnit, boolean setGdiCharSet, boolean setGdiVerticalFont)
public final java.lang.Object GetFont()
public final void GrowFont()
public final void ShrinkFont()
public final void SetBrush(StiBrush brush)
public final java.lang.Object GetBrush()
public final void SetTextFormat(StiFormatService format)
format
- Format being set.public final StiFormatService GetTextFormat()
public final void SetTextBrush(StiBrush brush)
brush
- TextBrush being set.public final java.lang.Object GetTextBrush()
public final void SetConditions(StiConditionsCollection conditions)
public final StiConditionsCollection GetConditions()
public final void SetDockStyle(StiDockStyle dockStyle)
dockStyle
- DockStyle being set.public final java.lang.Object GetDockStyle()
public final StiRectangle GetSelectedRectangleWithChilds()
public final StiRectangle getComponentsSelectedRectangle()
public final StiRectangle GetRectangle()
public final StiSize GetMaxSize()
public final void MakeSameSize(StiSize size)
size
- Size to be set.public final void MakeSameWidth(double width)
width
- Width to be set.public final void MakeSameHeight(double height)
height
- Height to be set.public final void MakeHorizontalSpacingEqual()
public final void MakeVerticalSpacingEqual()
public final void SetCenterHorizontally()
public final void SetCenterVertically()
public final void AlignToGrid()
public final void AlignToGrid(StiComponent comp)
public final void SortByPriority()
public final void AlignTo(StiAligning aligning)
aligning
- Type of aligning.public final void BringToFront()
public final void SendToBack()
public final void MoveForward()
public final void MoveBackward()
public final StiContainer GetContainerInRect(StiRectangle rect, StiComponent component)
x
- Coordinate X for checking(coordinates of a page).y
- Coordinate Y for checking(coordinates of a page).component
- The component for which positions are being looked for.public StiContainer GetContainerInRect2(StiRectangle rect, StiComponent component, java.util.HashMap hash)
public StiComponentsCollection getIncorrect2(boolean onlySelect)
public void correct2(boolean onlySelect)
public final StiComponentsCollection GetIncorrect()
public final StiComponentsCollection GetIncorrect(boolean onlySelect)
public final void Correct()
public final void Correct(boolean onlySelect)
onlySelect
- If true then correct only selected components.public void checkLargeHeight(boolean needFullCalculation)
public final StiComponent GetDockableComponent()
public final StiComponent GetFirstSelectableCompanent()
public final void ResetSelection()
public final StiComponentsCollection GetSelectedComponents()
public final StiComponentsCollection GetSelectedComponentsWithChilds()
public final void SelectInRectangleCheckBands(StiRectangle rect)
public final void SelectInRectangle(StiRectangle rect)
rect
- Specified rectangle.public final void SelectAll()
public final void SelectComponent(StiComponent component)
component
- Object for selection.public final StiPoint ContainerToPage(StiPoint point)
point
- Point to be converted.
public final StiPoint PageToContainer(StiPoint point)
point
- Point to be converted.
public final StiRectangle ContainerToPage(StiRectangle rect)
rect
- Rectangle to be converted.
public final StiRectangle PageToContainer(StiRectangle rectIn)
rect
- Rectangle to be converted.
public final StiComponentsCollection GetComponents()
public final java.util.ArrayList<StiComponent> GetComponentsList()
public int GetComponentsCount()
public final void RemoveAllSelected()
public final void MoveComponentsToPage()
public final void ConvertSelectedToPage()
public final void ConvertToPage()
public final void InvertComponentsPosition()
public final void Convert(StiUnit oldUnit, StiUnit newUnit, boolean convertComponents)
oldUnit
- Old units.newUnit
- New units.public void convert(StiUnit oldUnit, StiUnit newUnit)
convert
in interface IStiUnitConvert
convert
in class StiComponent
oldUnit
- Old units.newUnit
- New units.public void setComponentsWithSetParent(StiComponentsCollection components)
public java.lang.String getComponentPlacementForChildren()
public void setParentComponentIsBand(boolean value)
public void setParentComponentIsCrossBand(boolean value)
public void setContainerInfoV2(StiContainerInfoV2 containerInfoV2)
public StiRectangle getClientRectangle()
StiComponent
getClientRectangle
in class StiComponent
public java.lang.String getName()
StiBase
getName
in interface IStiName
getName
in class StiBase
public java.lang.String getComponentStyle()
StiComponent
getComponentStyle
in class StiComponent
public java.lang.String getGuid()
StiComponent
getGuid
in interface IStiComponentGuid
getGuid
in class StiComponent
public java.lang.Object getTagValue()
StiComponent
getTagValue
in class StiComponent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |