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

Quick Search    Search Deep

virtuoso.asaph.util.render
Class Graphics2DBodyLayout  view Graphics2DBodyLayout download Graphics2DBodyLayout.java

java.lang.Object
  extended byvirtuoso.asaph.util.render.BodyLayout
      extended byvirtuoso.asaph.util.render.EditableBodyLayout
          extended byvirtuoso.asaph.util.render.Graphics2DBodyLayout

public class Graphics2DBodyLayout
extends EditableBodyLayout

BodyLayout for standard Graphics2D rendering.


Nested Class Summary
 
Nested classes inherited from class virtuoso.asaph.util.render.EditableBodyLayout
EditableBodyLayout.LineLayoutFactory
 
Field Summary
private  java.awt.Font chordFont_
           
private  float chordSpacing_
           
private  java.awt.Font commentFont_
           
private  boolean compressNarrowLines_
           
private  float indentWidth_
           
private  java.awt.font.FontRenderContext renderContext_
           
private  java.awt.Font textFont_
           
 
Fields inherited from class virtuoso.asaph.util.render.EditableBodyLayout
 
Fields inherited from class virtuoso.asaph.util.render.BodyLayout
 
Constructor Summary
Graphics2DBodyLayout(float indentWidth, float lineSpacing, float blockSpacing, float chordSpacing, boolean compressNarrowLines, java.awt.Font chordFont, java.awt.Font textFont, java.awt.Font commentFont, java.awt.font.FontRenderContext renderContext)
          Constructor
 
Method Summary
protected  EditableBodyLayout.LineLayoutFactory createLineLayoutFactory()
          Subclasses must override this to build a LineLayoutFactory
 java.awt.Font getChordFont()
          Return the font used by this layout for chords
 java.awt.Font getCommentFont()
          Return the font used by this layout for comments
 java.awt.Font getTextFont()
          Return the font used by this layout for text
 
Methods inherited from class virtuoso.asaph.util.render.EditableBodyLayout
addSong, addSong, addSongBlock
 
Methods inherited from class virtuoso.asaph.util.render.BodyLayout
getBlockCount, getBottomPosition, getHeight, getLastLineLayout, getLeftSide, getLineLayoutCount, getLineLayouts, getNthBlockLayout, getNthLineLayout, getRightSide, getTopPosition, rawAddLineLayout, rawGetLeftSide, rawGetRightSide, rawSetLeftSide, rawSetRightSide
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

indentWidth_

private float indentWidth_

chordSpacing_

private float chordSpacing_

compressNarrowLines_

private boolean compressNarrowLines_

chordFont_

private java.awt.Font chordFont_

textFont_

private java.awt.Font textFont_

commentFont_

private java.awt.Font commentFont_

renderContext_

private java.awt.font.FontRenderContext renderContext_
Constructor Detail

Graphics2DBodyLayout

public Graphics2DBodyLayout(float indentWidth,
                            float lineSpacing,
                            float blockSpacing,
                            float chordSpacing,
                            boolean compressNarrowLines,
                            java.awt.Font chordFont,
                            java.awt.Font textFont,
                            java.awt.Font commentFont,
                            java.awt.font.FontRenderContext renderContext)
Constructor

Method Detail

createLineLayoutFactory

protected EditableBodyLayout.LineLayoutFactory createLineLayoutFactory()
Subclasses must override this to build a LineLayoutFactory

Specified by:
createLineLayoutFactory in class EditableBodyLayout

getChordFont

public java.awt.Font getChordFont()
Return the font used by this layout for chords


getTextFont

public java.awt.Font getTextFont()
Return the font used by this layout for text


getCommentFont

public java.awt.Font getCommentFont()
Return the font used by this layout for comments