Class Bounds
java.lang.Object
com.codename1.ui.scene.Bounds
Encapsulates bounds in a 3D space.
-
Constructor Summary
ConstructorsConstructorDescriptionBounds(double minX, double minY, double minZ, double width, double height, double depth) Parameters
-
Method Summary
Modifier and TypeMethodDescriptiondoublegetDepth()Gets the depth of the bounding cube along z-axis.doubleGets the height of the bounding cube along y-axis).doublegetMinX()Gets min X coordinate of bounding cube.doublegetMinY()Gets the min Y coordinate of bounding cube.doublegetMinZ()Sets the min Z coordinate of bounding cube.doublegetWidth()Gets the width of the bounding cube (along x-axis)voidsetDepth(double depth) Sets the depth of the bounding cube along z-axisvoidsetHeight(double height) Sets the height of the bounding cube along y-axis.voidsetMinX(double minX) Sets min X coordinate of bounding cube.voidsetMinY(double minY) Sets the min Y coordinate of bounding cube.voidsetMinZ(double minZ) Sets the min Z coordinate of the bounding cube.voidsetWidth(double width) Sets the width of the bouding cube along x-axis.Methods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()booleanIndicates whether some other object is "equal to" this one.final ClassgetClass()Returns the runtime class of an object.inthashCode()Returns a hash code value for the object.final voidnotify()Wakes up a single thread that is waiting on this object's monitor.final voidWakes up all threads that are waiting on this object's monitor.toString()Returns a string representation of the object.final voidwait()Causes current thread to wait until another thread invokes the method or the method for this object.final voidwait(long timeout) Causes current thread to wait until either another thread invokes the method or the method for this object, or a specified amount of time has elapsed.final voidwait(long timeout, int nanos) Causes current thread to wait until another thread invokes the method or the method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
-
Constructor Details
-
Bounds
public Bounds(double minX, double minY, double minZ, double width, double height, double depth) Parameters
-
minX -
minY -
minZ -
width -
height -
depth
-
-
-
Method Details
-
getMinX
public double getMinX()Gets min X coordinate of bounding cube.
Returns
the minX
-
setMinX
public void setMinX(double minX) Sets min X coordinate of bounding cube.
Parameters
minX: the minX to set
-
getMinY
public double getMinY()Gets the min Y coordinate of bounding cube.
Returns
the minY
-
setMinY
public void setMinY(double minY) Sets the min Y coordinate of bounding cube.
Parameters
minY: the minY to set
-
getMinZ
public double getMinZ()Sets the min Z coordinate of bounding cube.
Returns
the minZ
-
setMinZ
public void setMinZ(double minZ) Sets the min Z coordinate of the bounding cube.
Parameters
minZ: the minZ to set
-
getWidth
public double getWidth()Gets the width of the bounding cube (along x-axis)
Returns
the width
-
setWidth
public void setWidth(double width) Sets the width of the bouding cube along x-axis.
Parameters
width: the width to set
-
getHeight
public double getHeight()Gets the height of the bounding cube along y-axis).
Returns
the height
-
setHeight
public void setHeight(double height) Sets the height of the bounding cube along y-axis.
Parameters
height: the height to set
-
getDepth
public double getDepth()Gets the depth of the bounding cube along z-axis.
Returns
the depth
-
setDepth
public void setDepth(double depth) Sets the depth of the bounding cube along z-axis
Parameters
depth: the depth to set
-