artofillusion.procedural
Class ProcedureEditor

java.lang.Object
  extended by buoy.event.EventSource
      extended by buoy.widget.Widget
          extended by buoy.widget.CustomWidget
              extended by artofillusion.procedural.ProcedureEditor

public class ProcedureEditor
extends buoy.widget.CustomWidget

This is the editor for editing procedures. It subclasses CustomWidget, but you should never add it to any Container. Instead, it will automatically create a BFrame and add itself to that.


Constructor Summary
ProcedureEditor(Procedure proc, ProcedureOwner owner, Scene scene)
           
 
Method Summary
 EditingWindow getEditingWindow()
          Get the editing window which owns the scene the procedure is part of.
 buoy.widget.BFrame getParentFrame()
          Get the editor's parent Frame.
 java.awt.Dimension getPreferredSize()
           
 java.awt.Rectangle getRectangle(java.awt.Point p1, java.awt.Point p2)
          Utility function to create a Rectangle from two Points.
 Scene getScene()
          Get the scene the procedure is part of.
 boolean isFocusTraversable()
          The canvas needs to be able to accept focus.
 void saveState(boolean redo)
          Record the current state of the procedure, so that it can be undone.
 void setEditingWindow(EditingWindow window)
          Set the editing window which owns the scene the procedure is part of.
 void updatePreview()
          Update the preview.
 
Methods inherited from class buoy.widget.CustomWidget
isOpaque, setMaximumSize, setMinimumSize, setOpaque, setPreferredSize
 
Methods inherited from class buoy.widget.Widget
addEventLink, dispatchEvent, getBackground, getBounds, getComponent, getCursor, getFont, getMaximumSize, getMinimumSize, getName, getParent, hasFocus, isEnabled, isFocusable, isVisible, repaint, requestFocus, setBackground, setCursor, setEnabled, setFocusable, setFont, setName, setVisible
 
Methods inherited from class buoy.event.EventSource
addEventLink, addEventLink, removeEventLink
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcedureEditor

public ProcedureEditor(Procedure proc,
                       ProcedureOwner owner,
                       Scene scene)
Method Detail

getParentFrame

public buoy.widget.BFrame getParentFrame()
Get the editor's parent Frame.


getScene

public Scene getScene()
Get the scene the procedure is part of.


setEditingWindow

public void setEditingWindow(EditingWindow window)
Set the editing window which owns the scene the procedure is part of.


getEditingWindow

public EditingWindow getEditingWindow()
Get the editing window which owns the scene the procedure is part of.


getPreferredSize

public java.awt.Dimension getPreferredSize()
Overrides:
getPreferredSize in class buoy.widget.Widget

saveState

public void saveState(boolean redo)
Record the current state of the procedure, so that it can be undone.


updatePreview

public void updatePreview()
Update the preview.


isFocusTraversable

public boolean isFocusTraversable()
The canvas needs to be able to accept focus.


getRectangle

public java.awt.Rectangle getRectangle(java.awt.Point p1,
                                       java.awt.Point p2)
Utility function to create a Rectangle from two Points.



Copyright © 1999-2008 by Peter Eastman.