java.lang.Object
virtuoso.asaph.util.render.LineLayout
virtuoso.asaph.util.render.Graphics2DLineLayout
com.virtuosotechnologies.asaph.standardgui.EditorLineLayout
- class EditorLineLayout
- extends virtuoso.asaph.util.render.Graphics2DLineLayout
LineLayout for standard editor.
| Fields inherited from class virtuoso.asaph.util.render.LineLayout |
|
| 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 |
EditorLineLayout
EditorLineLayout(com.virtuosotechnologies.asaph.model.SongLine line,
com.virtuosotechnologies.asaph.model.ChordSet chordSet,
int blockIndent,
java.awt.font.FontRenderContext renderContext)
- Constructor
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.