Geometry-Based Edge Clustering
Main Page
Classes
Files
File List
All
Classes
Functions
GridCell.java
1
import
java.awt.Rectangle;
2
import
java.awt.geom.Rectangle2D;
3
11
public
class
GridCell
{
12
13
private
int
x;
14
private
int
y;
15
private
int
width;
16
private
int
height;
17
private
int
regionIndex;
18
private
double
primaryAngle;
19
27
public
GridCell
(
int
x,
int
y,
int
width,
int
height){
28
this.x = x;
29
this.y = y;
30
this.width = width;
31
this.height = height;
32
primaryAngle = -1;
33
regionIndex = -1;
34
}
35
40
public
int
getX
(){
41
return
x;
42
}
43
48
public
int
getY
(){
49
return
y;
50
}
51
56
public
int
getWidth
(){
57
return
width;
58
}
59
64
public
int
getHeight
(){
65
return
height;
66
}
67
72
public
int
getRegionIndex
(){
73
return
regionIndex;
74
}
75
80
public
void
setRegionIndex
(
int
regionIndex){
81
this.regionIndex = regionIndex;
82
}
83
88
public
double
getPrimaryAngle
(){
89
return
primaryAngle;
90
}
91
96
public
void
setPrimaryAngle
(
double
primaryAngle){
97
this.primaryAngle = primaryAngle;
98
}
99
104
public
Rectangle2D
bounds
(){
105
return
new
Rectangle(x, y, width, height).getBounds2D();
106
}
107
108
}
Users
neco
Desktop
GBEC
HomePage
src
GridCell.java
Generated on Sat Jun 8 2013 19:45:29 for Geometry-Based Edge Clustering by
1.8.4