Java Doc for TransparencyOrderedGroup.java in  » 6.0-JDK-Modules » java-3d » org » jdesktop » j3d » utils » scenegraph » transparency » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » java 3d » org.jdesktop.j3d.utils.scenegraph.transparency 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.media.j3d.Node
   javax.media.j3d.Group
      javax.media.j3d.TransformGroup
         org.jdesktop.j3d.utils.scenegraph.transparency.TransparencyOrderedGroup

TransparencyOrderedGroup
public class TransparencyOrderedGroup extends javax.media.j3d.TransformGroup (Code)
Provides the user control over the rendering order of transparent objects in the subgraphs of this Group.
Transparent shapes in the 1st child of this group will be rendered before (ie behind) transparent shapes in the 2nd child and so on.
Transparent shapes in the same child will be ordered using the standard test of distance to view.
TransparencyOrderedGroups can not be included under a SharedGroup. If they are a RuntimeException will be thrown when the graph is made live.
Even though this class is a subclass of TransformGroup it should be treated as a Group. The subclassing TransformGroup is an implementation detail, all of the TransformGroup specific methods will throw RuntimeExceptions.
author:
   paulby



Constructor Summary
public  TransparencyOrderedGroup()
    

Method Summary
public  voidaddChild(Node child)
     Appends the specified child node to this group node's list of children.

If the current child index order array is non-null, the array is increased in size by one element, and a new element containing the index of the new child is added to the end of the array.

public  voidaddChild(Node child, int[] childIndexOrder)
     Appends the specified child node to this group node's list of children, and sets the child index order array to the specified array.
public  int[]getChildIndexOrder()
     Retrieves the current childIndexOrder array.
 intgetRenderingOrderForChild(int childIndex)
    
public  voidgetTransform(Transform3D t)
    
public  voidinsertChild(Node child, int index)
     Inserts the specified child node in this group node's list of children at the specified index. This method is only supported when the child index order array is null.
Parameters:
  child - the new child
Parameters:
  index - at which location to insert.
public  voidremoveChild(Node child)
     Removes the specified child node from this group node's list of children. If the specified object is not in the list, the list is not modified.

If the current child index order array is non-null, the element containing the removed child's index will be removed from the child index order array, and the array will be reduced in size by one element.

public  voidremoveChild(int index)
     Removes the child node at the specified index from this group node's list of children.

If the current child index order array is non-null, the element containing the removed child's index will be removed from the child index order array, and the array will be reduced in size by one element.

public  voidsetChild(Node child, int index)
     Replaces the node at the specified index with the child node provided. This method is only supported when the child index order array is null.
Parameters:
  child - the new child
Parameters:
  index - of node to replace.
public  voidsetChildIndexOrder(int[] childIndexOrder)
     Sets the childIndexOrder array.
public  voidsetTransform(Transform3D t)
    
 voidverifyChildIndexOrderArray(int[] cIOArr, int plus)
    


Constructor Detail
TransparencyOrderedGroup
public TransparencyOrderedGroup()(Code)
Creates a new instance of TransparencyOrderedGroup




Method Detail
addChild
public void addChild(Node child)(Code)
Appends the specified child node to this group node's list of children.

If the current child index order array is non-null, the array is increased in size by one element, and a new element containing the index of the new child is added to the end of the array. Thus, this new child will be rendered last.
Parameters:
  child - the child to add to this node's list of children
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this group node is part of live or compiled scene graph
exception:
  RestrictedAccessException - if this group node is partof liveor compiled scene graph and the child node being added is nota BranchGroup node
exception:
  MultipleParentException - if child has alreadybeen added as a child of another group node.




addChild
public void addChild(Node child, int[] childIndexOrder)(Code)
Appends the specified child node to this group node's list of children, and sets the child index order array to the specified array. If the specified array is null, this node's childIndexOrder array is set to null. Its children will then be rendered in increasing index order. If the specified array is not null, the entire array is copied to this node's childIndexOrder array. In this case, the length of the array must be equal to the number of children in this group after the new child has been added, and every entry in the array must have a unique value between 0 and numChildren-1 (i.e., there must be no duplicate values and no missing indices).
Parameters:
  child - the child to add to this node's list of children
Parameters:
  childIndexOrder - the array that is copied into thisnode's child index order array; this can be null
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this group node is part of live or compiled scene graph
exception:
  RestrictedAccessException - if this group node is partof liveor compiled scene graph and the child node being added is nota BranchGroup node
exception:
  MultipleParentException - if child has alreadybeen added as a child of another group node.
exception:
  IllegalArgumentException - if the specified array isnon-null and any of the following are true:
  • childIndexOrder.length != numChildren;
  • childIndexOrder[i] < 0,for i in [0, numChildren-1];
  • childIndexOrder[i] >= numChildren,for i in [0, numChildren-1];
  • childIndexOrder[i] ==childIndexOrder[j],for i,j in [0, numChildren-1],i != j;



