iRex DR1000 Manager v0.5.2

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. A page is made of various strokes.

To create a Page object from a blob, use the Parser.build(byte[]) method.

Version:
2013/09/22
Author:
andynaz

Field Summary
private  List<Stroke> strokes
          List of strokes.
 
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, using the color in the ColorMgr class.
 void drawStrokes(com.lowagie.text.pdf.PdfContentByte cb, float xAdjust, float yAdjust, Color c)
          Draw all the strokes of this page.
 List<Stroke> getStrokes()
          Returns the list of strokes in this page.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

strokes

private List<Stroke> strokes
List of strokes. Contains all the strokes in the page.

Constructor Detail

Page

public Page()
Creates a new Page object.

Method Detail

addStroke

public void addStroke(Stroke s)
Add a stroke. The stroke is added only if it is not null.

Parameters:
s - the stroke to be added

getStrokes

public List<Stroke> getStrokes()
Returns the list of strokes in this page.

Returns:
the list of strokes in this page

drawStrokes

public void drawStrokes(com.lowagie.text.pdf.PdfContentByte cb,
                        float xAdjust,
                        float yAdjust,
                        Color c)
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 - color of the strokes

drawStrokes

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

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
See Also:
drawStrokes(PdfContentByte, float, float, Color)

iRex DR1000 Manager v0.5.2

© 2013 andynaz - http://andynaz.altervista.org