input
stringlengths
10
828
output
stringlengths
5
107
public int get new type return new type
gets the new descriptor type
public int get old type return old type
gets the old descriptor type
public temporal range get new range return new range
gets the range over which the descriptor is valid after the change
public temporal range get old range return old range
gets the range over which the descriptor was valid before the change
public rational frame rate get frame rate frame f time t return new rational frame rate double f get frame t get time
returns a frame rate object that represents f frames for every t
public string get old type return util get desc type e get old type
gets the old descriptor type
private boolean close frame rate a frame rate b frame f new frame 10000 if a as time f equals b as time f return false time t new time 10000 if a as frame t equals b as frame t return false return true
determines if frame rates are close
public string get new type return util get desc type e get new type
gets the new descriptor type
public void print config print writer pw throws java io ioexception pw println util get desc type desc type desc name iterator i attr nodes iterator while i has next attr config ac attr config i next pw println t ac get attr name ac get attr type
old skool print config exports the data in the old gtf format
public paint get head color return head color
gets the color to be used in the header
public configs get configs node return configs node
returns the configs node
public sourcefiles get sourcefiles node return sources node
returns the sources node
public double get label length return label length
gets the length of the timeline labels
public string get new type return new type
gets the new attribute data type
public string get old type return old type
gets the old attribute data type
public void set footer height double new footer height if footer height new footer height double old footer height footer height footer height new footer height fire property change footer height old footer height new footer height invalidate
sets the height to reserve for the footer
public node get new value return new value
returns the new value
public node get old value return old value
returns the old value
public attr value wrapper get new params return new params
gets the new parameter value wrapper
public attr value wrapper get old params return old params
gets the old parameter value wrapper
public int hash code if parent null return attrib conf hash code parent hash code else return attrib conf hash code
gets a hash integer for this attribute value
public boolean check object o return config o get desc type t
checks to see that the descriptor config object has the specified type
public void set head color paint paint if head color paint paint old paint head color head color paint invalidate fire property change head color old paint paint
sets the color for the header
public object get new default return new default
gets the new default value
public object get old default return old default
gets the old default value
public int get attribute index attribute a return cfg get attr config index a get attr config
gets the index of the given child attribute
public void set label length double d if label length d double old label length this label length this label length d invalidate fire property change label length old label length d
sets the length to reserve for line labels
public object clone descriptor impl temp new descriptor impl temp cfg config impl cfg clone temp set desc id get desc id temp attributes add all get attr list temp set valid range get valid range return temp
returns a copy of this node and the nodes beneath it with no
public void set ruler height int d if this get ruler height d int old ruler height get ruler height get underlay set ruler height d invalidate fire property change ruler height old ruler height d
sets the height to allocate for the header including the ruler and
public int find free id for config c fixme check for the id collection old this get desc by name c int i 0 for iterator iter old iterator iter has next descriptor curr descriptor iter next i math max i curr get desc id 1 return i
looks for a free id in the given space
public object transform object value return attr config impl try to convert attr value value old params new params attribute impl this
tries to convert from one attribute data type to another
public instant get instant for point2 d local point return get line layer local2instant get orientation swing constants horizontal local point get x local point get y
gets the instant beneath the point
public void change params attr value wrapper old params attr value wrapper new params object new val null if attr value null if get attr config is dynamic time encoded list tel time encoded list attr value tel time encoded list tel clone tel map new convert params old params new params new val tel else new val attr config impl try to convert attr value attr value old params new params attribute impl this help set attr value new val true
converts the param object which controls the attribute value
public void change dynamic boolean new state object new val null if attr value null if new state time encoded list tel new time encoded list iterator iter get descriptor get valid range iterator while iter has next interval ii interval iter next tel set ii attr value new val tel else time encoded list tel time encoded list attr value new val tel get tel get extrema get start help set attr value new val true
change the dynamic value of the attribute
public action listener get delete instance action listener return delete instance action listener
gets an action listener that tries to delete the currently selected
public instant get instant for pinput event a event return get instant for get local position a event
gets the instant beneath the events point
public void set parent descriptor impl d parent d
reparents the node
public time line get time line for point2 d global double offset get view offset y if get orientation swing constants horizontal offset global get y else offset global get x return get line layer local2timeline offset
gets the timeline beneath the point
public action listener get duplicate instance action listener return duplicate instance action listener
gets an action listener that tries to copy the selected object
public time line get time line for pinput event a event point2 d local position get local position a event return get time line for local position
gets the line beneath the events point
public boolean check object o if o instanceof descriptor descriptor d descriptor o return d get config equals this type return false
makes sure the object is a descriptor that is
public object get new val return new val
the value of the attribute after the change
public long pixel2instant distance double pixels return get line layer local2instant pixels long value
gets the number of instants that the given number of pixels is equivalent
public object get old val return old val
the value of the attribute before the change
public void set num frames int number of frames in clip boolean undoable if number of frames in clip 0 help set dval d numframes number of frames in clip undoable else help set null d numframes undoable
allows non undoable changing of the frame count
public void set media type string media type boolean undoable help set sval d sourcetype media type undoable
allows non undoable setting of the media type property
public instant interval get changed span return changed
gets the interval over which the change occurred
public double instant2pixel distance instant i return get line layer instant2local i
gets the number of instants that the given number of pixels is equivalent
public void set frame rate frame rate rate boolean undoable ref set frame rate rate if rate instanceof rational frame rate help set fval d framerate rational frame rate rate get rate undoable else log warning cannot record non rational frame rate rate
allows non undoable setting of the frame rate
public void add event viper change event vce events add vce
adds the new subevent to the list of events included
public void die events null uri null
removes all children of the events and performs
public void set descriptor cfd if proto equals cfd get config proto cfd get config init config proto d cfd ref sourcefile d get parent get reference media if d instanceof eventful node eventful node d add node listener nl reset
sets the canonical descriptor
public time encoded list get old val return old val
the value of the attribute before the change
public double instant2pixel location instant i return get line layer instant2local i go model get focus get start instant long value
gets the number of instants that the given number of pixels is equivalent
public int hash code return filename hash code
since it is common for the filename to be unambiguous
public boolean has listeners return listeners get listener count 0
tests to see if any listeners are attached to the current node
public frame rate get frame rate return rate
returns the rate of frames per unit of time
public object get old default value return e get old default
gets the default value before the change
public time line pixel2time line double pixel return get line layer local2timeline pixel
gets the number of instants that the given number of pixels is equivalent
public int get frame return curr frame
gets the index of the frame
public boolean is write locked if notifying listeners return true node parent get parent if parent instanceof eventful node helper return eventful node helper parent is write locked return false
tests to see if set will work
public temporal object instant start instant end object value super start end this o value
creates a new temporal object with the given value for
public object get new default value return e get new default
gets the default after the change
public object get value return o
gets the object value
public boolean is greater instant i if curr frame frame i curr frame return true return false
if i is a frame tests to see that this
public boolean is less instant t if curr frame frame t curr frame return true return false
if i is a frame tests to see that this
public long get time return curr time
gets the value of the time
public boolean equals object o if this o o instanceof frame curr frame frame o curr frame return true return false
true when the two frames have the same number
public boolean within range inclusive instant s instant e return within range s e next
checks to see if the span is inside the range
public void add child node n boolean undoable int idx get number of children add child idx n undoable
adds a child node but returns an undoable or non undoable
public instant get start instant return start
gets the start of the span
public instant get end instant return end
gets the last instant of the span
public void crop instant interval valid span if this is frame based valid span is frame based this is time based valid span is time based throw new illegal argument exception shifting by wrong unit type interval extrema super get extrema if extrema contains valid span return comparable before first before valid span get start if before null remove extrema get start valid span get start comparable after first after valid span get end if after null after end of valid span get end if after null remove valid span get end extrema get end
crops the range so that it is down to this size
public instant get last instant return instant end previous
gets the last instant meaning
public boolean contains all collection c for iterator iter c iterator iter has next if contains iter next return false return true
checks to see that every element in the collection of instants
public iterator iterator return new instant iterator get start instant get end instant
gets an iterator that enumerates all the instants
public frame as frame instant i if i null return null else if i instanceof frame return frame i else return as frame time i
gets the frame corresponding to the instant
public time as time instant i if i null return null else if i instanceof time return time i else return as time frame i
converts the given instant into a time object
public instant interval as frame instant interval s if s null return null else if s is frame based return s else return instant interval s change as frame s get start instant as frame s get end instant
converts the given interval into a frame interval
public instant interval as time instant interval s if s null return null else if s is time based return s else return instant interval s change as time s get start instant as time s get end instant
converts the given interval into a time interval
public string to string return get start instant get last instant
gets the span in old school inclusive format
public int compare object a object b if a instanceof frame b instanceof frame return frame a compare to b return as time instant a compare to as time instant b
compares the value of two instant objects not necessarily of the same
public frame as frame time o long t o get time if rational rational r new rational rational multiply rrate t r return new frame r int value 1 else double f t rate return new frame 1 int math ceil f
gets the frame corresponding to the instant
public time as time frame o int f o get frame 1 if rational rational r new rational rational multiply rrate reciprocate f r rrate reciprocate return new time r long value else double t f rate return new time long math ceil t
converts the given instant into a time object
public boolean equals object o if this o return true else if o instanceof rational frame rate return rational frame rate o get rate this get rate else return false
tests to see that the rates are equal
public int hash code long v double double to long bits get rate return int v v 32
returns a hash on this value
public string to string if rational return rrate fpt else return rate fpt
string representation of the frame rate
public void remove throw new unsupported operation exception cannot remove instants from spans
not implemented as spans are both contiguous and
public int size long w width if w integer max value throw new illegal state exception cannot use size on long valued instant spans return int w
dangerous use width instead
public void set comparable start comparable end int i super set start end new integer i
sets the given span to take on the given integer value
public void plus temporal range o add things o iterator
adds the given values to the current vector
public long width return get end instant minus get start instant
gets the number of instants in the span
public boolean is time based return values size 0 values first key instanceof time
tests to see if the list is encoded by time instead
public object get attribute value at current frame attribute a return a get attr value at instant get current frame
returns the attribute value at the current frame null if it doesnt
public boolean is frame based return values size 0 values first key instanceof frame
tests to see if the list is encoded by frame instead
public scroll views get scroll views if scroll views null scroll views new scroll views reset scroll views transfer handler return scroll views
gets the canvases associated with this canvas
public boolean get new is dynamic return e get new is dynamic
gets the new value for the dynamic property
public object get instant index assert index null sorted map m values tail map index if m is empty m first key equals index return lel node m get index get value m values head map index if m is empty lel node v lel node m get m last key if v get end compare to index 0 return v get value return null
get the value at the specified index in the list
public boolean has next return hn
tests to see if next will fail
public void set interval span object value set span get start span get end value
sets the value at the given interval