input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public void print general error string error m out println error while parsing for limits n t error | the function that prints a general error to the output file |
public void print warning string warning m out println line m line number warning while parsing for limits n t warning | the function that print a warning message to the output file |
public void print warning at line number string warning int line num m out println line line num error while parsing for limits n t warning | the function that prints a warning message and the line number that is |
public int start frame return get frame span beginning | gets the first frame of the frame span |
public void set output print writer output m out output setting the output to a new stream | function that allows you to set a different output to which warnings and |
public int end frame return get frame span ending | gets the last valid frame |
private boolean find block string block name throws ioexception string block header begin block name string line while not at eof line read next line if line equals ignore case block header return true found header return false header not found | will find the block with the name that was passed in |
public string raw format return name get id | function returns the raw string representation of this object |
private boolean not at eof return m current position m file length | checks to see if m reader has reached the eof marked yet |
public boolean is composable return composable | tests to see if it is possible to aggregate this descriptor |
private string remove comments string candidate if candidate null return null int ci candidate index of if ci 1 return candidate substring 0 ci return candidate | will remove comments from a string and return anon commented string |
public int get shared if shared 0 shared get match null get match num frames 0 return shared | gets the count of frames in the intersection region less the blackout |
public int get union if union 0 union alpha union beta num frames return union | gets the count of shared frames |
private boolean save to file file f throws ioexception file tmp save file create temp file gtf f get name f get parent file print writer pw new print writer new output stream writer new file output stream tmp save utf 8 try xml serializer to writer get viper data pw finally pw close if f exists f delete return false if tmp save rename to f set backing file name without reload f to uri modify most recently used get file name undo history manager mark saved now return true return false | tries to save to the given file name |
public frame span get match if alpha null beta null match null else if match null match alpha intersect beta return match | gets the intersection frames |
public int get target frames return alpha num frames | gets the truth frame count |
public void click time line tqe int i if i 0 if tcm is expanded tqe tcm collapse line tqe else tcm expand line tqe | expands collapses the given node if possible |
public image get contract icon return contract icon | gets the emblem that is displayed on an |
public image get expand icon return expand icon | gets the emblem that is displayed on an |
public tree chronicle view model get tree model return tcm | gets the tree model associated with this emblem model |
public void set contract icon image image contract icon image fire change event | sets the emblem that is displayed on an |
public void set expand icon image image expand icon image fire change event | sets the emblem that is displayed on an |
public void mouse clicked pinput event event super mouse clicked event em click tqe emblem index | invokes the appropriate emblems click event |
public void set tree model tree chronicle view model tcm if this tcm tcm this tcm tcm fire change event | sets the tree model associated with this emblem model |
protected void fire change event if notifying listeners true throw new illegal state exception notifying listeners true try change event ce new change event this object listeners this listeners get listener list for int i listeners length 2 i 0 i 2 if listeners i change listener class change listener listeners i 1 state changed ce finally notifying listeners false | fires a change event to all listeners |
public dimension get preferred size if pref size null int w inset 2 em get max emblem count this emblem size int math ceil label get bounds reference width int h inset 2 math max int math ceil label get bounds reference get height this emblem size pref size new dimension w h return pref size | gets the preferred size of the label which |
public int get candidate frames return beta num frames | gets the candidate frame count |
public boolean validate attribute value v return v instanceof attribute polygon poly line value | checks to make sure that the value can be set |
public color get fill color return fill | gets the fill color for the timeline |
public color set stroke color return pen | gets the color for use with the lines |
public void set fill color color color fill color | sets the background color |
public void set stroke color color color pen color | sets the color of the pen |
public void set stroke width float stroke stroke width stroke | sets the preferred stroke width |
public int get extents if extents 0 frame span m get match int beg math min alpha beginning beta beginning int end math max alpha ending beta ending extents math abs beg m beginning math abs end m ending return extents | gets the count of the difference |
protected boolean should start drag interaction time line input event event return true | override this to only start dragging if say start instant |
protected pnode make segment interval i double width double height return new prounded time segment | this is the method called to make a segment for the given timeline |
public boolean is expanded time line tqe return expandeds contains tqe | tests to see if the given line is expanded |
protected void fire structure change if changing throw new illegal state exception changing true try object listeners data listeners get listener list chronicle event e null for int i listeners length 2 i 0 i 2 if e null e new chronicle event this chronicle model listener listeners i 1 structure changed e finally changing false | fires a structural change event from the given source |
protected void cancel drag | right now this is never called by the default dragger |
protected void fire time lines changed if changing throw new illegal state exception changing true try object listeners data listeners get listener list chronicle event e null for int i listeners length 2 i 0 i 2 if e null e new chronicle event this chronicle model listener listeners i 1 time lines changed e finally changing false | indicates that a timeline has changed in value or |
public boolean can expand time line tqe return tqe get number of children 0 | tests to see if the node has children |
protected void fire time lines added if changing throw new illegal state exception changing true try object listeners data listeners get listener list chronicle event e null for int i listeners length 2 i 0 i 2 if e null e new chronicle event this chronicle model listener listeners i 1 time lines added e finally changing false | indicates that one or more lines has been added to the |
public void expand line time line tqe if is expanded tqe expandeds add tqe reset lines fire focus change null | expands the given line in the view |
protected void fire time lines removed if changing throw new illegal state exception changing true try object listeners data listeners get listener list chronicle event e null for int i listeners length 2 i 0 i 2 if e null e new chronicle event this chronicle model listener listeners i 1 time lines removed e finally changing false | indicates that one or more lines has been removed from the |
protected boolean help expand all time line t if is expanded t expandeds add t for iterator iter t get children iter has next help expand all time line iter next return true else return false | help by expanding this node and all its kids recursively |
public void expand all expandeds clear boolean changed false for iterator iter roots iterator iter has next changed help expand all time line iter next changed if changed reset lines fire focus change null | expands the all the lines in the chronicle |
public all chronicle markers node get markers node return all chronicle markers node get proxy get layer get child markers node offset | this holds all of the user specfied markers and the current frame arrow |
public void expand all from time line t set already expanded expandeds expandeds new hash set if help expand all t expandeds remove all already expanded if expandeds is empty reset lines fire focus change null | expands all the children down the tree from this node |
public void collapse line time line tqe if expandeds contains tqe expandeds remove tqe reset lines fire focus change null | collapse this node completely |
public paint get fill style return fill style | gets the default fill color |
public paint get line style return line style | gets the default line color |
public pnode create header node return new frame flag header | creaate a marker header node of the current style |
public void put style for label string label marker styles style for label sfl style map put label sfl | adds the given style for the specified |
public pnode create footer node return null | creaate a marker footer node of this style |
public void set default style marker styles style for label default style this default style default style | sets the default style for marker nodes |
public default chronicle marker model super labels2markers new hash map markers new vector | constructs a new default marker model |
public void add model chronicle marker model m models add m | adds the given model to the list of combined models |
public void show int x int y component where chronicle marker node n this n n if n null boolean curr frame n get model get label equals chronicle viewer curr frame label goto menu item set enabled curr frame remove menu item set enabled curr frame super show canvas x y | displays this popup at the specified location refering to the given |
public void remove model chronicle marker model m models remove m | removes the given model to the list of combined models |
public void set model chronicle marker model model if this model null this model remove chronicle marker listener cml this model model if this model null this model add chronicle marker listener cml refresh from model | sets the marker data model |
public chronicle marker get changed marker return changed marker | gets the changed marker |
public void remove all children super remove all children model2node clear | clears the node |
private void remove map if appropriate pnode pnode if pnode instanceof chronicle marker node chronicle marker node n chronicle marker node pnode model2node remove n get model | removes the marker from the model2node map if it |
public chronicle marker get model return model | gets the model for the marker basically it is just |
public void set model chronicle marker model this model model | sets the model of the marker |
protected void fire change event change event e object listeners listener list get listener list for int i listeners length 2 i 0 i 2 if listeners i change listener class if e null e new change event this change listener listeners i 1 state changed e | fires a change event |
public void set pan event handler ppan event handler handler this row header set pan event handler handler this corner header set pan event handler handler this column header set pan event handler handler this content set pan event handler handler | sets the pan handler on all four views |
public void mouse entered pinput event e super mouse entered e pcomponent component e get top camera get component if cursors pushed contains component component push cursor new cursor cursor w resize cursor cursors pushed add component | indicates that the mouse entered the marker |
public void mouse exited pinput event e super mouse exited e pcomponent component e get top camera get component if cursors pushed contains component component pop cursor cursors pushed remove component | indicates that the mouse exited the marker |
public double get footer height return footer height | gets the height of marker footers |
public pnode get header return header | gets the header node for the marker |
public double get header height return header height | gets the height of marker headers |
public void set interval instant interval interval if this interval null interval null return else if this interval null this interval equals interval this interval interval iterator markers this markers iterator while markers has next marker m marker markers next m move into interval fire multiple changes event | sets the interval |
public void set header pnode header if this header null this remove child this header this header header if this header null instant when get model get when if when null this header add client property ptool tip tooltip property when to string this add child this header | sets the header node for the marker |
public void set footer height double d footer height d | sets the height to use for footers |
public void set line style paint line style this line style line style this invalidate paint | sets the line style |
public void set header height double header height this header height header height | sets the height of marker headers |
public marker styles get styles return styles | gets the styles to use for different node types |
public pnode get footer return footer | gets the footer node for the marker |
public void set styles marker styles styles this styles styles | sets the styles to use for different node types |
public void set footer pnode node footer node | sets the footer node |
public void set zoom event handler pzoom event handler handler this row header set zoom event handler handler this corner header set zoom event handler handler this column header set zoom event handler handler this content set zoom event handler handler | sets the zoom handler on all four views |
public chronicle viewer get viewer return viewer | gets the associated viewer |
public all chronicle markers node get marker holder assert this get parent null return all chronicle markers node this get parent | gets the holder that contains this marker node |
public void set viewer chronicle viewer viewer this viewer viewer | sets the associated viewer |
public void set fill style paint paint fill style paint this invalidate paint | sets the fill style for the node |
private int get rule offset int at most int my width int off ruler height min rule height double max fraction height 1 double height range ruler height max fraction height max offset height range math max 0 height range double fraction math log widths my width math log widths at most off int fraction height range return math max 0 off | gets how far from the top of the timeline that the |
protected void fire focus change event object e object listeners view listeners get listener list for int i listeners length 2 i 0 i 2 if listeners i chronicle view listener class if e null e new event object this chronicle view listener listeners i 1 focus changed e | indicate the the user has changed focus |
public void fire data changed event object e object listeners view listeners get listener list for int i listeners length 2 i 0 i 2 if listeners i chronicle view listener class if e null e new event object this chronicle view listener listeners i 1 data changed e | indicate the the data has changed |
public default chronicle selection model lines new hash set time new instant range | creates a new empty selection model |
public pbasic time segment super | constructs a new segment with the default color |
public pbasic time segment color c super color c | constructs a new segment with the given color |
public void add time line time line tl if lines add tl fire change event null | adds the timeline to the selection |
public pbasic time segment paint paint double size super | will create a box with color paint and |
public void remove time line time line tl if lines remove tl fire change event null | removes the timeline to the selection |
public void set selected lines to set lines if lines equals this lines this lines clear this lines add all lines fire change event null | replaces the set of selected lines |
public void set selected time to temporal range range if time equals range time clear time add all range fire change event null | sets the selected set of instants |
public prounded time segment super | constructs a new segment with the default color |
public void set min distance int min distance this min distance min distance | sets the minimum distance to put between tick marks on |
public viper sub tree get added nodes return added | gets the subtree that was added |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.