getChildIndexOrder
public int[] getChildIndexOrder()(Code)
Retrieves the current childIndexOrder array. a copy of this node's childIndexOrder array; thiscan be null.



getRenderingOrderForChild
int getRenderingOrderForChild(int childIndex)(Code)
Given the index of the child return the rendering order for that child



getTransform
public void getTransform(Transform3D t)(Code)
TransparencyOrderedGroup should not be used as a TransformGroup, this method will always throw a RuntimeException



insertChild
public void insertChild(Node child, int index)(Code)
Inserts the specified child node in this group node's list of children at the specified index. This method is only supported when the child index order array is null.
Parameters:
  child - the new child
Parameters:
  index - at which location to insert. The indexmust be a valuegreater than or equal to 0 and less than or equal tonumChildren().
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this group node is part of live or compiled scene graph
exception:
  RestrictedAccessException - if this group node is part ofliveor compiled scene graph and the child node being inserted is nota BranchGroup node
exception:
  MultipleParentException - if child has alreadybeen added as a child of another group node.
exception:
  IndexOutOfBoundsException - if index is invalid.
exception:
  IllegalStateException - if the childIndexOrder array isnot null.



removeChild
public void removeChild(Node child)(Code)
Removes the specified child node from this group node's list of children. If the specified object is not in the list, the list is not modified.

If the current child index order array is non-null, the element containing the removed child's index will be removed from the child index order array, and the array will be reduced in size by one element. If the child removed was not the last child in the Group, the values of the child index order array will be updated to reflect the indices that were renumbered. More formally, each child whose index in the Group node was greater than the removed element (before removal) will have its index decremented by one.
Parameters:
  child - the child node to be removed.
exception:
  CapabilityNotSetException - if appropriate capability isnot set and this object is part of live or compiled scene graph
exception:
  RestrictedAccessException - if this group node is part oflive or compiled scene graph and the child node being removed is nota BranchGroup node




removeChild
public void removeChild(int index)(Code)
Removes the child node at the specified index from this group node's list of children.

If the current child index order array is non-null, the element containing the removed child's index will be removed from the child index order array, and the array will be reduced in size by one element. If the child removed was not the last child in the Group, the values of the child index order array will be updated to reflect the indices that were renumbered. More formally, each child whose index in the Group node was greater than the removed element (before removal) will have its index decremented by one.
Parameters:
  index - which child to remove. The indexmust be a valuegreater than or equal to 0 and less than numChildren().
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this group node is part of live or compiled scene graph
exception:
  RestrictedAccessException - if this group node is part oflive or compiled scene graph and the child node being removed is nota BranchGroup node
exception:
  IndexOutOfBoundsException - if index is invalid.




setChild
public void setChild(Node child, int index)(Code)
Replaces the node at the specified index with the child node provided. This method is only supported when the child index order array is null.
Parameters:
  child - the new child
Parameters:
  index - of node to replace. The indexmust be a valuegreater than or equal to 0 and less than or equal tonumChildren().
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this group node is part of live or compiled scene graph
exception:
  RestrictedAccessException - if this group node is part ofliveor compiled scene graph and the child node being inserted is nota BranchGroup node
exception:
  MultipleParentException - if child has alreadybeen added as a child of another group node.
exception:
  IndexOutOfBoundsException - if index is invalid.
exception:
  IllegalStateException - if the childIndexOrder array isnot null.



setChildIndexOrder
public void setChildIndexOrder(int[] childIndexOrder)(Code)
Sets the childIndexOrder array. If the specified array is null, this node's childIndexOrder array is set to null. Its children will then be rendered in increasing index order. If the specified array is not null, the entire array is copied to this node's childIndexOrder array. In this case, the length of the array must be equal to the number of children in this group, and every entry in the array must have a unique value between 0 and numChildren-1 (i.e., there must be no duplicate values and no missing indices).
Parameters:
  childIndexOrder - the array that is copied into thisnode's child index order array; this can be null
exception:
  IllegalArgumentException - if the specified array isnon-null and any of the following are true:
  • childIndexOrder.length != numChildren;
  • childIndexOrder[i] < 0,for i in [0, numChildren-1];
  • childIndexOrder[i] >= numChildren,for i in [0, numChildren-1];
  • childIndexOrder[i] ==childIndexOrder[j],for i,j in [0, numChildren-1],i != j;



setTransform
public void setTransform(Transform3D t)(Code)
TransparencyOrderedGroup should not be used as a TransformGroup, this method will always throw a RuntimeException



verifyChildIndexOrderArray
void verifyChildIndexOrderArray(int[] cIOArr, int plus)(Code)



