net.jbeans.j3d.modeler.scene.glyph
Class GSphere

java.lang.Object
  extended bynet.jbeans.j3d.modeler.scene.glyph.GSphere
All Implemented Interfaces:
GlyphSource, java.io.Serializable

public class GSphere
extends java.lang.Object
implements GlyphSource, java.io.Serializable

GSphere is a glyph source which generatees sphere geometry object.

Version:
$Revision: 1.3 $
Author:
Masahiro Takatsuka (masa@jbeans.net)
See Also:
GlyphSource, Serializable, Serialized Form

Constructor Summary
GSphere()
           
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener l)
           
 javax.media.j3d.Appearance getAppearanceOfNode(javax.media.j3d.Node node)
          Returns javax.media.3d.Appearance object.
 int getDivisions()
           
 int[] getEssentials()
           
 javax.media.j3d.Node getNode()
          Returns javax.media.3d.Shape3D object.
 float getRadius()
           
 java.lang.reflect.Method[] getSetMethods()
          Returns an array containing methods to set data to construct a glyph source.
 void removePropertyChangeListener(java.beans.PropertyChangeListener l)
           
 void setAppearanceOfNode(javax.media.j3d.Node node, javax.media.j3d.Appearance appearance)
          Updates the specified Appearance object.
 void setDivisions(int div)
           
 void setRadius(float r)
           
 javax.media.j3d.Node updateNode(javax.media.j3d.Node node)
          Updates the specified Shape3D object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GSphere

public GSphere()
Method Detail

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener l)

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener l)

setRadius

public void setRadius(float r)

getRadius

public float getRadius()

setDivisions

public void setDivisions(int div)

getDivisions

public int getDivisions()

getNode

public javax.media.j3d.Node getNode()
Returns javax.media.3d.Shape3D object.

Specified by:
getNode in interface GlyphSource

updateNode

public javax.media.j3d.Node updateNode(javax.media.j3d.Node node)
Updates the specified Shape3D object.

Specified by:
updateNode in interface GlyphSource

getSetMethods

public java.lang.reflect.Method[] getSetMethods()
Returns an array containing methods to set data to construct a glyph source. setRadius, setDivisions

Specified by:
getSetMethods in interface GlyphSource

getEssentials

public int[] getEssentials()
Specified by:
getEssentials in interface GlyphSource

getAppearanceOfNode

public javax.media.j3d.Appearance getAppearanceOfNode(javax.media.j3d.Node node)
Returns javax.media.3d.Appearance object.

Specified by:
getAppearanceOfNode in interface GlyphSource

setAppearanceOfNode

public void setAppearanceOfNode(javax.media.j3d.Node node,
                                javax.media.j3d.Appearance appearance)
Updates the specified Appearance object.

Specified by:
setAppearanceOfNode in interface GlyphSource


Copyright © 1995-2004 net.jbeans. All Rights Reserved.