|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.humatic.dsj.MovieTrack
public class MovieTrack
MovieTrack represents a single piece of footage on an editable movie's timeline.
| Field Summary | |
|---|---|
static int |
SM_CROP
|
static int |
SM_PA_NOLETTERBOX
|
static int |
SM_PRESERVEASPECT
|
static int |
SM_STRETCH
|
| Method Summary | |
|---|---|
void |
addEffect(EffectDescription ed,
int from,
int to)
Adds an effect to the track between the given times. |
void |
cut(int in,
int out)
Cuts out this track's timeline portion between the given (timeline) times. |
int |
getDuration()
Returns this track's timeline out point in msec. |
int |
getEffectCount()
Returns the number of effects currently asigned to this track. |
boolean |
getEnabled()
|
int |
getID()
Returns the unique ID of the track. |
TrackEffect |
getIndTrackEffect(int index)
Returns the effect at the given index. |
int |
getLayer()
|
boolean |
getLocked()
|
int |
getMediaMajorType()
Returns the major type of the media referenced by this track. |
java.lang.String |
getMediaPath()
Returns the absolute path to this track's mediafile |
java.lang.String |
getName()
|
int |
getOffset()
Returns this track's timeline in point in msec |
int |
getSourceDuration()
Returns this track's media out point in msec. |
int |
getSourceOffset()
Returns this track's media in point in msec. |
TrackEffect |
getTrackEffect(int tfxType,
java.lang.String GUID)
Returns the effect with the given subtype or GUID. |
void |
lockTrack(boolean lock)
Locks a track and excludes it from all kinds of editing operations. |
void |
removeEffect(TrackEffect effect)
Removes the given effect from this track |
void |
setDuration(int duration)
Sets this track's timeline out point in msec. |
void |
setEffectStartStop(TrackEffect effect,
int startTime,
int stopTime)
|
void |
setEnabled(boolean isEnabled)
Disables a track for output, i.e.: excludes it from rendering. |
void |
setLayer(int layer)
Sets the z-order of videotracks. |
void |
setName(java.lang.String name)
|
void |
setOffset(int offset)
Sets this track's timeline in point in msec. |
void |
setSourceDuration(int srcDur)
Sets this track's media out point in msec. |
void |
setSourceOffset(int srcOffset)
Sets this track's media in point in msec. |
void |
setStretchMode(int sm)
Determines how video that does not match project size will be rendered. |
void |
setVolume(float vol)
Sets a fixed volume for an audio track. |
void |
setVolume(float vol,
int from,
int to,
int curve)
Sets the volume of an audiotrack to %vol (0 - mute, 1.0 - full volume) in the timespan defined by the given timeline times and with the given transition characteristics. If any of the given times is invalid, it will be set to either the track's timeline in (%from) or out (%to) points. This creates a volume effect for the track or - if one is already present - internally operates on that effect's automation settings, overwriting all cue points, that might be present for the given timespan. To create more sophisticated volume curves, work with the effect's CuePoints directly and call updateEffectAutomation(TrackEffect fx). You should be aware that this method results in some heavy action taking place behind the scenes. |
java.lang.String |
toString()
|
void |
trim(int in,
int out)
Trims this track's timeline portion to the given span of (timeline) time. |
void |
updateEffectAutomation(TrackEffect forEffect)
Updates effect settings and automation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int SM_STRETCH
public static final int SM_CROP
public static final int SM_PRESERVEASPECT
public static final int SM_PA_NOLETTERBOX
| Method Detail |
|---|
public int getMediaMajorType()
public int getOffset()
public void setOffset(int offset)
throws DSJException
DSJExceptionpublic int getDuration()
public void setDuration(int duration)
throws DSJException
DSJExceptionpublic int getSourceOffset()
public void setSourceOffset(int srcOffset)
throws DSJException
DSJExceptionpublic int getSourceDuration()
public void setSourceDuration(int srcDur)
throws DSJException
DSJExceptionpublic java.lang.String getMediaPath()
public int getID()
public void setEnabled(boolean isEnabled)
public boolean getEnabled()
public void lockTrack(boolean lock)
public boolean getLocked()
public java.lang.String getName()
public void setName(java.lang.String name)
public void setLayer(int layer)
public int getLayer()
public void setStretchMode(int sm)
public void setVolume(float vol)
public void setVolume(float vol,
int from,
int to,
int curve)
throws DSJException
DSJException
public void addEffect(EffectDescription ed,
int from,
int to)
throws DSJException
DSJException
public void setEffectStartStop(TrackEffect effect,
int startTime,
int stopTime)
public void removeEffect(TrackEffect effect)
throws DSJException
DSJException
public void updateEffectAutomation(TrackEffect forEffect)
throws DSJException
DSJExceptionpublic int getEffectCount()
public TrackEffect getIndTrackEffect(int index)
public TrackEffect getTrackEffect(int tfxType,
java.lang.String GUID)
public void cut(int in,
int out)
throws DSJException
DSJException
public void trim(int in,
int out)
throws DSJException
DSJExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||