Package bacnet.genomeBrowser.core
Class Region
java.lang.Object
bacnet.genomeBrowser.core.Region
- All Implemented Interfaces:
Serializable
,Cloneable
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
clone()
Clone the objectint
int
int
int
getWidth()
int
getX1()
int
getX2()
int
getY1()
int
getY2()
void
moveHorizontally
(int selection) void
setHeight
(int height) void
setMiddleH
(int middleH) void
setMiddleV
(int middleV) void
setWidth
(int width) void
setX1
(int x1) void
setX2
(int x2) void
setY1
(int y1) void
setY2
(int y2) toString()
void
validateRegion
(int lastIndex) This method is run after a zoom or a moveHorizontally it move the region to be sure that x1>0 and x2<lastIndexvoid
zoomRegion
(int newWidth)
-
Field Details
-
regionChanged
public boolean regionChanged
-
-
Constructor Details
-
Region
public Region() -
Region
public Region(int x1, int x2)
-
-
Method Details
-
calculateSize
public void calculateSize() -
calculateMiddle
public void calculateMiddle() -
zoomRegion
public void zoomRegion(int newWidth) -
moveHorizontally
public void moveHorizontally(int selection) -
validateRegion
public void validateRegion(int lastIndex) This method is run after a zoom or a moveHorizontally it move the region to be sure that x1>0 and x2<lastIndex- Parameters:
lastIndex
-
-
getX1
public int getX1() -
setX1
public void setX1(int x1) -
getY1
public int getY1() -
setY1
public void setY1(int y1) -
getX2
public int getX2() -
setX2
public void setX2(int x2) -
getY2
public int getY2() -
setY2
public void setY2(int y2) -
getWidth
public int getWidth() -
setWidth
public void setWidth(int width) -
getHeight
public int getHeight() -
setHeight
public void setHeight(int height) -
getMiddleH
public int getMiddleH() -
setMiddleH
public void setMiddleH(int middleH) -
getMiddleV
public int getMiddleV() -
setMiddleV
public void setMiddleV(int middleV) -
toString
-
clone
Clone the object
-