Class JDrawEditorPanel

All Implemented Interfaces:
JDrawEditorListener, JDValueListener, ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class JDrawEditorPanel extends JPanel implements ActionListener, JDrawEditorListener, JDValueListener
A class to display the editor as a NetBeans plugin
See Also:
  • Constructor Details

  • Method Details

    • setEditor

      public void setEditor(JDrawEditor editor)
      Sets the editor of this EditorFrame.
      Parameters:
      editor - Editor object
    • setPlayer

      public void setPlayer(JDrawEditor editor)
      Sets the player of this EditorFrame. (for the play mode)
      Parameters:
      editor - Editor object
    • setLibraries

      public void setLibraries(String path)
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Specified by:
      actionPerformed in interface ActionListener
    • creationDone

      public void creationDone()
      Description copied from interface: JDrawEditorListener
      Called when the user end the creation mode
      Specified by:
      creationDone in interface JDrawEditorListener
    • selectionChanged

      public void selectionChanged()
      Description copied from interface: JDrawEditorListener
      Called when the selection change
      Specified by:
      selectionChanged in interface JDrawEditorListener
    • clipboardChanged

      public void clipboardChanged()
      Description copied from interface: JDrawEditorListener
      Called when the clipboard change , after a copy/cut
      Specified by:
      clipboardChanged in interface JDrawEditorListener
    • valueChanged

      public void valueChanged()
      Description copied from interface: JDrawEditorListener
      Called when the drawing currently edited change, also called after laoding a file.
      Specified by:
      valueChanged in interface JDrawEditorListener
    • sizeChanged

      public void sizeChanged()
      Description copied from interface: JDrawEditorListener
      Called when the size of the editor change, usualy after a zoom or a load. Note: If the editor is within a JScrollPane, a called to revalidate on this ScrollPane is needed.
      Specified by:
      sizeChanged in interface JDrawEditorListener
    • valueChanged

      public void valueChanged(JDObject src)
      Description copied from interface: JDValueListener
      Trigerred when the JDObject value change
      Specified by:
      valueChanged in interface JDValueListener
      Parameters:
      src - Source object
    • valueExceedBounds

      public void valueExceedBounds(JDObject src)
      Description copied from interface: JDValueListener
      Triggered when the JDObject value goes out of bounds and is reseted to its minimum value
      Specified by:
      valueExceedBounds in interface JDValueListener
      Parameters:
      src - Source object
    • onActivate

      public void onActivate()
    • main

      public static void main(String[] args)