|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.frinika.sequencer.model.Lane
public abstract class Lane
Field Summary | |
---|---|
protected java.util.List<Lane> |
children
|
protected int |
height
|
protected java.util.List<Part> |
parts
|
Constructor Summary | |
---|---|
protected |
Lane()
|
protected |
Lane(java.lang.String name,
ProjectContainer project)
|
Method Summary | |
---|---|
void |
add(Part part)
|
void |
addChildLane(int indexInList,
Lane lane)
|
void |
addChildLane(Lane lane)
|
void |
addToModel()
Add the lane from the project. |
java.lang.Object |
clone()
If restoration from a clone is needed - this method should return a clone otherwise throw the CloneNotSupportedException |
abstract Part |
createPart()
|
void |
displayStructure(java.lang.String prefix,
java.io.PrintStream out)
|
java.util.List<Lane> |
getChildren()
|
int |
getDisplayH()
|
int |
getDisplayID()
For the partview GUI. |
int |
getDisplayY()
Used by the partview for mapping onto the screen. |
java.util.List<Lane> |
getFamilyLanes()
Return a flat view of the decendent lanes. |
int |
getHeight()
|
abstract javax.swing.Icon |
getIcon()
|
java.lang.String |
getName()
|
java.util.List<Part> |
getParts()
|
ProjectContainer |
getProject()
|
boolean |
isHidden()
If a lane is hidden it will not be displayed in the lane panel. |
boolean |
isOpen()
If a lane is open it's children might be displayed in the lane panel. |
boolean |
isSelected()
|
long |
leftTickForMove()
return the left tick mark for move operations without quantize a move to destTick should move item by destTick - leftTickForMove(); |
void |
onLoad()
Actions to be done when this lane is loaded |
void |
remove(Part part)
remove a part. |
void |
removeAll()
Remove all parts |
void |
removeChildLane(Lane lane)
Lane to add |
void |
removeFromModel()
Remove the lane from the project. |
long |
rightTickForMove()
|
void |
setHeight(int i)
|
void |
setHidden(boolean b)
Hide the lane in the part view. |
void |
setName(java.lang.String name)
|
void |
setOpen(boolean b)
Open the lane in the part view. |
void |
setSelected(boolean b)
set selected flag (for GUI use only) |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.frinika.sequencer.model.Selectable |
---|
deepCopy, deepMove |
Methods inherited from interface com.frinika.sequencer.model.EditHistoryRecordable |
---|
restoreFromClone |
Field Detail |
---|
protected java.util.List<Part> parts
protected java.util.List<Lane> children
protected int height
Constructor Detail |
---|
protected Lane()
protected Lane(java.lang.String name, ProjectContainer project)
Method Detail |
---|
public java.util.List<Part> getParts()
public void removeAll()
public void remove(Part part)
remove
in interface EditHistoryRecorder<Part>
public void add(Part part)
add
in interface EditHistoryRecorder<Part>
public boolean isSelected()
public int getHeight()
public ProjectContainer getProject()
public void setSelected(boolean b)
Selectable
setSelected
in interface Selectable
public java.lang.String getName()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
EditHistoryRecordable
clone
in interface EditHistoryRecordable
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public void addChildLane(Lane lane)
lane
- to add to children.public void addChildLane(int indexInList, Lane lane)
public void removeChildLane(Lane lane)
lane
- to removepublic java.util.List<Lane> getFamilyLanes()
public boolean isHidden()
public boolean isOpen()
public java.util.List<Lane> getChildren()
public int getDisplayY()
public int getDisplayH()
public int getDisplayID()
public void setHidden(boolean b)
public void setOpen(boolean b)
public void setName(java.lang.String name)
public void onLoad()
public void removeFromModel()
removeFromModel
in interface Selectable
public void addToModel()
addToModel
in interface Selectable
public long leftTickForMove()
Selectable
leftTickForMove
in interface Selectable
public long rightTickForMove()
rightTickForMove
in interface Selectable
public void setHeight(int i)
public void displayStructure(java.lang.String prefix, java.io.PrintStream out)
public abstract Part createPart()
public abstract javax.swing.Icon getIcon()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |