Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.virtuosotechnologies.asaph.standardgui
Class PrintRenderHelper  view PrintRenderHelper download PrintRenderHelper.java

java.lang.Object
  extended bycom.virtuosotechnologies.asaph.standardgui.PrintRenderHelper

class PrintRenderHelper
extends java.lang.Object

Helper that does layout and rendering of the song for printing


Nested Class Summary
private static class PrintRenderHelper.BlockLayout
           
private static class PrintRenderHelper.PageLayout
           
 
Field Summary
private  java.util.List columnPopulations_
           
private  float columnWidth_
           
private static float EPSILON
           
private  RenderHelper fullRender_
           
private  float gutterWidth_
           
private  float imageableHeight_
           
private  float imageableWidth_
           
private  int numColumns_
           
private  java.util.List pages_
           
private  float scale_
           
private  float unscaledGutterWidth_
           
 
Constructor Summary
(package private) PrintRenderHelper(RenderHelper renderHelper, float imageableWidth, float imageableHeight, int columns, float gutter)
           
private PrintRenderHelper(RenderHelper renderHelper, float imageableWidth, float imageableHeight, int columns, float gutter, java.util.List columnPopulations)
           
 
Method Summary
(package private)  PrintRenderHelper createUsingGraphics(java.awt.Graphics2D g2d)
           
(package private)  float getColumnWidth()
           
(package private)  float getGutterWidth()
           
(package private)  float getHeightForPage(int pageNum)
           
(package private)  int getNumColumns()
           
(package private)  int getNumPages()
           
(package private)  float getRequiredScale()
           
(package private)  float getWidth()
           
(package private)  void paintPage(int pageNum, java.awt.Graphics2D g2d, float x, float y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EPSILON

private static final float EPSILON
See Also:
Constant Field Values

imageableWidth_

private float imageableWidth_

imageableHeight_

private float imageableHeight_

numColumns_

private int numColumns_

unscaledGutterWidth_

private float unscaledGutterWidth_

gutterWidth_

private float gutterWidth_

columnWidth_

private float columnWidth_

fullRender_

private RenderHelper fullRender_

scale_

private float scale_

pages_

private java.util.List pages_

columnPopulations_

private java.util.List columnPopulations_
Constructor Detail

PrintRenderHelper

PrintRenderHelper(RenderHelper renderHelper,
                  float imageableWidth,
                  float imageableHeight,
                  int columns,
                  float gutter)

PrintRenderHelper

private PrintRenderHelper(RenderHelper renderHelper,
                          float imageableWidth,
                          float imageableHeight,
                          int columns,
                          float gutter,
                          java.util.List columnPopulations)
Method Detail

createUsingGraphics

PrintRenderHelper createUsingGraphics(java.awt.Graphics2D g2d)

getNumPages

int getNumPages()

getRequiredScale

float getRequiredScale()

getNumColumns

int getNumColumns()

getColumnWidth

float getColumnWidth()

getGutterWidth

float getGutterWidth()

getWidth

float getWidth()

getHeightForPage

float getHeightForPage(int pageNum)

paintPage

void paintPage(int pageNum,
               java.awt.Graphics2D g2d,
               float x,
               float y)