public class Guideline extends ConstraintWidget
ConstraintWidget.DimensionBehaviour| Modifier and Type | Field and Description |
|---|---|
protected boolean |
guidelineUseRtl |
static int |
HORIZONTAL |
protected int |
mRelativeBegin |
protected int |
mRelativeEnd |
protected float |
mRelativePercent |
static int |
RELATIVE_BEGIN |
static int |
RELATIVE_END |
static int |
RELATIVE_PERCENT |
static int |
RELATIVE_UNKNOWN |
static int |
VERTICAL |
ANCHOR_BASELINE, ANCHOR_BOTTOM, ANCHOR_LEFT, ANCHOR_RIGHT, ANCHOR_TOP, BOTH, CHAIN_PACKED, CHAIN_SPREAD, CHAIN_SPREAD_INSIDE, DEFAULT_BIAS, DIRECT, frame, GONE, horizontalChainRun, horizontalGroup, horizontalRun, INVISIBLE, isTerminalWidget, mAnchors, MATCH_CONSTRAINT_PERCENT, MATCH_CONSTRAINT_RATIO, MATCH_CONSTRAINT_RATIO_RESOLVED, MATCH_CONSTRAINT_SPREAD, MATCH_CONSTRAINT_WRAP, mBaseline, mBottom, mCenter, mDimensionRatio, mDimensionRatioSide, measured, mHorizontalResolution, mIsHeightWrapContent, mIsWidthWrapContent, mLeft, mListAnchors, mListDimensionBehaviors, mListNextMatchConstraintsWidget, mMatchConstraintDefaultHeight, mMatchConstraintDefaultWidth, mMatchConstraintMaxHeight, mMatchConstraintMaxWidth, mMatchConstraintMinHeight, mMatchConstraintMinWidth, mMatchConstraintPercentHeight, mMatchConstraintPercentWidth, mMinHeight, mMinWidth, mNextChainWidget, mOffsetX, mOffsetY, mParent, mResolvedMatchConstraintDefault, mRight, mTop, mVerticalResolution, mWeight, mX, mY, run, SOLVER, stringId, UNKNOWN, verticalChainRun, verticalGroup, verticalRun, VISIBLE, WRAP_BEHAVIOR_HORIZONTAL_ONLY, WRAP_BEHAVIOR_INCLUDED, WRAP_BEHAVIOR_SKIPPED, WRAP_BEHAVIOR_VERTICAL_ONLY| Constructor and Description |
|---|
Guideline() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToSolver(LinearSystem system,
boolean optimize)
Add this widget to the solver
|
boolean |
allowedInBarrier()
Returns true if this widget should be used in a barrier
|
void |
copy(ConstraintWidget src,
java.util.HashMap<ConstraintWidget,ConstraintWidget> map) |
void |
cyclePosition() |
ConstraintAnchor |
getAnchor() |
ConstraintAnchor |
getAnchor(ConstraintAnchor.Type anchorType)
Given a type of anchor, returns the corresponding anchor.
|
int |
getOrientation() |
int |
getRelativeBegin() |
int |
getRelativeBehaviour() |
int |
getRelativeEnd() |
float |
getRelativePercent() |
java.lang.String |
getType()
Specify the xml type for the container
|
boolean |
isPercent() |
boolean |
isResolvedHorizontally() |
boolean |
isResolvedVertically() |
void |
setFinalValue(int position) |
void |
setGuideBegin(int value) |
void |
setGuideEnd(int value) |
void |
setGuidePercent(float value) |
void |
setGuidePercent(int value) |
void |
setMinimumPosition(int minimum) |
void |
setOrientation(int orientation) |
void |
updateFromSolver(LinearSystem system,
boolean optimize)
Update the widget from the values generated by the solver
|
addChildrenToSolverByDependency, connect, connect, connect, connectCircularConstraint, createObjectVariables, ensureMeasureRequested, ensureWidgetRuns, getAnchors, getBaselineDistance, getBiasPercent, getBottom, getCompanionWidget, getContainerItemSkip, getDebugName, getDimensionBehaviour, getDimensionRatio, getDimensionRatioSide, getHasBaseline, getHeight, getHorizontalBiasPercent, getHorizontalChainControlWidget, getHorizontalChainStyle, getHorizontalDimensionBehaviour, getHorizontalMargin, getLastHorizontalMeasureSpec, getLastVerticalMeasureSpec, getLeft, getLength, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getNextChainMember, getOptimizerWrapHeight, getOptimizerWrapWidth, getParent, getPreviousChainMember, getRight, getRootX, getRootY, getRun, getSceneString, getTop, getVerticalBiasPercent, getVerticalChainControlWidget, getVerticalChainStyle, getVerticalDimensionBehaviour, getVerticalMargin, getVisibility, getWidth, getWrapBehaviorInParent, getX, getY, hasBaseline, hasDanglingDimension, hasDependencies, hasDimensionOverride, hasResolvedTargets, immediateConnect, isHeightWrapContent, isHorizontalSolvingPassDone, isInBarrier, isInHorizontalChain, isInPlaceholder, isInVerticalChain, isInVirtualLayout, isMeasureRequested, isRoot, isSpreadHeight, isSpreadWidth, isVerticalSolvingPassDone, isWidthWrapContent, markHorizontalSolvingPassDone, markVerticalSolvingPassDone, oppositeDimensionDependsOn, oppositeDimensionsTied, reset, resetAllConstraints, resetAnchor, resetAnchors, resetFinalResolution, resetSolverVariables, resetSolvingPassFlag, serialize, setBaselineDistance, setCompanionWidget, setContainerItemSkip, setDebugName, setDebugSolverName, setDimension, setDimensionRatio, setDimensionRatio, setFinalBaseline, setFinalFrame, setFinalHorizontal, setFinalLeft, setFinalTop, setFinalVertical, setFrame, setFrame, setGoneMargin, setHasBaseline, setHeight, setHeightWrapContent, setHorizontalBiasPercent, setHorizontalChainStyle, setHorizontalDimension, setHorizontalDimensionBehaviour, setHorizontalMatchStyle, setHorizontalWeight, setInBarrier, setInPlaceholder, setInVirtualLayout, setLastMeasureSpec, setLength, setMaxHeight, setMaxWidth, setMeasureRequested, setMinHeight, setMinWidth, setOffset, setOrigin, setParent, setType, setupDimensionRatio, setVerticalBiasPercent, setVerticalChainStyle, setVerticalDimension, setVerticalDimensionBehaviour, setVerticalMatchStyle, setVerticalWeight, setVisibility, setWidth, setWidthWrapContent, setWrapBehaviorInParent, setX, setY, toString, updateFromRunspublic static final int HORIZONTAL
public static final int VERTICAL
public static final int RELATIVE_PERCENT
public static final int RELATIVE_BEGIN
public static final int RELATIVE_END
public static final int RELATIVE_UNKNOWN
protected float mRelativePercent
protected int mRelativeBegin
protected int mRelativeEnd
protected boolean guidelineUseRtl
public void copy(ConstraintWidget src, java.util.HashMap<ConstraintWidget,ConstraintWidget> map)
copy in class ConstraintWidgetpublic boolean allowedInBarrier()
ConstraintWidgetallowedInBarrier in class ConstraintWidgetpublic int getRelativeBehaviour()
public void setOrientation(int orientation)
public ConstraintAnchor getAnchor()
public java.lang.String getType()
getType in class ConstraintWidgetpublic int getOrientation()
public void setMinimumPosition(int minimum)
public ConstraintAnchor getAnchor(ConstraintAnchor.Type anchorType)
ConstraintWidgetgetAnchor in class ConstraintWidgetanchorType - type of the anchor (LEFT, TOP, RIGHT, BOTTOM, BASELINE, CENTER_X, CENTER_Y)public void setGuidePercent(int value)
public void setGuidePercent(float value)
public void setGuideBegin(int value)
public void setGuideEnd(int value)
public float getRelativePercent()
public int getRelativeBegin()
public int getRelativeEnd()
public void setFinalValue(int position)
public boolean isResolvedHorizontally()
isResolvedHorizontally in class ConstraintWidgetpublic boolean isResolvedVertically()
isResolvedVertically in class ConstraintWidgetpublic void addToSolver(LinearSystem system, boolean optimize)
ConstraintWidgetaddToSolver in class ConstraintWidgetsystem - the solver we want to add the widget tooptimize - true if Optimizer.OPTIMIZATION_GRAPH is onpublic void updateFromSolver(LinearSystem system, boolean optimize)
ConstraintWidgetupdateFromSolver in class ConstraintWidgetsystem - the solver we get the values from.optimize - true if Optimizer.OPTIMIZATION_GRAPH is onpublic void cyclePosition()
public boolean isPercent()