Package cz.vutbr.fit.layout.vips.impl
Class Separator
- java.lang.Object
-
- cz.vutbr.fit.layout.vips.impl.Separator
-
- All Implemented Interfaces:
Comparable<Separator>
public class Separator extends Object implements Comparable<Separator>
A detected visual separator.- Author:
- burgetr
-
-
Field Summary
Fields Modifier and Type Field Description int
endPoint
int
startPoint
boolean
vertical
int
weight
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Separator otherSeparator)
int
getEndPoint()
int
getStartPoint()
int
getWeight()
boolean
isInside(VisualArea area)
Check whether this separator is inside a visual area (it splits the area in two parts)boolean
isVertical()
void
setEndPoint(int endPoint)
void
setStartPoint(int startPoint)
void
setVertical(boolean vertical)
void
setWeight(int weight)
String
toString()
-
-
-
Constructor Detail
-
Separator
public Separator(int start, int end, boolean vertical)
-
Separator
public Separator(int start, int end, boolean vertical, int weight)
-
Separator
public Separator(Separator src)
-
-
Method Detail
-
isVertical
public boolean isVertical()
-
setVertical
public void setVertical(boolean vertical)
-
getStartPoint
public int getStartPoint()
-
setStartPoint
public void setStartPoint(int startPoint)
-
getEndPoint
public int getEndPoint()
-
setEndPoint
public void setEndPoint(int endPoint)
-
getWeight
public int getWeight()
-
setWeight
public void setWeight(int weight)
-
isInside
public boolean isInside(VisualArea area)
Check whether this separator is inside a visual area (it splits the area in two parts)- Parameters:
area
- the visual area to check- Returns:
true
if the separator splits the area in two parts
-
compareTo
public int compareTo(Separator otherSeparator)
- Specified by:
compareTo
in interfaceComparable<Separator>
-
-