Class LogicGridLayouter<T>
- java.lang.Object
-
- com._1c.g5.v8.dt.form.layout.logic.LogicRules
-
- com._1c.g5.v8.dt.form.layout.logic.LogicGridLayouter<T>
-
- All Implemented Interfaces:
ILogicRules
public class LogicGridLayouter<T> extends LogicRules
The Logical layouter based on a virtual grid with integer coordinates.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LogicGridLayouter.AddLengthCache
static class
LogicGridLayouter.AddLengthCacheKey
static class
LogicGridLayouter.AddLengthCacheKeyItem
static class
LogicGridLayouter.LGLStickyItemDescr
-
Constructor Summary
Constructors Constructor Description LogicGridLayouter()
-
Method Summary
-
Methods inherited from class com._1c.g5.v8.dt.form.layout.logic.LogicRules
checkRule, setRule
-
-
-
-
Method Detail
-
setTopFullScreenOffset
public void setTopFullScreenOffset(int topFullScreenOffset)
Sets the top full screen offset.- Parameters:
topFullScreenOffset
- the top full screen offset
-
setBottomFullScreenOffset
public void setBottomFullScreenOffset(int bottomFullScreenOffset)
Sets the bottom full screen offset.- Parameters:
bottomFullScreenOffset
- the bottom full screen offset
-
setUseFullScreenOffsetsForNonFullScreenItems
public void setUseFullScreenOffsetsForNonFullScreenItems(boolean useFullScreenOffsetsForNonFullScreenItems)
Sets the usage flag of full-screen offsets for non full-screen items.- Parameters:
useFullScreenOffsetsForNonFullScreenItems
- the usage flag of full-screen offsets for non full-screen items
-
getGrids
public LogicGrids<T> getGrids()
-
setGrids
public void setGrids(LogicGrids<T> grids)
-
getLeftOffset
public int getLeftOffset()
-
setLeftOffset
public void setLeftOffset(int leftOffset)
-
getTopOffset
public int getTopOffset()
-
setTopOffset
public void setTopOffset(int topOffset)
-
getRightOffset
public int getRightOffset()
-
setRightOffset
public void setRightOffset(int rightOffset)
-
getBottomOffset
public int getBottomOffset()
-
setBottomOffset
public void setBottomOffset(int bottomOffset)
-
isNoReserveRightSpace
public boolean isNoReserveRightSpace()
-
setNoReserveRightSpace
public void setNoReserveRightSpace(boolean noReserveRightSpace)
-
getDefinedMinHeight
public int getDefinedMinHeight()
-
setDefinedMinHeight
public void setDefinedMinHeight(int definedMinHeight)
-
getNextPlaceMode
public LogicPlaceMode getNextPlaceMode()
-
setNextPlaceMode
public void setNextPlaceMode(LogicPlaceMode nextPlaceMode)
-
getSplittersData
public LogicSplittersData getSplittersData()
-
setSplittersData
public void setSplittersData(LogicSplittersData splittersData)
-
getLastMaxWidth
public int getLastMaxWidth()
-
setLastMaxWidth
public void setLastMaxWidth(int lastMaxWidth)
-
getName
public String getName()
-
setName
public void setName(String name)
-
getExternalMinHeight
public int getExternalMinHeight()
-
setExternalMinHeight
public void setExternalMinHeight(int externalMinHeight)
-
getStickyItems
public List<LogicGridLayouter.LGLStickyItemDescr> getStickyItems()
- Returns:
- the stickyItems
-
setStickyItems
public void setStickyItems(List<LogicGridLayouter.LGLStickyItemDescr> stickyItems)
- Parameters:
stickyItems
- the stickyItems to set
-
getAnchors
public Map<String,AnchorDescription<T>> getAnchors()
- Returns:
- the anchors
-
setAnchors
public void setAnchors(Map<String,AnchorDescription<T>> anchors)
- Parameters:
anchors
- the anchors to set
-
getLayeredItems
public List<LayeredItemDescription<T>> getLayeredItems()
- Returns:
- the layeredItems
-
setLayeredItems
public void setLayeredItems(List<LayeredItemDescription<T>> layeredItems)
- Parameters:
layeredItems
- the layeredItems to set
-
place
public LogicSize place(LogicSize size, int xOffset, int yOffset, ILogicCallback<T> callBack)
-
calculateHeight
public LogicCalculateHeightResult calculateHeight(int maxWidth, int xOffset, int yOffset, ILogicCallback<T> callBack)
-
getCurrentSize
public LogicSize getCurrentSize(boolean noStretchCompressPriority)
-
optimumSize
public LogicSize optimumSize(LogicItems<T> items, ILogicCallback<T> callBack)
-
getAnchorRect
public LogicRectangle getAnchorRect(String anchorName, ILogicCallback<T> callBack)
-
updateFloatingItems
public void updateFloatingItems(int xOffset, int yOffset, ILogicCallback<T> callBack)
-
reposSplitter
public boolean reposSplitter(T splId, boolean horizontal, boolean expand, int delta, int xOffset, int yOffset, ILogicCallback<T> callBack)
-
checkLayoutInt
public void checkLayoutInt()
-
getScrollPos
public Size getScrollPos()
-
-