net.sf.sdedit.multipage
Class MultipagePaintDevice

java.lang.Object
  extended by net.sf.sdedit.diagram.PaintDevice
      extended by net.sf.sdedit.multipage.MultipagePaintDevice
All Implemented Interfaces:
Iterable<Drawable>

public class MultipagePaintDevice
extends PaintDevice

Author:
Markus Strauch

Nested Class Summary
 class MultipagePaintDevice.MultipagePanel
           
 
Constructor Summary
MultipagePaintDevice(PrintConfiguration properties, Dimension pageSize)
           
 
Method Summary
 void announce(int height)
           
 void close()
          This method is called once when no Drawable object will be added anymore.
 Dimension getPageSize()
           
 List<MultipagePaintDevice.MultipagePanel> getPanels()
           
 double getScale()
           
 int getTextHeight(boolean bold)
           
 int getTextWidth(String text, boolean bold)
           
 void setDiagram(Diagram diagram)
           
 
Methods inherited from class net.sf.sdedit.diagram.PaintDevice
addOtherDrawable, addSequenceElement, clear, computeAxes, computeBounds, getColor, getDiagram, getFont, getHeight, getRightBound, getTextHeight, getTextWidth, getWidth, isEmpty, iterator, reinitialize, writeToStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultipagePaintDevice

public MultipagePaintDevice(PrintConfiguration properties,
                            Dimension pageSize)
Method Detail

setDiagram

public void setDiagram(Diagram diagram)
Overrides:
setDiagram in class PaintDevice

getPageSize

public Dimension getPageSize()

getScale

public double getScale()

close

public void close()
Description copied from class: PaintDevice
This method is called once when no Drawable object will be added anymore. Its default implementation is empty.

Overrides:
close in class PaintDevice

getPanels

public List<MultipagePaintDevice.MultipagePanel> getPanels()

announce

public void announce(int height)
Overrides:
announce in class PaintDevice

getTextHeight

public int getTextHeight(boolean bold)
Specified by:
getTextHeight in class PaintDevice

getTextWidth

public int getTextWidth(String text,
                        boolean bold)
Specified by:
getTextWidth in class PaintDevice


Copyright © 2011. All Rights Reserved.