de.jaret.util.ui.timebars.swt.renderer
Interface TitleRenderer

All Known Implementing Classes:
DefaultTitleRenderer

public interface TitleRenderer

Interface for a renderer simply rendering the title area of the time bar viewer.

Version:
$Id: TitleRenderer.java 800 2008-12-27 22:27:33Z kliem $
Author:
Peter Kliem

Method Summary
 TitleRenderer createPrintRenderer(org.eclipse.swt.printing.Printer printer)
          Create a similar renderer for printing.
 void dispose()
          Dispose whatever there is.
 void draw(org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle drawingArea, TimeBarViewerDelegate delegate, java.lang.String title, boolean printing)
          Daw the title.
 

Method Detail

draw

void draw(org.eclipse.swt.graphics.GC gc,
          org.eclipse.swt.graphics.Rectangle drawingArea,
          TimeBarViewerDelegate delegate,
          java.lang.String title,
          boolean printing)
Daw the title.

Parameters:
gc - GC
drawingArea - area to draw in
delegate - asking delegate
title - title to draw
printing - true if this is a printing operation

createPrintRenderer

TitleRenderer createPrintRenderer(org.eclipse.swt.printing.Printer printer)
Create a similar renderer for printing. The creatin should copy settings made to the producing renderer.

Parameters:
printer - Printer device
Returns:
a configured renderer for printing.

dispose

void dispose()
Dispose whatever there is.



Copyright © 2012. All Rights Reserved.