public class Separator extends Rectangular implements java.lang.Comparable<Separator>
Modifier and Type | Field and Description |
---|---|
protected AreaImpl |
area1
Left (top) separated area node (if any)
|
protected AreaImpl |
area2
Bottom (right) separated area node (if any)
|
static short |
BOXH |
static short |
BOXV |
static short |
HORIZONTAL |
protected short |
type
Separator type -- either HORIZONTAL, VERTICAL or BOX
|
static short |
VERTICAL |
x1, x2, y1, y2
Constructor and Description |
---|
Separator(Separator orig) |
Separator(short type,
int x1,
int y1,
int x2,
int y2) |
Separator(short type,
Rectangular rect) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Separator other) |
AreaImpl |
getArea1() |
AreaImpl |
getArea2() |
short |
getType() |
int |
getWeight() |
Separator |
hsplit(Separator other) |
boolean |
isBoxSep() |
boolean |
isHorizontal() |
boolean |
isVertical() |
void |
setArea1(AreaImpl area1) |
void |
setArea2(AreaImpl area2) |
void |
setType(short type) |
java.lang.String |
toString() |
Separator |
vsplit(Separator other) |
contains, copy, encloses, enclosesX, enclosesY, equals, expandToEnclose, getArea, getHeight, getWidth, getX1, getX2, getY1, getY2, hsplit, intersection, intersects, intersectsX, intersectsY, isEmpty, midX, midY, replaceX, replaceY, setX1, setX2, setY1, setY2, vsplit
public static final short HORIZONTAL
public static final short VERTICAL
public static final short BOXH
public static final short BOXV
protected short type
protected AreaImpl area1
protected AreaImpl area2
public Separator(short type, int x1, int y1, int x2, int y2)
public Separator(Separator orig)
public Separator(short type, Rectangular rect)
public short getType()
public void setType(short type)
public boolean isBoxSep()
public AreaImpl getArea1()
public void setArea1(AreaImpl area1)
public AreaImpl getArea2()
public void setArea2(AreaImpl area2)
public java.lang.String toString()
toString
in class Rectangular
public int compareTo(Separator other)
compareTo
in interface java.lang.Comparable<Separator>
public boolean isHorizontal()
public boolean isVertical()
public int getWeight()