|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kabeja.dxf.Bounds
public class Bounds
This class is a helper class and reflect a viewport of a entity/layer or document
Field Summary | |
---|---|
protected double |
max_x
|
protected double |
max_y
|
protected double |
max_z
|
protected double |
min_x
|
protected double |
min_y
|
protected double |
min_z
|
protected boolean |
set
|
Constructor Summary | |
---|---|
Bounds()
|
|
Bounds(Bounds b)
|
|
Bounds(double max_x,
double min_x,
double max_y,
double min_y)
|
|
Bounds(double max_x,
double min_x,
double max_y,
double min_y,
double max_z,
double min_z)
|
Method Summary | |
---|---|
void |
addToBounds(Bounds bounds)
Enlarge the Bounds to the given Bounds if they enlarge the area. |
void |
addToBounds(double x,
double y,
double z)
Enlarge the Bounds if the given bounds enlarge the coordinates |
void |
addToBounds(Point p)
|
boolean |
contains(Bounds bounds)
Determines if the given bounding box part or inside the bounds. |
boolean |
contains(Point p)
|
void |
debug()
|
boolean |
enclose(Bounds bounds)
Determines if the given bounds are enclosed. |
double |
getDepth()
|
double |
getHeight()
|
double |
getMaximumX()
|
double |
getMaximumY()
|
double |
getMaximumZ()
|
double |
getMinimumX()
|
double |
getMinimumY()
|
double |
getMinimumZ()
|
double |
getWidth()
|
boolean |
isValid()
|
void |
setMaximumX(double max_x)
|
void |
setMaximumY(double max_y)
|
void |
setMaximumZ(double max_z)
|
void |
setMinimumX(double min_x)
|
void |
setMinimumY(double min_y)
|
void |
setMinimumZ(double min_z)
|
void |
setValid(boolean set)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double max_x
protected double min_x
protected double max_y
protected double min_y
protected double max_z
protected double min_z
protected boolean set
Constructor Detail |
---|
public Bounds()
public Bounds(double max_x, double min_x, double max_y, double min_y, double max_z, double min_z)
public Bounds(double max_x, double min_x, double max_y, double min_y)
public Bounds(Bounds b)
Method Detail |
---|
public double getMaximumX()
public void setMaximumX(double max_x)
max_x
- The max_x to set.public double getMaximumY()
public void setMaximumY(double max_y)
max_y
- The max_y to set.public double getMinimumX()
public void setMinimumX(double min_x)
min_x
- The min_x to set.public double getMinimumY()
public void setMinimumY(double min_y)
min_y
- The min_y to set.public double getMinimumZ()
public void setMinimumZ(double min_z)
public double getMaximumZ()
public void setMaximumZ(double max_z)
public void addToBounds(Bounds bounds)
bounds
- public void addToBounds(double x, double y, double z)
x
- y
- z
- public void addToBounds(Point p)
public double getWidth()
public double getHeight()
public double getDepth()
public boolean isValid()
public void setValid(boolean set)
set
- The set to set.public void debug()
public boolean contains(Bounds bounds)
bounds
-
public boolean contains(Point p)
public boolean enclose(Bounds bounds)
bounds
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |