org.foray.common.ps
Class BoundingBox4a
java.lang.Object
org.foray.common.ps.BoundingBox4a
- All Implemented Interfaces:
- org.axsl.ps.PsBoundingBox
public class BoundingBox4a
- extends Object
- implements org.axsl.ps.PsBoundingBox
A PostScript bounding box.
Fields inherited from interface org.axsl.ps.PsBoundingBox |
BBOX_ENTRIES, BBOX_LOWER_LEFT_X_INDEX, BBOX_LOWER_LEFT_Y_INDEX, BBOX_UPPER_RIGHT_X_INDEX, BBOX_UPPER_RIGHT_Y_INDEX |
Constructor Summary |
BoundingBox4a(float[] array)
Constructor for a pre-existing float array. |
BoundingBox4a(float lowerLeftX,
float lowerLeftY,
float upperRightX,
float upperRightY)
Constructor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BoundingBox4a
public BoundingBox4a(float lowerLeftX,
float lowerLeftY,
float upperRightX,
float upperRightY)
- Constructor.
- Parameters:
lowerLeftX
- The lower-left X coordinate for the bounding box.lowerLeftY
- The lower-left Y coordinate for the bounding box.upperRightX
- The upper-right X coordinate for the bounding box.upperRightY
- The upper-right Y coordinate for the bounding box.
BoundingBox4a
public BoundingBox4a(float[] array)
- Constructor for a pre-existing float array.
- Parameters:
array
- The array containing the bounds.
This array must have exactly four elements.
width
public float width()
- Specified by:
width
in interface org.axsl.ps.PsBoundingBox
height
public float height()
- Specified by:
height
in interface org.axsl.ps.PsBoundingBox
lowerLeftX
public float lowerLeftX()
- Specified by:
lowerLeftX
in interface org.axsl.ps.PsBoundingBox
lowerLeftY
public float lowerLeftY()
- Specified by:
lowerLeftY
in interface org.axsl.ps.PsBoundingBox
upperRightX
public float upperRightX()
- Specified by:
upperRightX
in interface org.axsl.ps.PsBoundingBox
upperRightY
public float upperRightY()
- Specified by:
upperRightY
in interface org.axsl.ps.PsBoundingBox
Copyright © 2017. All rights reserved.