java.lang.Object
snap.geom.Shape
snap.geom.RectBase
snap.geom.Rect
snap.view.ViewProxy<T>
snap.view.ParentViewProxy<T>
snap.view.BoxViewProxy<T>
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
ScaleBoxProxy
A ViewProxy that can layout content in the manner of BoxView for any View.
-
Field Summary
Fields inherited from class snap.view.ParentViewProxy
_growHeightCount, _growWidthCount
Fields inherited from class snap.geom.Shape
_bounds, WIND_EVEN_ODD, WIND_NON_ZERO
-
Constructor Summary
ConstructorDescriptionBoxViewProxy
(View aParent) Constructor for given parent view.BoxViewProxy
(View aParent, View aChild, boolean isFillWidth, boolean isFillHeight) Constructor for given parent view and FillWidth, FillHeight params. -
Method Summary
Modifier and TypeMethodDescriptionprotected double
getPrefHeightImpl
(double aW) Returns preferred height of layout.protected double
getPrefWidthImpl
(double aH) Returns preferred width of layout.void
Performs Box layout for given parent, child and fill width/height.Methods inherited from class snap.view.ParentViewProxy
getBestHeight, getBestWidth, getChildrenMaxXAllWithInsets, getChildrenMaxXLastWithInsets, getChildrenMaxYAllWithInsets, getChildrenMaxYLastWithInsets, getGrowHeightCount, getGrowWidthCount, getPrefHeight, getPrefWidth, layoutView
Methods inherited from class snap.view.ViewProxy
getAlign, getAlignXAsDouble, getAlignYAsDouble, getBorder, getBorderInsets, getChildCount, getChildForClass, getChildren, getChildrenForClass, getContent, getHeight, getInsetsAll, getLeanX, getLeanXAsDouble, getLeanY, getLeanYAsDouble, getMargin, getMaxX, getMaxY, getPadding, getProxies, getProxy, getSpacing, getView, getWidth, isFillHeight, isFillWidth, isGrowHeight, isGrowWidth, isVisible, setAlign, setBorder, setBounds, setBounds, setBoundsInClient, setChildren, setContent, setFillHeight, setFillWidth, setGrowHeight, setGrowWidth, setMargin, setPadding, setSpacing, toString
Methods inherited from class snap.geom.Rect
add, add, addX, addY, clone, contains, contains, contains, contains, containsRect, equals, get, get, getAddRect, getBoundsImpl, getInsetRect, getInsetRect, getInsetRect, getIntersectRect, getOffsetRect, getPathIter, getPerimeterPointForRadial, getPoint, getPointForPosition, getPointForPositionAndSize, getPointForPositionAndSize, getPoints, getRectCenteredInside, getRectForPoints, getRectForString, getScaledRect, getUnionRect, hashCode, intersect, intersectsRect, intersectsRectAndNotEmpty, intersectsShape, intersectsShape, scale, snap, union, union, unionEvenIfEmpty
Methods inherited from class snap.geom.RectBase
copyFor, copyFor, equals, getMidX, getMidY, getMinX, getMinY, getSize, getSvgString, getX, getXY, getY, inset, inset, inset, isEmpty, offset, setCenteredXY, setHeight, setRect, setRect, setSize, setWidth, setX, setXY, setY
Methods inherited from class snap.geom.Shape
addShapes, contains, containsSeg, copyForBounds, crossesSeg, getArcLength, getBounds, getCrossings, getDistance, getFlattenedShape, getFlattenedShape, getNotSelfIntersectingShape, intersectShapes, intersectsSeg, intersectsXY, isClosed, isFlat, isMultiCycle, isSelfIntersecting, isSingleCycle, shapeChanged, subtractShapes
-
Constructor Details
-
BoxViewProxy
Constructor for given parent view. -
BoxViewProxy
Constructor for given parent view and FillWidth, FillHeight params.
-
-
Method Details
-
getPrefWidthImpl
protected double getPrefWidthImpl(double aH) Returns preferred width of layout.- Specified by:
getPrefWidthImpl
in classParentViewProxy<T extends View>
-
getPrefHeightImpl
protected double getPrefHeightImpl(double aW) Returns preferred height of layout.- Specified by:
getPrefHeightImpl
in classParentViewProxy<T extends View>
-
layoutProxy
public void layoutProxy()Performs Box layout for given parent, child and fill width/height.- Specified by:
layoutProxy
in classParentViewProxy<T extends View>
-