|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmaspack.render.TextureProps
public class TextureProps
Nested Class Summary | |
---|---|
static class |
TextureProps.Mode
|
Field Summary | |
---|---|
static PropertyList |
myProps
|
Constructor Summary | |
---|---|
TextureProps()
|
|
TextureProps(TextureProps props)
|
Method Summary | |
---|---|
void |
clearTextureData()
|
TextureProps |
clone()
Returns a clone of this composite property. |
boolean |
equals(java.lang.Object obj)
|
boolean |
equals(TextureProps props)
|
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by this object. |
PropertyMode |
getAutomaticMode()
|
PropertyMode |
getEnabledMode()
|
java.lang.String |
getFileName()
|
PropertyMode |
getFileNameMode()
|
TextureProps.Mode |
getMode()
|
PropertyMode |
getModeMode()
|
Property |
getProperty(java.lang.String name)
Returns a property associated with a specified path name. |
HasProperties |
getPropertyHost()
Should be either HierarchyNode or HasProperties |
PropertyInfo |
getPropertyInfo()
If this object is a property, returns the corresponding information |
double[] |
getSCoords()
|
PropertyMode |
getSCoordsMode()
|
PropertyMode |
getSphereMappingMode()
|
double[] |
getTCoords()
|
PropertyMode |
getTCoordsMode()
|
Texture |
getTexture()
|
boolean |
isAutomatic()
|
boolean |
isEnabled()
|
boolean |
isSphereMappingEnabled()
|
boolean |
isWritable()
Returns true if this component should in fact be written to
secondary storage. |
static void |
main(java.lang.String[] args)
|
void |
scan(ReaderTokenizer rtok,
java.lang.Object ref)
Scans this element from a ReaderTokenizer. |
void |
set(TextureProps props)
|
void |
setAutomatic(boolean enabled)
|
void |
setAutomaticMode(PropertyMode mode)
|
void |
setEnabled(boolean enabled)
|
void |
setEnabledMode(PropertyMode mode)
|
void |
setFileName(java.lang.String name)
|
void |
setFileNameMode(PropertyMode mode)
|
void |
setMode(TextureProps.Mode m)
|
void |
setModeMode(PropertyMode mode)
|
void |
setPropertyHost(HasProperties host)
Sets the host for this property. |
void |
setPropertyInfo(PropertyInfo info)
Sets the property information for this property. |
void |
setSCoords(double[] s)
|
void |
setSCoordsMode(PropertyMode mode)
|
void |
setSphereMappingEnabled(boolean enabled)
|
void |
setSphereMappingMode(PropertyMode mode)
|
void |
setTCoords(double[] t)
|
void |
setTCoordsMode(PropertyMode mode)
|
void |
setTexture(Texture texture)
|
boolean |
textureFileExists()
|
java.lang.String |
toString()
|
void |
write(java.io.PrintWriter pw,
NumberFormat fmt,
java.lang.Object ref)
Writes a text description of this element to a PrintWriter. |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static PropertyList myProps
Constructor Detail |
---|
public TextureProps()
public TextureProps(TextureProps props)
Method Detail |
---|
public HasProperties getPropertyHost()
getPropertyHost
in interface CompositeProperty
public PropertyInfo getPropertyInfo()
getPropertyInfo
in interface CompositeProperty
public void setPropertyHost(HasProperties host)
setPropertyHost
in interface CompositeProperty
host
- host for this propertypublic void setPropertyInfo(PropertyInfo info)
setPropertyInfo
in interface CompositeProperty
info
- property informationpublic Property getProperty(java.lang.String name)
HasProperties
.
' characters. A sub-property
exists if the value of a property is itself an object which exports
properties. It is only possible to obtain a sub-property handle if each of
its ancestor properties exports their values by reference.
getProperty
in interface HasProperties
name
- name of the desired property or sub-property
public PropertyList getAllPropertyInfo()
HasProperties
getAllPropertyInfo
in interface HasProperties
public void clearTextureData()
public boolean isEnabled()
public void setEnabled(boolean enabled)
public PropertyMode getEnabledMode()
public void setEnabledMode(PropertyMode mode)
public TextureProps.Mode getMode()
public void setMode(TextureProps.Mode m)
public PropertyMode getModeMode()
public void setModeMode(PropertyMode mode)
public java.lang.String getFileName()
public void setFileName(java.lang.String name)
public boolean textureFileExists()
public Texture getTexture()
public void setTexture(Texture texture)
public PropertyMode getFileNameMode()
public void setFileNameMode(PropertyMode mode)
public boolean isSphereMappingEnabled()
public void setSphereMappingEnabled(boolean enabled)
public PropertyMode getSphereMappingMode()
public void setSphereMappingMode(PropertyMode mode)
public boolean isAutomatic()
public void setAutomatic(boolean enabled)
public PropertyMode getAutomaticMode()
public void setAutomaticMode(PropertyMode mode)
public void setSCoords(double[] s)
public double[] getSCoords()
public PropertyMode getSCoordsMode()
public void setSCoordsMode(PropertyMode mode)
public void setTCoords(double[] t)
public double[] getTCoords()
public PropertyMode getTCoordsMode()
public void setTCoordsMode(PropertyMode mode)
public void set(TextureProps props)
public boolean equals(TextureProps props)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean isWritable()
true
if this component should in fact be written to
secondary storage. This gives subclasses control over whether or
not they are actually written out.
isWritable
in interface Scannable
true
if this component should be written to
secondary storage.public void write(java.io.PrintWriter pw, NumberFormat fmt, java.lang.Object ref) throws java.io.IOException
Scannable
scan
and complete
enough to allow full reconstruction of the element.
write
in interface Scannable
pw
- stream for writing the elementfmt
- numeric formating informationref
- optional reference object which can be used for producing references to
other objects
java.io.IOException
- if an I/O error occuredpublic void scan(ReaderTokenizer rtok, java.lang.Object ref) throws java.io.IOException
Scannable
write
.
scan
in interface Scannable
rtok
- Tokenizer from which to scan the elementref
- optional reference object which can be used for resolving references to
other objects
java.io.IOException
- if an I/O or formatting error occuredpublic java.lang.String toString()
toString
in class java.lang.Object
public TextureProps clone()
CompositeProperty
clone
in interface CompositeProperty
clone
in interface Clonable
clone
in class java.lang.Object
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |