@TestClass(value="org.openscience.cdk.renderer.elements.BoundingBoxTest") public final class Bounds extends Object implements IRenderingElement
Modifier and Type | Field and Description |
---|---|
double |
maxX
Maximum x/y coordinates.
|
double |
maxY
Maximum x/y coordinates.
|
double |
minX
Minimum x/y coordinates.
|
double |
minY
Minimum x/y coordinates.
|
Constructor and Description |
---|
Bounds(double x1,
double y1,
double x2,
double y2)
Specify the min/max coordinates of the bounding box.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(IRenderingVisitor visitor)
Converts this
TextElement into widget specific objects. |
double |
height()
Specifies the height of the bounding box.
|
String |
toString() |
double |
width()
Specifies the width of the bounding box.
|
public final double minX
public final double minY
public final double maxX
public final double maxY
@TestMethod(value="testConstructor") public Bounds(double x1, double y1, double x2, double y2)
x1
- min x coordinatey1
- min y coordinatex2
- max x coordinatey2
- max y coordinate@TestMethod(value="width") public final double width()
@TestMethod(value="width") public final double height()
@TestMethod(value="testAccept") public void accept(IRenderingVisitor visitor)
IRenderingElement
TextElement
into widget specific objects.accept
in interface IRenderingElement
visitor
- Toolkit specific widget factory.Copyright © 2014. All Rights Reserved.