Modifier and Type | Field and Description |
---|---|
static int |
RELATIVE_OFFSET_COLOR_0
The relative offset of the Color 0 parameter in the
float array. |
static int |
RELATIVE_OFFSET_COLOR_1
The relative offset of the Color 1 parameter in the
float array. |
static int |
RELATIVE_OFFSET_RADIANS_COS
The relative offset of the Radians Cos parameter in the
float array. |
static int |
RELATIVE_OFFSET_RADIANS_SIN
The relative offset of the Radians Sin parameter in the
float array. |
static int |
RELATIVE_OFFSET_SCALE_U
The relative offset of the Scale U parameter in the
float array. |
static int |
RELATIVE_OFFSET_SCALE_V
The relative offset of the Scale V parameter in the
float array. |
static int |
SIZE
The size of a
CheckerboardTexture in the float array. |
static int |
TYPE
The type number associated with a
CheckerboardTexture . |
RELATIVE_OFFSET_SIZE, RELATIVE_OFFSET_TYPE
Constructor and Description |
---|
CheckerboardTexture()
Constructs a new
CheckerboardTexture instance. |
CheckerboardTexture(Color color)
Constructs a new
CheckerboardTexture instance with a given Color . |
CheckerboardTexture(Color color0,
Color color1)
Constructs a new
CheckerboardTexture instance with two different Color s. |
CheckerboardTexture(Color color0,
Color color1,
float scaleU,
float scaleV)
Constructs a new
CheckerboardTexture instance with two different Color s and scale factors in the U- and V-directions. |
CheckerboardTexture(Color color0,
Color color1,
float scaleU,
float scaleV,
float degrees)
Constructs a new
CheckerboardTexture instance with two different Color s, scale factors in the U- and V-directions and the angle in degrees to rotate it. |
CheckerboardTexture(Color color,
float scaleU,
float scaleV)
Constructs a new
CheckerboardTexture instance with a given Color and scale factors in the U- and V-directions. |
CheckerboardTexture(Color color,
float scaleU,
float scaleV,
float degrees)
Constructs a new
CheckerboardTexture instance with a given Color , scale factors in the U- and V-directions and the angle in degrees to rotate it. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object)
Compares
object to this CheckerboardTexture instance for equality. |
Color |
getColor0()
Returns one of the two
Color s assigned to this CheckerboardTexture instance. |
Color |
getColor1()
Returns one of the two
Color s assigned to this CheckerboardTexture instance. |
float |
getDegrees()
Returns the angle in degrees that this
CheckerboardTexture instance should be rotated. |
float |
getScaleU()
Returns the scale factor in the U-direction assigned to this
CheckerboardTexture instance. |
float |
getScaleV()
Returns the scale factor in the V-direction assigned to this
CheckerboardTexture instance. |
int |
getSize()
Returns the size of this
CheckerboardTexture instance. |
int |
getType()
Returns the type of this
CheckerboardTexture instance. |
int |
hashCode()
Returns a hash code for this
CheckerboardTexture instance. |
boolean |
isEmissive()
Returns
true if, and only if, this CheckerboardTexture instance is emissive, false otherwise. |
float[] |
toArray()
Returns a
float array representation of this CheckerboardTexture instance. |
java.lang.String |
toString()
Returns a
String representation of this CheckerboardTexture instance. |
public static final int RELATIVE_OFFSET_COLOR_0
float
array. The value is 2
.public static final int RELATIVE_OFFSET_COLOR_1
float
array. The value is 3
.public static final int RELATIVE_OFFSET_RADIANS_COS
float
array. The value is 4
.public static final int RELATIVE_OFFSET_RADIANS_SIN
float
array. The value is 5
.public static final int RELATIVE_OFFSET_SCALE_U
float
array. The value is 6
.public static final int RELATIVE_OFFSET_SCALE_V
float
array. The value is 7
.public static final int SIZE
CheckerboardTexture
in the float
array. The size is 8
.public static final int TYPE
CheckerboardTexture
. The number is 2
.public CheckerboardTexture()
CheckerboardTexture
instance.
Calling this constructor is equivalent to calling new CheckerboardTexture(Color.GRAY)
.
public CheckerboardTexture(Color color)
CheckerboardTexture
instance with a given Color
.
Calling this constructor is equivalent to calling new CheckerboardTexture(color, 5.0F, 5.0F)
.
If color
is null
, a NullPointerException
will be thrown.
color
- a Color
java.lang.NullPointerException
- thrown if, and only if, color
is null
public CheckerboardTexture(Color color0, Color color1)
CheckerboardTexture
instance with two different Color
s.
Calling this constructor is equivalent to calling new CheckerboardTexture(color0, color1, 5.0F, 5.0F)
.
If either color0
or color1
are null
, a NullPointerException
will be thrown.
color0
- a Color
color1
- a Color
java.lang.NullPointerException
- thrown if, and only if, either color0
or color1
are null
public CheckerboardTexture(Color color0, Color color1, float scaleU, float scaleV)
CheckerboardTexture
instance with two different Color
s and scale factors in the U- and V-directions.
Calling this constructor is equivalent to calling new CheckerboardTexture(color0, color1, scaleU, scaleV, 0.0F)
.
If either color0
or color1
are null
, a NullPointerException
will be thrown.
color0
- a Color
color1
- a Color
scaleU
- the scale factor in the U-directionscaleV
- the scale factor in the V-directionjava.lang.NullPointerException
- thrown if, and only if, either color0
or color1
are null
public CheckerboardTexture(Color color0, Color color1, float scaleU, float scaleV, float degrees)
CheckerboardTexture
instance with two different Color
s, scale factors in the U- and V-directions and the angle in degrees to rotate it.
If either color0
or color1
are null
, a NullPointerException
will be thrown.
color0
- a Color
color1
- a Color
scaleU
- the scale factor in the U-directionscaleV
- the scale factor in the V-directiondegrees
- the angle in degrees to rotate itjava.lang.NullPointerException
- thrown if, and only if, either color0
or color1
are null
public CheckerboardTexture(Color color, float scaleU, float scaleV)
CheckerboardTexture
instance with a given Color
and scale factors in the U- and V-directions.
Calling this constructor is equivalent to calling new CheckerboardTexture(color, scaleU, scaleV, 0.0F)
.
If color
is null
, a NullPointerException
will be thrown.
color
- a Color
scaleU
- the scale factor in the U-directionscaleV
- the scale factor in the V-directionjava.lang.NullPointerException
- thrown if, and only if, color
is null
public CheckerboardTexture(Color color, float scaleU, float scaleV, float degrees)
CheckerboardTexture
instance with a given Color
, scale factors in the U- and V-directions and the angle in degrees to rotate it.
Calling this constructor is equivalent to calling new CheckerboardTexture(color, color, scaleU, scaleV, degrees)
.
If color
is null
, a NullPointerException
will be thrown.
color
- a Color
scaleU
- the scale factor in the U-directionscaleV
- the scale factor in the V-directiondegrees
- the angle in degrees to rotate itjava.lang.NullPointerException
- thrown if, and only if, color
is null
public Color getColor0()
Color
s assigned to this CheckerboardTexture
instance.Color
s assigned to this CheckerboardTexture
instancepublic Color getColor1()
Color
s assigned to this CheckerboardTexture
instance.Color
s assigned to this CheckerboardTexture
instancepublic java.lang.String toString()
String
representation of this CheckerboardTexture
instance.toString
in class java.lang.Object
String
representation of this CheckerboardTexture
instancepublic boolean equals(java.lang.Object object)
object
to this CheckerboardTexture
instance for equality.
Returns true
if, and only if, object
is an instance of CheckerboardTexture
, and their respective values are equal, false
otherwise.
equals
in class java.lang.Object
object
- the Object
to compare to this CheckerboardTexture
instance for equalitytrue
if, and only if, object
is an instance of CheckerboardTexture
, and their respective values are equal, false
otherwisepublic boolean isEmissive()
true
if, and only if, this CheckerboardTexture
instance is emissive, false
otherwise.isEmissive
in interface Texture
true
if, and only if, this CheckerboardTexture
instance is emissive, false
otherwisepublic float getDegrees()
CheckerboardTexture
instance should be rotated.CheckerboardTexture
instance should be rotatedpublic float getScaleU()
CheckerboardTexture
instance.CheckerboardTexture
instancepublic float getScaleV()
CheckerboardTexture
instance.CheckerboardTexture
instancepublic float[] toArray()
float
array representation of this CheckerboardTexture
instance.public int getSize()
CheckerboardTexture
instance.public int getType()
CheckerboardTexture
instance.public int hashCode()
CheckerboardTexture
instance.hashCode
in class java.lang.Object
CheckerboardTexture
instance