org.jcurl.demo.tactics
Class JCurlShotPlanner

Package class diagram package JCurlShotPlanner
java.lang.Object
  extended by org.jdesktop.application.AbstractBean
      extended by org.jdesktop.application.Application
          extended by org.jdesktop.application.SingleFrameApplication
              extended by org.jcurl.demo.tactics.JCurlShotPlanner
All Implemented Interfaces:
EventListener, UndoableEditListener

public class JCurlShotPlanner
extends SingleFrameApplication
implements UndoableEditListener

Makes heavy use of the Swing Application Framework.

Version:
$Id$
Author:
M. Rohrmoser

Nested Class Summary
(package private) static class JCurlShotPlanner.GuiUtil
           
(package private) static class JCurlShotPlanner.WaitCursorTask<T,V>
           
static class JCurlShotPlanner.ZoomHelper
           
 
Nested classes/interfaces inherited from class org.jdesktop.application.Application
Application.ExitListener
 
Method Summary
 boolean askDiscardUnsaved(Action action)
           
 boolean askOverwrite(File f)
           
 void closeAboutBox()
           
 void editHome()
          Edit Menu Action
 void editOut()
          Edit Menu Action
 void editPreferences()
          Edit Menu Action
 void editProperties()
          Edit Menu Action
 void editRedo()
          Edit Menu Action
 void editUndo()
          Edit Menu Action
 Task<Void,Void> fileExportPng()
          Render the current view into a PNG image (File Menu Action).
 Task<Void,Void> fileExportSvg()
          Render the current view into a SVG image (File Menu Action).
 void fileHammy()
          File Menu Action
 void fileNewDoc()
          File Menu Action
 void fileOpen()
          File Menu Action
 void fileOpenURL()
          File Menu Action
 void fileReset()
          File Menu Action
 void fileSave()
          File Menu Action
 void fileSaveAs()
          File Menu Action
 void fileSaveCopyAs()
          File Menu Action
 void helpDumpProperties()
           
protected  void initialize(String[] as)
          Setting the internal field document directly (bypassing setDocument(URL)) is used to deplay the document loading until ready().
 boolean isAlwaysFalse()
           
 boolean isCanRedo()
           
 boolean isCanUndo()
           
 boolean isModified()
           
 boolean isRenderSvgAvailable()
           
static void main(String[] args)
           
protected  void ready()
           
 void setModified(boolean modified)
           
 void showAboutBox()
          Show the about box dialog.
protected  void startup()
           
 void undoableEditHappened(UndoableEditEvent e)
           
 void view12Foot()
          View Menu Action
 void viewActive()
          View Menu Action
 void viewComplete()
          View Menu Action
 void viewHouse()
          View Menu Action
 void viewPanEast()
          View Menu Action
 void viewPanNorth()
          View Menu Action
 void viewPanSouth()
          View Menu Action
 void viewPanWest()
          View Menu Action
 void viewZoomIn()
          View Menu Action
 void viewZoomOut()
          View Menu Action
 
Methods inherited from class org.jdesktop.application.SingleFrameApplication
configureWindow, getMainFrame, getMainView, setMainFrame, show, show, show, show, shutdown
 
Methods inherited from class org.jdesktop.application.Application
addExitListener, end, exit, exit, getContext, getExitListeners, getInstance, getInstance, hide, launch, quit, removeExitListener
 
Methods inherited from class org.jdesktop.application.AbstractBean
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

public static void main(String[] args)

askDiscardUnsaved

public boolean askDiscardUnsaved(Action action)

askOverwrite

public boolean askOverwrite(File f)

closeAboutBox

@Action
public void closeAboutBox()

editHome

@Action
public void editHome()
Edit Menu Action


editOut

@Action
public void editOut()
Edit Menu Action


editPreferences

@Action(enabledProperty="alwaysFalse")
public void editPreferences()
Edit Menu Action


editProperties

@Action(enabledProperty="alwaysFalse")
public void editProperties()
Edit Menu Action


editRedo

@Action(enabledProperty="canRedo")
public void editRedo()
Edit Menu Action


editUndo

@Action(enabledProperty="canUndo")
public void editUndo()
Edit Menu Action


fileExportPng

@Action(block=ACTION)
public Task<Void,Void> fileExportPng()
Render the current view into a PNG image (File Menu Action).

See Also:
ImageIO.write(java.awt.image.RenderedImage, String, File)

fileExportSvg

@Action(enabledProperty="renderSvgAvailable",
        block=ACTION)
public Task<Void,Void> fileExportSvg()
Render the current view into a SVG image (File Menu Action).

See Also:
BatikWrapper.renderSvg(Container, java.io.OutputStream)

fileHammy

@Action(block=APPLICATION)
public void fileHammy()
File Menu Action


fileNewDoc

@Action
public void fileNewDoc()
File Menu Action


fileOpen

@Action
public void fileOpen()
File Menu Action


fileOpenURL

@Action
public void fileOpenURL()
File Menu Action


fileReset

@Action(enabledProperty="modified")
public void fileReset()
               throws IOException
File Menu Action

Throws:
IOException

fileSave

@Action(enabledProperty="modified")
public void fileSave()
File Menu Action


fileSaveAs

@Action
public void fileSaveAs()
File Menu Action


fileSaveCopyAs

@Action
public void fileSaveCopyAs()
File Menu Action


helpDumpProperties

@Action
public void helpDumpProperties()

initialize

protected void initialize(String[] as)
Setting the internal field document directly (bypassing setDocument(URL)) is used to deplay the document loading until ready().

Overrides:
initialize in class Application

isAlwaysFalse

public boolean isAlwaysFalse()

isCanRedo

public boolean isCanRedo()

isCanUndo

public boolean isCanUndo()

isModified

public boolean isModified()

isRenderSvgAvailable

public boolean isRenderSvgAvailable()

ready

protected void ready()
Overrides:
ready in class Application

setModified

public void setModified(boolean modified)

showAboutBox

@Action(block=COMPONENT)
public void showAboutBox()
Show the about box dialog.


startup

protected void startup()
Specified by:
startup in class Application

undoableEditHappened

public void undoableEditHappened(UndoableEditEvent e)
Specified by:
undoableEditHappened in interface UndoableEditListener

view12Foot

@Action
public void view12Foot()
View Menu Action


viewActive

@Action
public void viewActive()
View Menu Action


viewComplete

@Action
public void viewComplete()
View Menu Action


viewHouse

@Action
public void viewHouse()
View Menu Action


viewPanEast

@Action
public void viewPanEast()
View Menu Action


viewPanNorth

@Action
public void viewPanNorth()
View Menu Action


viewPanSouth

@Action
public void viewPanSouth()
View Menu Action


viewPanWest

@Action
public void viewPanWest()
View Menu Action


viewZoomIn

@Action
public void viewZoomIn()
View Menu Action


viewZoomOut

@Action
public void viewZoomOut()
View Menu Action



Copyright © 2005-2009 JCurl.mro.name. All Rights Reserved.