|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectCustomWidget
artofillusion.ui.ToolPalette
public class ToolPalette
A ToolPalette is drawn as a grid of images, one for each EditingTool that is added to the palette. It allows a single tool to be selected at any time.
Constructor Summary | |
---|---|
ToolPalette(int w,
int h)
Create a new ToolPalette. |
Method Summary | |
---|---|
void |
addTool(EditingTool t)
Add a new tool. |
void |
addTool(int position,
EditingTool t)
Add a new tool. |
EditingTool |
getDefaultTool()
Get the default tool. |
java.awt.Dimension |
getMinimumSize()
|
int |
getNumTools()
Get the number of tools in palette. |
java.awt.Dimension |
getPreferredSize()
|
EditingTool |
getSelectedTool()
Return the currently selected tool. |
int |
getSelection()
Return the number of the currently selected tool. |
EditingTool |
getTool(int index)
Get a tool by index. |
void |
keyPressed(KeyPressedEvent ev)
Allow the user to change tools with the keyboard. |
void |
selectTool(EditingTool which)
Change the currently selected tool. |
void |
setDefaultTool(EditingTool t)
Set the default tool. |
void |
toggleDefaultTool()
Calling this method will toggle between the default tool and the last tool which was explicitly selected. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ToolPalette(int w, int h)
Method Detail |
---|
public void addTool(EditingTool t)
public void addTool(int position, EditingTool t)
public int getNumTools()
public EditingTool getTool(int index)
public EditingTool getDefaultTool()
public void setDefaultTool(EditingTool t)
public int getSelection()
public EditingTool getSelectedTool()
public java.awt.Dimension getPreferredSize()
public java.awt.Dimension getMinimumSize()
public void selectTool(EditingTool which)
public void keyPressed(KeyPressedEvent ev)
public void toggleDefaultTool()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |