java.lang.Object
com.virtuosotechnologies.asaph.standardgui.EditorSelection
- class EditorSelection
- extends java.lang.Object
The song body editor: selection
|
Method Summary |
(package private) void |
clear()
|
(package private) EditorSelection |
createCopy()
|
(package private) EditorSelection |
createCopyOfEnd()
|
(package private) void |
extendBlockSelection(int endPos,
boolean scroll)
|
(package private) void |
extendChordSelection(int endView,
int endPos,
boolean scroll)
|
(package private) void |
extendLineSelection(int endPos,
boolean scroll)
|
(package private) void |
extendTextSelection(int endView,
int endPos,
boolean scroll)
|
(package private) int |
getBottomBlockPos()
|
(package private) int |
getBottomLinePos()
|
(package private) int |
getChordGroup()
|
(package private) int |
getContainingBlock()
|
(package private) int |
getContainingLine()
|
(package private) int |
getEndBlockPos()
|
(package private) int |
getEndChordPos()
|
(package private) int |
getEndChordView()
|
(package private) int |
getEndLinePos()
|
(package private) int |
getEndTextPos()
|
(package private) int |
getEndTextView()
|
(package private) java.lang.Float |
getLastX()
|
(package private) int |
getLeftChordPos()
|
(package private) int |
getLeftChordView()
|
(package private) int |
getLeftTextPos()
|
(package private) int |
getLeftTextView()
|
(package private) int |
getRightChordPos()
|
(package private) int |
getRightChordView()
|
(package private) int |
getRightTextPos()
|
(package private) int |
getRightTextView()
|
(package private) int |
getStartBlockPos()
|
(package private) int |
getStartBlockPos2()
|
(package private) int |
getStartChordPos()
|
(package private) int |
getStartChordPos2()
|
(package private) int |
getStartChordView()
|
(package private) int |
getStartChordView2()
|
(package private) int |
getStartLinePos()
|
(package private) int |
getStartLinePos2()
|
(package private) int |
getStartTextPos()
|
(package private) int |
getStartTextPos2()
|
(package private) int |
getStartTextView()
|
(package private) int |
getStartTextView2()
|
(package private) int |
getTopBlockPos()
|
(package private) int |
getTopLinePos()
|
(package private) boolean |
hasSelection()
|
(package private) void |
invalidate()
|
(package private) boolean |
isBlockSelection()
|
(package private) boolean |
isChordSelection()
|
(package private) boolean |
isLineSelection()
|
(package private) boolean |
isOriginal()
|
(package private) boolean |
isSinglePointSelection()
|
(package private) boolean |
isSinglePointStarter()
|
(package private) boolean |
isTextSelection()
|
private void |
postModify(boolean scroll)
|
private void |
preModify()
|
(package private) void |
prepareSelectionInsideBlock(int blockPos)
|
(package private) void |
prepareSelectionInsideLine(int linePos)
|
(package private) void |
set(EditorSelection sel,
boolean scroll)
|
(package private) void |
setBlockSelection(int startPos,
int endPos,
boolean scroll)
|
(package private) void |
setChordSelection(int chordGroup,
int startView,
int startPos,
int endView,
int endPos,
boolean scroll)
|
(package private) void |
setLastX(float x)
|
(package private) void |
setLineSelection(int startPos,
int endPos,
boolean scroll)
|
(package private) void |
setTextSelection(int startView,
int startPos,
int endView,
int endPos,
boolean scroll)
|
(package private) void |
startBlockSelection(int startPos,
int startPos2,
boolean scroll)
|
(package private) void |
startChordSelection(int chordGroup,
int startView,
int startPos,
int startView2,
int startPos2,
boolean scroll)
|
(package private) void |
startLineSelection(int startPos,
int startPos2,
boolean scroll)
|
(package private) void |
startTextSelection(int startView,
int startPos,
int startView2,
int startPos2,
boolean scroll)
|
java.lang.String |
toString()
Convert this Object to a human-readable String. |
pane_
private SongBodyEditorPane pane_
valid_
private boolean valid_
startBlock_
private int startBlock_
startBlock2_
private int startBlock2_
endBlock_
private int endBlock_
containerBlock_
private int containerBlock_
startLine_
private int startLine_
startLine2_
private int startLine2_
endLine_
private int endLine_
containerLine_
private int containerLine_
startTextView_
private int startTextView_
startTextView2_
private int startTextView2_
startTextPos_
private int startTextPos_
startTextPos2_
private int startTextPos2_
endTextView_
private int endTextView_
endTextPos_
private int endTextPos_
containerChordGroup_
private int containerChordGroup_
lastX_
private java.lang.Float lastX_
EditorSelection
EditorSelection(SongBodyEditorPane pane)
createCopy
EditorSelection createCopy()
createCopyOfEnd
EditorSelection createCopyOfEnd()
isOriginal
boolean isOriginal()
hasSelection
boolean hasSelection()
isSinglePointSelection
boolean isSinglePointSelection()
isSinglePointStarter
boolean isSinglePointStarter()
isBlockSelection
boolean isBlockSelection()
getTopBlockPos
int getTopBlockPos()
getBottomBlockPos
int getBottomBlockPos()
getStartBlockPos
int getStartBlockPos()
getStartBlockPos2
int getStartBlockPos2()
getEndBlockPos
int getEndBlockPos()
getContainingBlock
int getContainingBlock()
isLineSelection
boolean isLineSelection()
getTopLinePos
int getTopLinePos()
getBottomLinePos
int getBottomLinePos()
getStartLinePos
int getStartLinePos()
getStartLinePos2
int getStartLinePos2()
getEndLinePos
int getEndLinePos()
getContainingLine
int getContainingLine()
isTextSelection
boolean isTextSelection()
getStartTextView
int getStartTextView()
getStartTextView2
int getStartTextView2()
getEndTextView
int getEndTextView()
getStartTextPos
int getStartTextPos()
getStartTextPos2
int getStartTextPos2()
getEndTextPos
int getEndTextPos()
getLeftTextView
int getLeftTextView()
getRightTextView
int getRightTextView()
getLeftTextPos
int getLeftTextPos()
getRightTextPos
int getRightTextPos()
isChordSelection
boolean isChordSelection()
getChordGroup
int getChordGroup()
getStartChordView
int getStartChordView()
getStartChordView2
int getStartChordView2()
getEndChordView
int getEndChordView()
getStartChordPos
int getStartChordPos()
getStartChordPos2
int getStartChordPos2()
getEndChordPos
int getEndChordPos()
getLeftChordView
int getLeftChordView()
getRightChordView
int getRightChordView()
getLeftChordPos
int getLeftChordPos()
getRightChordPos
int getRightChordPos()
getLastX
java.lang.Float getLastX()
invalidate
void invalidate()
preModify
private void preModify()
postModify
private void postModify(boolean scroll)
set
void set(EditorSelection sel,
boolean scroll)
clear
void clear()
setBlockSelection
void setBlockSelection(int startPos,
int endPos,
boolean scroll)
startBlockSelection
void startBlockSelection(int startPos,
int startPos2,
boolean scroll)
extendBlockSelection
void extendBlockSelection(int endPos,
boolean scroll)
prepareSelectionInsideBlock
void prepareSelectionInsideBlock(int blockPos)
setLineSelection
void setLineSelection(int startPos,
int endPos,
boolean scroll)
startLineSelection
void startLineSelection(int startPos,
int startPos2,
boolean scroll)
extendLineSelection
void extendLineSelection(int endPos,
boolean scroll)
prepareSelectionInsideLine
void prepareSelectionInsideLine(int linePos)
setTextSelection
void setTextSelection(int startView,
int startPos,
int endView,
int endPos,
boolean scroll)
startTextSelection
void startTextSelection(int startView,
int startPos,
int startView2,
int startPos2,
boolean scroll)
extendTextSelection
void extendTextSelection(int endView,
int endPos,
boolean scroll)
setChordSelection
void setChordSelection(int chordGroup,
int startView,
int startPos,
int endView,
int endPos,
boolean scroll)
startChordSelection
void startChordSelection(int chordGroup,
int startView,
int startPos,
int startView2,
int startPos2,
boolean scroll)
extendChordSelection
void extendChordSelection(int endView,
int endPos,
boolean scroll)
setLastX
void setLastX(float x)
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object
- Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method
never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string
concatenation with this object. If the result is
null, string concatenation will instead
use "null".
The default implementation returns
getClass().getName() + "@" +
Integer.toHexString(hashCode()).