it.andynaz.irex.dr1000.scribble
Class Page

java.lang.Object
  extended by it.andynaz.irex.dr1000.scribble.Page

public class Page
extends Object

Represent a page of scribbles. The scribbles are organized as a list of Stroke objects.

Version:
2013-01-04
Author:
andynaz

Field Summary
private  List<Stroke> lStroke
           
 
Constructor Summary
Page()
          Creates a new Page object.
 
Method Summary
 void addStroke(Stroke s)
          Add a stroke.
 void drawStrokes(com.lowagie.text.pdf.PdfContentByte cb, float xAdjust, float yAdjust)
          Draw all the strokes of this page.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lStroke

private List<Stroke> lStroke
Constructor Detail

Page

public Page()
Creates a new Page object.

Method Detail

addStroke

public void addStroke(Stroke s)
Add a stroke.

Parameters:
s - the stroke to add

drawStrokes

public void drawStrokes(com.lowagie.text.pdf.PdfContentByte cb,
                        float xAdjust,
                        float yAdjust)
Draw all the strokes of this page.

Parameters:
cb - the content of the PDF
xAdjust - the parameter to adjust the 'x' coordinates of the strokes
yAdjust - the parameter to adjust the 'y' coordinates of the strokes


(c) 2013 andynaz - http://andynaz.altervista.org