Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.trapezium.chisel
Class ChiselDescriptor  view ChiselDescriptor download ChiselDescriptor.java

java.lang.Object
  extended bycom.trapezium.chisel.ChiselDescriptor
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class ChiselDescriptor
extends java.lang.Object
implements java.awt.event.ActionListener

Holds information pertaining to a chisel


Field Summary
static int ALLNODE_CHISEL
           
(package private)  java.lang.Object chisel
           
(package private)  int chiselType
           
(package private)  java.lang.String className
           
static int EXTERNPROTO_CHISEL
           
(package private) static java.util.Hashtable factoryTable
          The table of chisel prototypes: key is class name, value is chisel instance
static int FIELD_CHISEL
           
static int IndexedFaceSet_CHISEL
           
(package private)  java.lang.Object initialValue
           
static int Inline_CHISEL
           
static int NOTYPE_CHISEL
           
(package private)  int numberOptions
           
(package private)  java.awt.Component[] options
           
(package private)  java.lang.String shortDescription
           
(package private)  int specializedListener
           
static int UnEXTERNPROTO_CHISEL
           
static int UnInline_CHISEL
           
 
Constructor Summary
ChiselDescriptor(java.lang.String className, java.lang.String shortDescription, boolean initialValue)
           
ChiselDescriptor(java.lang.String className, java.lang.String shortDescription, boolean initialValue, int chiselType)
           
ChiselDescriptor(java.lang.String className, java.lang.String shortDescription, boolean initialValue, int chiselType, int specializedListener)
           
ChiselDescriptor(java.lang.String className, java.lang.String shortDescription, java.lang.Object initialValue, int chiselType, int specializedListener)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          ActionListener interface, sets option value in chisel prototypes
static Optimizer createChisel(java.lang.String name)
          Get a chisel from the prototype table
 int getChiselType()
           
 java.lang.String getClassName()
           
 java.lang.Object getInitialValue()
          Get the initial value of the chisel
 int getNumberOptions()
          Get the number of options available for the chisel, derived from chisel instance prototype
 java.awt.Component getOption(int offset)
           
 java.awt.Component getOptionEditor(int optionIndex, java.awt.event.ActionListener listener)
           
 OptionHolder getOptionHolder()
          Get the chisel, assuming it is an option holder (not used by optimizers)
 java.lang.String getShortDescription()
           
 int getSpecializedListener()
           
 java.lang.Object instantiate()
          Create a prototype for a chisel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

className

java.lang.String className

shortDescription

java.lang.String shortDescription

initialValue

java.lang.Object initialValue

chiselType

int chiselType

numberOptions

int numberOptions

specializedListener

int specializedListener

options

java.awt.Component[] options

chisel

java.lang.Object chisel

NOTYPE_CHISEL

public static final int NOTYPE_CHISEL
See Also:
Constant Field Values

FIELD_CHISEL

public static final int FIELD_CHISEL
See Also:
Constant Field Values

ALLNODE_CHISEL

public static final int ALLNODE_CHISEL
See Also:
Constant Field Values

IndexedFaceSet_CHISEL

public static final int IndexedFaceSet_CHISEL
See Also:
Constant Field Values

UnInline_CHISEL

public static final int UnInline_CHISEL
See Also:
Constant Field Values

Inline_CHISEL

public static final int Inline_CHISEL
See Also:
Constant Field Values

UnEXTERNPROTO_CHISEL

public static final int UnEXTERNPROTO_CHISEL
See Also:
Constant Field Values

EXTERNPROTO_CHISEL

public static final int EXTERNPROTO_CHISEL
See Also:
Constant Field Values

factoryTable

static java.util.Hashtable factoryTable
The table of chisel prototypes: key is class name, value is chisel instance

Constructor Detail

ChiselDescriptor

public ChiselDescriptor(java.lang.String className,
                        java.lang.String shortDescription,
                        boolean initialValue)

ChiselDescriptor

public ChiselDescriptor(java.lang.String className,
                        java.lang.String shortDescription,
                        boolean initialValue,
                        int chiselType)

ChiselDescriptor

public ChiselDescriptor(java.lang.String className,
                        java.lang.String shortDescription,
                        boolean initialValue,
                        int chiselType,
                        int specializedListener)

ChiselDescriptor

public ChiselDescriptor(java.lang.String className,
                        java.lang.String shortDescription,
                        java.lang.Object initialValue,
                        int chiselType,
                        int specializedListener)
Method Detail

createChisel

public static Optimizer createChisel(java.lang.String name)
Get a chisel from the prototype table


actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
ActionListener interface, sets option value in chisel prototypes

Specified by:
actionPerformed in interface java.awt.event.ActionListener

getOptionHolder

public OptionHolder getOptionHolder()
Get the chisel, assuming it is an option holder (not used by optimizers)


getInitialValue

public java.lang.Object getInitialValue()
Get the initial value of the chisel


getClassName

public java.lang.String getClassName()

getShortDescription

public java.lang.String getShortDescription()

getChiselType

public int getChiselType()

getSpecializedListener

public int getSpecializedListener()

getNumberOptions

public int getNumberOptions()
Get the number of options available for the chisel, derived from chisel instance prototype


getOptionEditor

public java.awt.Component getOptionEditor(int optionIndex,
                                          java.awt.event.ActionListener listener)

getOption

public java.awt.Component getOption(int offset)

instantiate

public java.lang.Object instantiate()
                             throws java.io.IOException,
                                    java.lang.ClassNotFoundException
Create a prototype for a chisel