com.webcodepro.applecommander.ui.swt
Class DiskMapTab

java.lang.Object
  extended by com.webcodepro.applecommander.ui.swt.DiskMapTab

public class DiskMapTab
extends java.lang.Object

Build the Disk Map tab for the Disk Window.

Date created: Nov 17, 2002 9:27:44 PM

Author:
Rob Greene

Constructor Summary
DiskMapTab(org.eclipse.swt.custom.CTabFolder tabFolder, FormattedDisk disk)
          Construct the DiskMapTab.
 
Method Summary
protected  void createDiskMapTab(org.eclipse.swt.custom.CTabFolder tabFolder)
          Create the DISK MAP tab.
 void dispose()
          Dispose of resources.
protected  void drawBox(org.eclipse.swt.graphics.Rectangle box, org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Color fill, org.eclipse.swt.graphics.Color outline, org.eclipse.swt.graphics.Color shadow)
          Draw a box on the screen.
protected  void paintHorizontalRuler(org.eclipse.swt.events.PaintEvent event)
          Handle paint requests for horizontal ruler.
protected  void paintLegend(org.eclipse.swt.events.PaintEvent event)
          Handle paint requests for legend.
protected  void paintMap(org.eclipse.swt.events.PaintEvent event)
          Handle paint requests for disk map.
protected  void paintVerticalRuler(org.eclipse.swt.events.PaintEvent event)
          Handle paint requests for vertical ruler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiskMapTab

public DiskMapTab(org.eclipse.swt.custom.CTabFolder tabFolder,
                  FormattedDisk disk)
Construct the DiskMapTab.

Method Detail

createDiskMapTab

protected void createDiskMapTab(org.eclipse.swt.custom.CTabFolder tabFolder)
Create the DISK MAP tab.


dispose

public void dispose()
Dispose of resources.


paintHorizontalRuler

protected void paintHorizontalRuler(org.eclipse.swt.events.PaintEvent event)
Handle paint requests for horizontal ruler.


paintVerticalRuler

protected void paintVerticalRuler(org.eclipse.swt.events.PaintEvent event)
Handle paint requests for vertical ruler.


paintMap

protected void paintMap(org.eclipse.swt.events.PaintEvent event)
Handle paint requests for disk map.


paintLegend

protected void paintLegend(org.eclipse.swt.events.PaintEvent event)
Handle paint requests for legend.


drawBox

protected void drawBox(org.eclipse.swt.graphics.Rectangle box,
                       org.eclipse.swt.graphics.GC gc,
                       org.eclipse.swt.graphics.Color fill,
                       org.eclipse.swt.graphics.Color outline,
                       org.eclipse.swt.graphics.Color shadow)
Draw a box on the screen. The shadowed box is only drawn if there is enough space within the box; otherwise, the box is just filled in with the fill color. Additionally, drawBox ensures that a square is drawn.