java.lang.Object
com.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
|
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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)
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