|
|||||||||
| Home >> All >> virtuoso >> asaph >> util >> [ render overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
virtuoso.asaph.util.render
Class PlainTextLineLayout

java.lang.Objectvirtuoso.asaph.util.render.LineLayout
virtuoso.asaph.util.render.PlainTextLineLayout
- public class PlainTextLineLayout
- extends LineLayout
LineLayout for monospaced plain text.
| Field Summary | |
private boolean |
compressNarrowLines_
|
private int |
indentSpaces_
|
private boolean |
showComments_
|
private int |
top_
|
| Fields inherited from class virtuoso.asaph.util.render.LineLayout |
|
| Constructor Summary | |
PlainTextLineLayout(int top,
virtuoso.asaph.model.SongLine line,
virtuoso.asaph.model.ChordSystem chordSystem,
virtuoso.asaph.model.types.Interval transpose,
boolean showComments,
int blockIndent,
int indentSpaces,
boolean compressNarrowLines)
Constructor |
|
| Method Summary | |
protected java.lang.String |
generateFillerString(float width)
Subclasses may override this to generate filler text |
float |
getChordBaseline()
Get the chord baseline position as a distance below the top |
protected float |
getChordDelayOffset()
Subclasses must implement this to provide the offset for delayed chords |
protected float |
getChordWidth(java.lang.String str)
Subclasses must implement this to provide the size of a chord string |
protected float |
getCommentWidth(java.lang.String str)
Subclasses must implement this to provide the size of a comment string |
float |
getLineBottom()
Get the position of the bottom of the line |
protected float |
getLineIndentWidth()
Subclasses must implement this to provide the size of a line indent |
float |
getLineTop()
Get the position of the top of the line |
protected float |
getMinChordSpacing()
Subclasses must implement this to provide the minimum chord spacing |
float |
getTextBaseline()
Get the text baseline position as a distance below the top |
protected float |
getTextWidth(java.lang.String str)
Subclasses must implement this to provide the size of a text string |
protected java.lang.String |
modifyCommentString(java.lang.String comment)
Subclasses may override this to munge a comment string |
| 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 |
| Field Detail |
showComments_
private boolean showComments_
indentSpaces_
private int indentSpaces_
compressNarrowLines_
private boolean compressNarrowLines_
top_
private int top_
| Constructor Detail |
PlainTextLineLayout
public PlainTextLineLayout(int top,
virtuoso.asaph.model.SongLine line,
virtuoso.asaph.model.ChordSystem chordSystem,
virtuoso.asaph.model.types.Interval transpose,
boolean showComments,
int blockIndent,
int indentSpaces,
boolean compressNarrowLines)
- Constructor
| Method Detail |
getLineTop
public float getLineTop()
- Get the position of the top of the line
- Specified by:
getLineTopin classLineLayout
getChordBaseline
public float getChordBaseline()
- Get the chord baseline position as a distance below the top
- Specified by:
getChordBaselinein classLineLayout
getTextBaseline
public float getTextBaseline()
- Get the text baseline position as a distance below the top
- Specified by:
getTextBaselinein classLineLayout
getLineBottom
public float getLineBottom()
- Get the position of the bottom of the line
- Specified by:
getLineBottomin classLineLayout
getChordDelayOffset
protected float getChordDelayOffset()
- Subclasses must implement this to provide the offset for delayed chords
- Specified by:
getChordDelayOffsetin classLineLayout
getMinChordSpacing
protected float getMinChordSpacing()
- Subclasses must implement this to provide the minimum chord spacing
- Specified by:
getMinChordSpacingin classLineLayout
getLineIndentWidth
protected float getLineIndentWidth()
- Subclasses must implement this to provide the size of a line indent
- Specified by:
getLineIndentWidthin classLineLayout
getTextWidth
protected float getTextWidth(java.lang.String str)
- Subclasses must implement this to provide the size of a text string
- Specified by:
getTextWidthin classLineLayout
getCommentWidth
protected float getCommentWidth(java.lang.String str)
- Subclasses must implement this to provide the size of a comment string
- Specified by:
getCommentWidthin classLineLayout
getChordWidth
protected float getChordWidth(java.lang.String str)
- Subclasses must implement this to provide the size of a chord string
- Specified by:
getChordWidthin classLineLayout
modifyCommentString
protected java.lang.String modifyCommentString(java.lang.String comment)
- Subclasses may override this to munge a comment string
- Overrides:
modifyCommentStringin classLineLayout
generateFillerString
protected java.lang.String generateFillerString(float width)
- Subclasses may override this to generate filler text
- Overrides:
generateFillerStringin classLineLayout
|
|||||||||
| Home >> All >> virtuoso >> asaph >> util >> [ render overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC