|
|||||||||
| Home >> All >> com >> virtuosotechnologies >> asaph >> [ standardgui overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.virtuosotechnologies.asaph.standardgui
Class SongLineEditor

java.lang.Objectcom.virtuosotechnologies.asaph.standardgui.SongLineEditor
- class SongLineEditor
- extends java.lang.Object
The song line editor
| Nested Class Summary | |
(package private) class |
SongLineEditor.LineUndoHelper
|
| Field Summary | |
private com.virtuosotechnologies.asaph.model.SongBlock |
block_
|
private SongBlockEditor |
blockEditor_
|
private int |
chordDragIndex_
|
private int |
chordDragOffset_
|
private java.util.List |
chordGroupViews_
|
private float |
chordsBottom_
|
private float |
chordsTop_
|
private BodyEditorSize |
curSize_
|
private int |
draggingChordNum_
|
private com.virtuosotechnologies.asaph.model.SongLine |
line_
|
private java.util.List |
lineViews_
|
private SongBodyEditorPane |
pane_
|
private static char |
SMARTQUOTE_CLOSEDOUBLE
|
private static char |
SMARTQUOTE_CLOSESINGLE
|
private static char |
SMARTQUOTE_OPENDOUBLE
|
private static char |
SMARTQUOTE_OPENSINGLE
|
private float |
textBottom_
|
private float |
textTop_
|
| Constructor Summary | |
(package private) |
SongLineEditor(SongBodyEditorPane pane,
SongBlockEditor blockEditor,
com.virtuosotechnologies.asaph.model.SongBlock block,
com.virtuosotechnologies.asaph.model.SongLine line)
Constructor |
| Method Summary | |
(package private) boolean |
canInsertChordMarkingHere()
|
private void |
doBackspace()
|
(package private) void |
doComment(boolean comment)
|
(package private) void |
doCopy(boolean remove)
|
(package private) void |
doDeleteSelection()
|
private void |
doEnter()
|
(package private) void |
doInsert()
|
private void |
doMergeWithPreviousLine()
|
(package private) void |
doPaste()
|
(package private) void |
doReplace(EditorSelection selection,
java.lang.String replacement)
|
(package private) void |
doReplaceSelection(java.lang.String replacement)
|
(package private) void |
doSelectAll()
|
(package private) void |
doShiftChords(int shift)
|
private char |
educateQuote(EditorSelection selection,
char ch)
|
(package private) java.awt.geom.Rectangle2D |
getSelectionBounds(EditorSelection selection,
boolean blink,
float x,
float y)
Get the update rectangle for the current selection. |
(package private) BodyEditorSize |
getSize()
Get the size of the editor |
(package private) void |
handleKey(java.awt.event.KeyEvent ev,
float x)
Handle key typed events |
(package private) void |
handleMouseDragged(java.awt.event.MouseEvent ev,
float x,
float y)
Handle mouse-drag events |
(package private) boolean |
handleMousePressed(java.awt.event.MouseEvent ev,
float x,
float y,
int containerBlock,
int containerLine)
Handle mouse-down events |
(package private) void |
handleMouseReleased(java.awt.event.MouseEvent ev,
float x,
float y)
Handle mouse-up events |
private void |
moveChordSelectionLeft(EditorSelection selection,
boolean extend)
|
private void |
moveChordSelectionRight(EditorSelection selection,
boolean extend)
|
private void |
moveLineSelectionLeft(EditorSelection selection,
boolean extend)
|
private void |
moveLineSelectionRight(EditorSelection selection,
boolean extend)
|
(package private) void |
paint(java.awt.Graphics2D g2d,
float x,
float y,
java.awt.Rectangle clipBounds,
boolean select,
boolean containsSelect)
Draw |
(package private) void |
rebuild(boolean refresh)
Rebuild according to the current model and settings |
(package private) void |
selectDefault()
Select default. |
(package private) boolean |
selectInChordsForX(float x)
Select in the chords, given an x in line-relative coordinates. |
(package private) void |
selectInLineForX(float x)
Select in the line, given an x in line-relative coordinates. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
SMARTQUOTE_OPENSINGLE
private static final char SMARTQUOTE_OPENSINGLE
SMARTQUOTE_CLOSESINGLE
private static final char SMARTQUOTE_CLOSESINGLE
SMARTQUOTE_OPENDOUBLE
private static final char SMARTQUOTE_OPENDOUBLE
SMARTQUOTE_CLOSEDOUBLE
private static final char SMARTQUOTE_CLOSEDOUBLE
block_
private com.virtuosotechnologies.asaph.model.SongBlock block_
line_
private com.virtuosotechnologies.asaph.model.SongLine line_
pane_
private SongBodyEditorPane pane_
blockEditor_
private SongBlockEditor blockEditor_
curSize_
private BodyEditorSize curSize_
lineViews_
private java.util.List lineViews_
chordGroupViews_
private java.util.List chordGroupViews_
chordsTop_
private float chordsTop_
chordsBottom_
private float chordsBottom_
textTop_
private float textTop_
textBottom_
private float textBottom_
draggingChordNum_
private int draggingChordNum_
chordDragIndex_
private int chordDragIndex_
chordDragOffset_
private int chordDragOffset_
| Constructor Detail |
SongLineEditor
SongLineEditor(SongBodyEditorPane pane, SongBlockEditor blockEditor, com.virtuosotechnologies.asaph.model.SongBlock block, com.virtuosotechnologies.asaph.model.SongLine line)
- Constructor
| Method Detail |
getSize
BodyEditorSize getSize()
- Get the size of the editor
rebuild
void rebuild(boolean refresh)
- Rebuild according to the current model and settings
paint
void paint(java.awt.Graphics2D g2d, float x, float y, java.awt.Rectangle clipBounds, boolean select, boolean containsSelect)
- Draw
getSelectionBounds
java.awt.geom.Rectangle2D getSelectionBounds(EditorSelection selection, boolean blink, float x, float y)
- Get the update rectangle for the current selection.
Returns a Rectangle2D, or null for no selection.
selectDefault
void selectDefault()
- Select default. Should be called only when the user drills in from
the block level using the keyboard.
selectInLineForX
void selectInLineForX(float x)
- Select in the line, given an x in line-relative coordinates.
selectInChordsForX
boolean selectInChordsForX(float x)
- Select in the chords, given an x in line-relative coordinates.
handleMousePressed
boolean handleMousePressed(java.awt.event.MouseEvent ev, float x, float y, int containerBlock, int containerLine)
- Handle mouse-down events
handleMouseDragged
void handleMouseDragged(java.awt.event.MouseEvent ev, float x, float y)
- Handle mouse-drag events
handleMouseReleased
void handleMouseReleased(java.awt.event.MouseEvent ev, float x, float y)
- Handle mouse-up events
handleKey
void handleKey(java.awt.event.KeyEvent ev, float x)
- Handle key typed events
educateQuote
private char educateQuote(EditorSelection selection, char ch)
doCopy
void doCopy(boolean remove)
doPaste
void doPaste()
doComment
void doComment(boolean comment)
doInsert
void doInsert()
canInsertChordMarkingHere
boolean canInsertChordMarkingHere()
doSelectAll
void doSelectAll()
doEnter
private void doEnter()
doBackspace
private void doBackspace()
doMergeWithPreviousLine
private void doMergeWithPreviousLine()
doReplaceSelection
void doReplaceSelection(java.lang.String replacement)
doDeleteSelection
void doDeleteSelection()
doReplace
void doReplace(EditorSelection selection, java.lang.String replacement)
doShiftChords
void doShiftChords(int shift)
moveLineSelectionLeft
private void moveLineSelectionLeft(EditorSelection selection, boolean extend)
moveLineSelectionRight
private void moveLineSelectionRight(EditorSelection selection, boolean extend)
moveChordSelectionLeft
private void moveChordSelectionLeft(EditorSelection selection, boolean extend)
moveChordSelectionRight
private void moveChordSelectionRight(EditorSelection selection, boolean extend)
|
|||||||||
| Home >> All >> com >> virtuosotechnologies >> asaph >> [ standardgui overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.virtuosotechnologies.asaph.standardgui.SongLineEditor