Package cz.vutbr.fit.layout.bcs.impl
Class Pattern
- java.lang.Object
-
- cz.vutbr.fit.layout.bcs.impl.Pattern
-
public class Pattern extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNMENT_BOTTOM
static int
ALIGNMENT_LEFT
static int
ALIGNMENT_NONE
static int
ALIGNMENT_RIGHT
static int
ALIGNMENT_TOP
static int
CONSISTENCY_HIGH
static int
CONSISTENCY_LOW
static int
CONSISTENCY_MEDIUM
static int
CONSISTENCY_NONE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
calculateConsistency()
void
filterContained(PatternElement el)
int
getConsistency()
Pattern
getUpdatedPattern(PageArea newChild)
This function creates a testing pattern which would be a result if a new child was added
-
-
-
Field Detail
-
CONSISTENCY_HIGH
public static final int CONSISTENCY_HIGH
- See Also:
- Constant Field Values
-
CONSISTENCY_MEDIUM
public static final int CONSISTENCY_MEDIUM
- See Also:
- Constant Field Values
-
CONSISTENCY_LOW
public static final int CONSISTENCY_LOW
- See Also:
- Constant Field Values
-
CONSISTENCY_NONE
public static final int CONSISTENCY_NONE
- See Also:
- Constant Field Values
-
ALIGNMENT_NONE
public static final int ALIGNMENT_NONE
- See Also:
- Constant Field Values
-
ALIGNMENT_TOP
public static final int ALIGNMENT_TOP
- See Also:
- Constant Field Values
-
ALIGNMENT_RIGHT
public static final int ALIGNMENT_RIGHT
- See Also:
- Constant Field Values
-
ALIGNMENT_BOTTOM
public static final int ALIGNMENT_BOTTOM
- See Also:
- Constant Field Values
-
ALIGNMENT_LEFT
public static final int ALIGNMENT_LEFT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Pattern
public Pattern(PageArea a)
-
-
Method Detail
-
calculateConsistency
public int calculateConsistency()
-
filterContained
public void filterContained(PatternElement el)
-
getUpdatedPattern
public Pattern getUpdatedPattern(PageArea newChild)
This function creates a testing pattern which would be a result if a new child was added- Parameters:
newChild
- the child object which is to be added and the new pattern computed- Returns:
- returns a new Pattern object which can be then compared to this one to determine if the change is acceptable
-
getConsistency
public int getConsistency()
-
-