FileDocCategorySizeDatePackage
PointAttributes_Info.javaAPI DocExample1383Fri Dec 10 12:55:42 GMT 1999com.tornadolabs.j3dtree

PointAttributes_Info.java

/*
//*****************************************************************************
/*
*	@(#) LineAttributes_Info.java
*
*	Project:		Java3dTree
*	Client:		Java 3D Community
*
*	Project Information:
*		dselman@tornadolabs.com
*		http://www.tornadolabs.com
*	
*	@author Daniel Selman: dselman@tornadolabs.com
*/
//*****************************************************************************

package com.tornadolabs.j3dtree;
import javax.media.j3d.*;

public class PointAttributes_Info extends ObjectInfo
{

	private static final int[] 		m_kCapabilityArray = 
												{
													PointAttributes.ALLOW_ANTIALIASING_READ,
													PointAttributes.ALLOW_SIZE_READ
												};

	public PointAttributes_Info()
	{
	}
	
	java.util.Enumeration getChildren( Object obj )
	{
		return super.getChildren( obj );
	}
	
	public int[] getCapabilityBits()
	{
		return createCompoundArray( m_kCapabilityArray, super.getCapabilityBits() );
	}
	
	public String getInfo( Object obj )
	{
		String szText = super.getInfo( obj );

		szText = insertSectionBreak( szText );
		szText += "Point Attributes\r\n";
		
		PointAttributes pointAttribs = (PointAttributes) obj;
				
		szText += "Antialiasing: " + pointAttribs.getPointAntialiasingEnable() + "\r\n";
		szText += "Size: " + pointAttribs.getPointSize() + "\r\n";

		return szText;
	}
}