Package xj3d.filter.node
Class Appearance
java.lang.Object
xj3d.filter.node.BaseEncodable
xj3d.filter.node.Appearance
- All Implemented Interfaces:
Encodable,IAppearance
Wrapper for the X3D Appearance node.
Note: This impl is missing the shaders field.
- Version:
- $Revision: 1.5 $
- Author:
- Rex Melton
-
Field Summary
Fields inherited from class xj3d.filter.node.BaseEncodable
bch, defName, fieldReader, handler, HANDLER_BINARY, HANDLER_NULL, HANDLER_STRING, handlerType, nodeName, sch, useName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear the node fields to their initial valuesclone(boolean full) Create and return a copy of this object.booleandeepEquals(Encodable enc) Compares this appearance to another and checks if all fields are the same and that all children fields are the same.voidencode()Push the node contents to the ContentHandlerGet the FillProperties node wrapperGet the LineProperties node wrapperGet the Material node wrapperGet the Texture node wrapperGet the TextureTransform node wrappervoidsetFillProperties(Encodable fillProperties) Set the FillProperties node wrappervoidsetLineProperties(Encodable lineProperties) Set the LineProperties node wrappervoidsetMaterial(Encodable material) Set the Material node wrappervoidsetTexture(Encodable texture) Set the Texture node wrappervoidsetTextureTransform(Encodable textureTransform) Set the TextureTransform node wrappervoidSet the value of the named field.voidSet the value of the named field.Methods inherited from class xj3d.filter.node.BaseEncodable
copy, getDefName, getMetadata, getNodeName, getUseName, setContentHandler, setDefName, setFieldReader, setMetadata, setUseNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface xj3d.filter.node.Encodable
getDefName, getNodeName, getUseName, setContentHandler, setDefName, setFieldReader, setUseName
-
Constructor Details
-
Appearance
public Appearance()Constructor -
Appearance
-
-
Method Details
-
clear
public void clear()Clear the node fields to their initial values- Specified by:
clearin interfaceEncodable- Overrides:
clearin classBaseEncodable
-
encode
public void encode()Push the node contents to the ContentHandler- Specified by:
encodein interfaceEncodable- Overrides:
encodein classBaseEncodable
-
setValue
-
setValue
Set the value of the named field.- Specified by:
setValuein interfaceEncodable- Overrides:
setValuein classBaseEncodable- Parameters:
name- The name of the field to set.value- The value of the field.len- The number of values in the array.
-
clone
Create and return a copy of this object.- Specified by:
clonein interfaceEncodable- Overrides:
clonein classBaseEncodable- Parameters:
full- true if the clone should contain a copy of the complete contents of this node and it's children, false returns a new instance of this node type.- Returns:
- a copy of this.
-
setFillProperties
Set the FillProperties node wrapper- Parameters:
fillProperties- The FillProperties node wrapper
-
getFillProperties
Get the FillProperties node wrapper- Returns:
- The FillProperties node wrapper
-
setLineProperties
Set the LineProperties node wrapper- Parameters:
lineProperties- The LineProperties node wrapper
-
getLineProperties
Get the LineProperties node wrapper- Returns:
- The LineProperties node wrapper
-
setMaterial
Set the Material node wrapper- Parameters:
material- The Material node wrapper
-
getMaterial
-
setTexture
Set the Texture node wrapper- Parameters:
texture- The Texture node wrapper
-
getTexture
-
setTextureTransform
Set the TextureTransform node wrapper- Parameters:
textureTransform- The TextureTransform node wrapper
-
getTextureTransform
Get the TextureTransform node wrapper- Returns:
- The TextureTransform node wrapper
-
deepEquals
Compares this appearance to another and checks if all fields are the same and that all children fields are the same.- Specified by:
deepEqualsin interfaceEncodable- Overrides:
deepEqualsin classBaseEncodable- Returns:
-