Fields inherited from javax.media.j3d.TransformGroup
final public static int ALLOW_TRANSFORM_READ(Code)(Java Doc)
final public static int ALLOW_TRANSFORM_WRITE(Code)(Java Doc)

Methods inherited from javax.media.j3d.TransformGroup
public Node cloneNode(boolean forceDuplicate)(Code)(Java Doc)
public void getTransform(Transform3D t1)(Code)(Java Doc)
public void setTransform(Transform3D t1)(Code)(Java Doc)

Fields inherited from javax.media.j3d.Group
final public static int ALLOW_CHILDREN_EXTEND(Code)(Java Doc)
final public static int ALLOW_CHILDREN_READ(Code)(Java Doc)
final public static int ALLOW_CHILDREN_WRITE(Code)(Java Doc)
final public static int ALLOW_COLLISION_BOUNDS_READ(Code)(Java Doc)
final public static int ALLOW_COLLISION_BOUNDS_WRITE(Code)(Java Doc)

Methods inherited from javax.media.j3d.Group
public void addChild(Node child)(Code)(Java Doc)
public Node cloneNode(boolean forceDuplicate)(Code)(Java Doc)
public Enumeration getAllChildren()(Code)(Java Doc)
public boolean getAlternateCollisionTarget()(Code)(Java Doc)
public Node getChild(int index)(Code)(Java Doc)
public Bounds getCollisionBounds()(Code)(Java Doc)
public int indexOfChild(Node child)(Code)(Java Doc)
public void insertChild(Node child, int index)(Code)(Java Doc)
public void moveTo(BranchGroup branchGroup)(Code)(Java Doc)
public int numChildren()(Code)(Java Doc)
public void removeAllChildren()(Code)(Java Doc)
public void removeChild(int index)(Code)(Java Doc)
public void removeChild(Node child)(Code)(Java Doc)
public void setAlternateCollisionTarget(boolean target)(Code)(Java Doc)
public void setChild(Node child, int index)(Code)(Java Doc)
public void setCollisionBounds(Bounds bounds)(Code)(Java Doc)

Fields inherited from javax.media.j3d.Node
final public static int ALLOW_AUTO_COMPUTE_BOUNDS_READ(Code)(Java Doc)
final public static int ALLOW_AUTO_COMPUTE_BOUNDS_WRITE(Code)(Java Doc)
final public static int ALLOW_BOUNDS_READ(Code)(Java Doc)
final public static int ALLOW_BOUNDS_WRITE(Code)(Java Doc)
final public static int ALLOW_COLLIDABLE_READ(Code)(Java Doc)
final public static int ALLOW_COLLIDABLE_WRITE(Code)(Java Doc)
final public static int ALLOW_LOCALE_READ(Code)(Java Doc)
final public static int ALLOW_LOCAL_TO_VWORLD_READ(Code)(Java Doc)
final public static int ALLOW_PARENT_READ(Code)(Java Doc)
final public static int ALLOW_PICKABLE_READ(Code)(Java Doc)
final public static int ALLOW_PICKABLE_WRITE(Code)(Java Doc)
final public static int ENABLE_COLLISION_REPORTING(Code)(Java Doc)
final public static int ENABLE_PICK_REPORTING(Code)(Java Doc)

Methods inherited from javax.media.j3d.Node
public Node cloneNode(boolean forceDuplicate)(Code)(Java Doc)
public Node cloneTree()(Code)(Java Doc)
public Node cloneTree(boolean forceDuplicate)(Code)(Java Doc)
public Node cloneTree(boolean forceDuplicate, boolean allowDanglingReferences)(Code)(Java Doc)
public Node cloneTree(NodeReferenceTable referenceTable)(Code)(Java Doc)
public Node cloneTree(NodeReferenceTable referenceTable, boolean forceDuplicate)(Code)(Java Doc)
public Node cloneTree(NodeReferenceTable referenceTable, boolean forceDuplicate, boolean allowDanglingReferences)(Code)(Java Doc)
public void duplicateNode(Node originalNode, boolean forceDuplicate)(Code)(Java Doc)
public Bounds getBounds()(Code)(Java Doc)
public boolean getBoundsAutoCompute()(Code)(Java Doc)
public boolean getCollidable()(Code)(Java Doc)
public void getLocalToVworld(Transform3D t)(Code)(Java Doc)
public void getLocalToVworld(SceneGraphPath path, Transform3D t)(Code)(Java Doc)
public Locale getLocale()(Code)(Java Doc)
public Node getParent()(Code)(Java Doc)
public boolean getPickable()(Code)(Java Doc)
public void setBounds(Bounds bounds)(Code)(Java Doc)
public void setBoundsAutoCompute(boolean autoCompute)(Code)(Java Doc)
public void setCollidable(boolean collidable)(Code)(Java Doc)
public void setPickable(boolean pickable)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.