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

Quick Search    Search Deep

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

java.lang.Object
  extended byvirtuoso.asaph.util.render.LineLayout
      extended byvirtuoso.asaph.util.render.Graphics2DLineLayout
          extended bycom.virtuosotechnologies.asaph.standardgui.EditorLineLayout

class EditorLineLayout
extends virtuoso.asaph.util.render.Graphics2DLineLayout

LineLayout for standard editor.


Field Summary
 
Fields inherited from class virtuoso.asaph.util.render.Graphics2DLineLayout
 
Fields inherited from class virtuoso.asaph.util.render.LineLayout
 
Constructor Summary
(package private) EditorLineLayout(com.virtuosotechnologies.asaph.model.SongLine line, com.virtuosotechnologies.asaph.model.ChordSet chordSet, int blockIndent, java.awt.font.FontRenderContext renderContext)
          Constructor
 
Method Summary
protected  java.lang.String generateFillerString(float width, java.lang.String lastString)
          Subclasses may override this to generate filler text
protected  float getChordPlaceholderWidth()
          Subclasses may override this method to provide a chord placeholder
protected  float getLineElementSpacing()
          Subclasses may override this method to force spacing between line elements
protected  float getTextLayoutWidth(java.awt.font.TextLayout layout)
          Special Graphics2DLineLayout method that gets the width of a TextLayout.
protected  float getZeroLengthTextWidth(java.awt.font.FontRenderContext renderContext, java.awt.Font font)
          Special Graphics2DLineLayout method that gets the width of zero-length text.
protected  boolean useStrictChordPlacement()
          Subclasses may override this method and return true to force "strict chord placement", which is useful for the editor but doesn't look as nice for rendering.
 
Methods inherited from class virtuoso.asaph.util.render.Graphics2DLineLayout
generateFillerString, getChordBaseline, getChordDelayOffset, getChordWidth, getCommentWidth, getLineBottom, getLineIndentWidth, getLineTop, getMinChordSpacing, getTextBaseline, getTextWidth, modifyCommentString
 
Methods inherited from class virtuoso.asaph.util.render.LineLayout
build, generateChordString, getChordFragmentCount, getChordFragments, getChordsLineLeft, getChordsLineRight, getLineWidth, getNthChordFragment, getNthTextFragment, getTextFragmentCount, getTextFragments, getTextLineLeft, getTextLineRight, hasChords, hasText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditorLineLayout

EditorLineLayout(com.virtuosotechnologies.asaph.model.SongLine line,
                 com.virtuosotechnologies.asaph.model.ChordSet chordSet,
                 int blockIndent,
                 java.awt.font.FontRenderContext renderContext)
Constructor

Method Detail

getTextLayoutWidth

protected float getTextLayoutWidth(java.awt.font.TextLayout layout)
Special Graphics2DLineLayout method that gets the width of a TextLayout. This implementation makes room for an oblique caret, if necessary.


getZeroLengthTextWidth

protected float getZeroLengthTextWidth(java.awt.font.FontRenderContext renderContext,
                                       java.awt.Font font)
Special Graphics2DLineLayout method that gets the width of zero-length text. This implementation makes room for an oblique caret, if necessary.


generateFillerString

protected java.lang.String generateFillerString(float width,
                                                java.lang.String lastString)
Subclasses may override this to generate filler text


getChordPlaceholderWidth

protected float getChordPlaceholderWidth()
Subclasses may override this method to provide a chord placeholder


getLineElementSpacing

protected float getLineElementSpacing()
Subclasses may override this method to force spacing between line elements


useStrictChordPlacement

protected boolean useStrictChordPlacement()
Subclasses may override this method and return true to force "strict chord placement", which is useful for the editor but doesn't look as nice for rendering.