ReportCat 1.1

li.netcat.print
Interface Painter

All Known Subinterfaces:
Drawer
All Known Implementing Classes:
FixSizePainter, LabelDrawer

public interface Painter

General interface to an object that has a size and that is able to paint itself on a Graphics at a specific position.

Author:
Arthur Marxer

Method Summary
 java.awt.Dimension getSize(java.awt.Graphics g)
          Returns the size of the Painter.
 void paint(java.awt.Graphics g, int x, int y)
          Paints the target on the given Graphics.
 

Method Detail

getSize

public java.awt.Dimension getSize(java.awt.Graphics g)
Returns the size of the Painter.

Parameters:
g - The relevant Graphics context.
Returns:
The size of the Painter.

paint

public void paint(java.awt.Graphics g,
                  int x,
                  int y)
Paints the target on the given Graphics.

Parameters:
g - The Graphics object that is used to paint.
x - The x coordinate of the upper left corner of the target.
y - The y coordinate of the upper left corner of the target.

ReportCat 1.1

Copyright © 2003 - 2005 NetCat Inc.. All rights reserved. Feedback

Print,Printing,Printer,Java,Java Print,SDK,Java Printing,Printing Java,Print Java,Library,Java Library,Print Library,Report,Reports,Java Report,Java Programming,Java Output,Layout,Page,API,Preview,Print Preview,Content,A4,Free,Output,Header,Footer,Download,Package,Jar,Evaluation, Print,Printing,Printer,Java,Java Print,SDK,Java Printing,Printing Java,Print Java,Library,Java Library,Print Library,Report,Reports,Java Report,Java Programming,Java Output,Layout,Page,API,Preview,Print Preview,Content,A4,Free,Output,Header,Footer,Download,Package,Jar,Evaluation, Print,Printing,Printer,Java,Java Print,SDK,Java Printing,Printing Java,Print Java,Library,Java Library,Print Library,Report,Reports,Java Report,Java Programming,Java Output,Layout,Page,API,Preview,Print Preview,Content,A4,Free,Output,Header,Footer,Download,Package,Jar,Evaluation