ice.storm
Class LPilot

java.lang.Object
  extended byice.storm.Pilot
      extended byice.storm.LPilot

public abstract class LPilot
extends Pilot

A 'lightweight' pilot must extend this class. The main feature of such a pilot is its ability to paint iteself, so it does not create a GUI component and thus is compatible with any component toolkit and can be easily embedded within other pilots.

Author:
Alexey Goloshubin, ICEsoft

Constructor Summary
LPilot()
           
 
Method Summary
abstract  int getHeight()
          Get the height of the painting area
abstract  int getWidth()
          Get the width of the painting area that this pilot needs
abstract  void paint(Graphics g)
          Tell the pilot to paint its content.
 void setSize(int w, int h)
          Notify the pilot that the dimensions of its painting area is going to be 'w' and 'h'.
 
Methods inherited from class ice.storm.Pilot
applySnapshot, beforeUnload, clear, createComponent, createPrinter, dispose, execDynamicMethodOnWindow, findOrCreateViewport, findOrCreateViewport, firePropertyChange, getAllPilotInstances, getDocPane, getDocumentObject, getDynamicValueOnWindow, getPilotViewport, getSnapshot, getStorm, getUrlMaster, getViewportContainer, getViewportId, getViewportProperty, gotoRef, init, isDetached, isStopRequested, modifiedByScript, onLoadingDone, onLowMemory, parse, parsingDone, refExists, refresh, refreshViewport, renderContent, resume, setDynamicValueOnWindow, setZoom, stopLoading, suspend, updateFrameList, viewportBecameActive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LPilot

public LPilot()
Method Detail

paint

public abstract void paint(Graphics g)
Tell the pilot to paint its content. Note that this can only work for 'lightweight' pilots.


getWidth

public abstract int getWidth()
Get the width of the painting area that this pilot needs


getHeight

public abstract int getHeight()
Get the height of the painting area


setSize

public void setSize(int w,
                    int h)
Notify the pilot that the dimensions of its painting area is going to be 'w' and 'h'.