CollapsingBorderModelEyeCatching
public abstract class CollapsingBorderModel
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
protected static int |
AFTER |
after side
|
protected static int |
BEFORE |
before side
|
protected static int |
END |
end side
|
protected static int |
START |
start side
|
Constructor | Description |
---|---|
CollapsingBorderModel() |
Modifier and Type | Method | Description |
---|---|---|
abstract BorderSpecification |
determineWinner(BorderSpecification border1,
BorderSpecification border2) |
Returns the border which wins the border conflict resolution.
|
abstract BorderSpecification |
determineWinner(BorderSpecification border1,
BorderSpecification border2,
boolean discard) |
Returns the border which wins the border conflict resolution.
|
static CollapsingBorderModel |
getBorderModelFor(int borderCollapse) |
|
static int |
getOtherSide(int side) |
|
protected boolean |
isVerticalRelation(int side) |
protected static final int BEFORE
protected static final int AFTER
protected static final int START
protected static final int END
public static CollapsingBorderModel getBorderModelFor(int borderCollapse)
borderCollapse
- border collapse controlpublic static int getOtherSide(int side)
side
- the side on the current cellprotected boolean isVerticalRelation(int side)
side
- the side to investigatepublic abstract BorderSpecification determineWinner(BorderSpecification border1, BorderSpecification border2, boolean discard)
border1
- a border specificationborder2
- another border specificationdiscard
- true if the .conditionality component of the border width must be
taken into accountpublic abstract BorderSpecification determineWinner(BorderSpecification border1, BorderSpecification border2)
determineWinner(border1, border2, false)
.border1
- a border specificationborder2
- another border specificationdetermineWinner(BorderSpecification,BorderSpecification,boolean)
Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.