|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.frinika.sequencer.model.Part
com.frinika.sequencer.model.TextPart
public class TextPart
In-place editable text part.
| Nested Class Summary | |
|---|---|
protected class |
TextPart.TextPartPropertiesPanel
Instance returned via createProperitesPanel(). |
| Nested classes/interfaces inherited from class com.frinika.sequencer.model.Part |
|---|
Part.PropertiesPanel |
| Field Summary | |
|---|---|
static int |
DEFAULT_WIDTH
|
static java.lang.String |
EMPTY_STRING
|
protected javax.swing.JTextArea |
renderLabel
|
protected java.lang.String |
text
|
| Fields inherited from class com.frinika.sequencer.model.Part |
|---|
lane, selected |
| Constructor Summary | |
|---|---|
TextPart(TextLane lane)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
If restoration from a clone is needed - this method should return a clone otherwise throw the CloneNotSupportedException |
void |
commitEventsAdd()
|
void |
commitEventsRemove()
Called when part is removed from the model |
void |
copyBy(double tick,
Lane dst)
|
protected OptionsEditor |
createPropertiesPanel(ProjectFrame frame)
Create PropertiesPanel. |
Selectable |
deepCopy(Selectable parent)
Complete copy of object. |
void |
deepMove(long tick)
Move object and all children by tick |
void |
drawThumbNail(java.awt.Graphics2D g,
java.awt.Rectangle rect,
PartView partView)
|
void |
endInplaceEdit(PartView partView)
|
java.lang.String |
getText()
|
protected void |
initContextMenu(ProjectFrame frame,
javax.swing.JPopupMenu popup)
Fills the part's context menu with menu-items. |
void |
moveContentsBy(double tick,
Lane dstLane)
move the contents by tick into dstLane |
protected void |
moveItemsBy(long deltaTick)
|
void |
onLoad()
|
void |
restoreFromClone(EditHistoryRecordable object)
On removal the EditHistoryContainer will attempt to clone the object - and if restored later it will use the restoreFromClone method to restore the cloned data on the original instance. |
void |
setText(java.lang.String text)
|
void |
startInplaceEdit(PartView partView)
|
| Methods inherited from class com.frinika.sequencer.model.Part |
|---|
addPluginRightButtonMenu, addToModel, createPropertiesDialog, displayStructure, getColor, getDuration, getDurationInSecs, getDurationInTicks, getEditParent, getEnd, getEndInSecs, getEndTick, getEventBounds, getLane, getMultiPart, getPartResourceId, getRootPart, getStart, getStartInSecs, getStartTick, getTransparentColor, isAttached, isSelected, leftTickForMove, moveBy, removeFromModel, rightTickForMove, setChanged, setColor, setEditParent, setEndInSecs, setEndTick, setMultiPart, setPartResourceId, setRootPart, setSelected, setStartInSecs, setStartTick, showContextMenu, showPropertiesDialog, showRightButtonMenu |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_WIDTH
public static final java.lang.String EMPTY_STRING
protected java.lang.String text
protected javax.swing.JTextArea renderLabel
| Constructor Detail |
|---|
public TextPart(TextLane lane)
lane - | Method Detail |
|---|
public java.lang.String getText()
public void setText(java.lang.String text)
public void startInplaceEdit(PartView partView)
public void endInplaceEdit(PartView partView)
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EditHistoryRecordable
clone in interface EditHistoryRecordableclone in class Partjava.lang.CloneNotSupportedExceptionpublic void commitEventsAdd()
commitEventsAdd in class Partpublic void commitEventsRemove()
Part
commitEventsRemove in class Part
public void copyBy(double tick,
Lane dst)
copyBy in class Part
public void drawThumbNail(java.awt.Graphics2D g,
java.awt.Rectangle rect,
PartView partView)
drawThumbNail in class Part
public void moveContentsBy(double tick,
Lane dstLane)
Part
moveContentsBy in class Partprotected void moveItemsBy(long deltaTick)
moveItemsBy in class Partpublic void onLoad()
onLoad in class Partpublic Selectable deepCopy(Selectable parent)
Selectable
parent - owner of the new object;
public void deepMove(long tick)
Selectable
public void restoreFromClone(EditHistoryRecordable object)
EditHistoryRecordable
protected void initContextMenu(ProjectFrame frame,
javax.swing.JPopupMenu popup)
initContextMenu in class Partpopup - protected OptionsEditor createPropertiesPanel(ProjectFrame frame)
createPropertiesPanel in class Partframe -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||