Interface CairoWrap

All Known Implementing Classes:
CairoApp, CairoApplet

public abstract interface CairoWrap
extends javax.swing.RootPaneContainer

Wrapper interface for Cairo. This interface allows Cairo to run both an app and applet; differences between the two versions needs to be here.

Author:
Mike Jahr
See Also:
Cairo

Method Summary
 javax.swing.JMenu createFileMenu(Cairo c)
          Creates a file menu specific to the app- or applet-version of Cairo.
 Cairo getCairo()
          Returns the associated Cairo object.
 int getHeight()
          Returns the current height.
 java.awt.Dimension getSize()
          Returns the current size.
 int getWidth()
          Returns the current width.
 
Methods inherited from interface javax.swing.RootPaneContainer
getContentPane, getGlassPane, getLayeredPane, getRootPane, setContentPane, setGlassPane, setLayeredPane
 

Method Detail

createFileMenu

public javax.swing.JMenu createFileMenu(Cairo c)
Creates a file menu specific to the app- or applet-version of Cairo. Currently, the file menu is the only difference between the two versions.
See Also:
Cairo.createFileMenu(Cairo), CairoApplet.createFileMenu(Cairo), FileMenuApp, FileMenuApplet

getCairo

public Cairo getCairo()
Returns the associated Cairo object.
See Also:
Cairo.getCairo(), CairoApplet.getCairo()

getWidth

public int getWidth()
Returns the current width.

getHeight

public int getHeight()
Returns the current height.

getSize

public java.awt.Dimension getSize()
Returns the current size.