input
stringlengths
10
828
output
stringlengths
5
107
public boolean get old is dynamic return e get old is dynamic
gets the old value of the dynamic property
public boolean get new is dynamic return old is dynamic
gets the new value of the dynamic property
public iterator iterator interval i return new time encoded list cropped iterator this i
gets an iterator over the given interval
public boolean get old is dynamic return old is dynamic
gets the old value of the dynamic property
public int get contiguous interval count int i 0 iterator iter this iterator while iter has next i iter next return i
counts the number of contiguous homogenous intervals
public chronicle marker pop up get marker pop if marker pop null this marker pop new chronicle marker pop up this marker pop set viewer this this marker pop set canvas get proxy return marker pop
gets the popup menu for the markers
public boolean equals object o if this o return true else if o instanceof instance of constraint instance of constraint that instance of constraint o return that constraint equals this constraint else return false
tests to see if the specified object contains the
public int hash code int hash super hash code if get value null hash get value hash code return hash
hashes based on the interval and the value
public int hash code return constraint hash code
gets a hash code for the type
public chronicle selection model get selection model return selection model
gets the model to be used for selection and viewing
public void remap types input stream props throws java io ioexception data types load props
adds the data types from the input stream
public void load types properties props data types put all props
adds the data types from the properties file
public void add type string namespace string locator string classname data types set property namespace locator classname
adds the given type by namespace local name and java class name
public object get meta default node container return new ellipse 0 0 0 0 0
returns the point at 0 0
public propagate interpolate module get propagator return propagator
gets the propagation object
public object get meta default node container return new oriented box 0 0 0 0 0
returns the point at 0 0
public object get meta default node container return
returns the empty string
public void set selection model chronicle selection model selection model if this selection model selection model if this selection model null this selection model remove change listener time selection change listener chronicle selection model old selection model this selection model this selection model selection model if this selection model null this selection model add change listener time selection change listener fire property change selection model old selection model selection model
changes the chronicle selection model
public object get meta default node container return new pnt 0 0
returns the point at 0 0
public object get meta default viper api node container return new polygon
returns the empty closed polygon
public element get xmlformat document root object o node container string qualifier viper data vi per data qualifier string uri viper data vi per data uri element el root create element ns uri qualifier bbox bounding box b bounding box o el set attribute at x string value of b get x el set attribute at y string value of b get y el set attribute at w string value of b get width el set attribute at h string value of b get height return el
gets the value as an xml format
public object get meta default node container return new bounding box 0 0 0 0
returns the point at 0 0
public object get meta default node container return new circle 0 0 0
returns the point at 0 0
public string to string string buffer sb new string buffer sb append lvalue for int i 0 i possibles length i sb append possibles i append sb append return sb to string
gets the old skool listing of the type
public interface edit set the descriptor type this might have dangerous consequences for casting param type object content etc public void set desc type int type set the descriptor name you can t set it to an already existing name param name the new descriptor name public void set desc name string name
interface for editing the properties of
public node visibility manager get hiders return hiders
gets the manager of the set of hidden items
public void set nillable boolean n if this nillable n viper data v get root transactional node transaction t transactional node v begin attr is nillable change t put property name this attr name t put property nillable n true false if n iterator all instances util get all instances of this while all instances has next attribute impl a attribute impl all instances next help make non nillable a nillable n fire minor node changed new undoable attr is nillable change event this n get my index t commit
if setting nillable to false need to remove all nill
public boolean get new is nillable return old is nillable
gets the new value of the nillable property
public boolean get old is nillable return old is nillable
gets the old value of the nillable property
public viper selection set get selection return selection
gets the currently selected metadata item
public boolean contains object o if o this return true else if o instanceof comparable return this get comparable o null else throw new illegal argument exception o to string
looks for the time not the object
public viper sub tree get primary selection return selection get primary
gets the current top selection of the user
public string to string string val str if attr value null val str null else if attrib conf is dynamic iterator iter get attr values over whole range val str while iter has next dynamic attribute value curr dynamic attribute value iter next val str curr to string if iter has next val str else val str get attr value to string val str string help backslashify val str return attrib conf get attr name val str
gets the attribute in the old gtf format
public boolean get new is nillable return e get new is nillable
gets the new value of the nillable property
public chronicle marker model get marker model return marker model
returns the model that should be used to display markers on a chronicle
public boolean get old is nillable return e get old is nillable
gets the old value of the nillable property
public void set marker model chronicle marker model model marker model model
sets the marker model
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 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 void display hotkey bindings jeditor pane pane new jeditor pane text html get prefs get core get hotkey manager to html pane set editable false jscroll pane scroll new jscroll pane pane jframe popup new jframe hotkey bindings popup set size 600 480 popup get content pane set layout new grid layout 1 1 popup get content pane add scroll popup set default close operation window constants dispose on close popup set visible true
displays the current hotkey bindings in a new window
public action listener get display hotkey bindings action listener return display hotkey bindings action listener
gets an action that displays the current hotkey bindings
public boolean is showing invalid return showing invalid
tests to see if the user should care about descriptors that are invalid
public void set showing invalid boolean showing invalid if this showing invalid showing invalid this showing invalid showing invalid fire data change null
turns on off the invalid descriptors in the spreadsheet view
public action listener get toggle display invalid action listener return toggle display invalid action listener
gets an action that toggles the showing invalid property
public file get last directory return last directory
get the last directory the user referenced
public void set last directory file last directory if last directory is file last directory last directory get parent file this last directory last directory
sets the last directory the user referenced
public viper prefs navigator get prefs navigator return this viper prefs navigator
gets the viper prefs navigator
public viper view navigator get view navigator return this viper view navigator
gets the viper view navigator
public action listener get display clip file dialog action listener return display clip file dialog action listener
gets an action that displays the clip file dialog box
public document get document file file file home throws file handler exception document doc this get document file if home null string path relative path get relative path home file doc remove field path doc add new field path path field store yes field index un tokenized doc remove field inpath doc add new field inpath path replace file separator char field store yes field index tokenized return doc
analyze the corresponding file and returns a document with the appropriate
public void session created http session event event event get session set max inactive interval 7200
event is thrown when a session has been created
public void session destroyed http session event event clean user data event get session
event is thrown when a session has been destroyed
private void cmd connection string cmd cmd cmd trim if cmd index of 0 return connection cmd substring cmd index of 1 trim
parsing connection field in general headers of request
public boolean is nph if path to lower case index of nph 0 return false else return true
check if script is nph
private void cmd via string cmd cmd cmd trim if cmd index of 0 return via cmd substring cmd index of 1 trim
parsing via field in general headers of request
public void open compress out stream throws ioexception if is deflate out deflater new deflater output stream out else if is gzip out gzip new gzipoutput stream out
open compressed output stream
public boolean is nph return false
check is script is nph
private string to get string enumeration enum int i 0 string result get next pdu n enum g search range elements while enum has more elements i result result i 2 0 end start agent xoid enum next element n result result get next pdu n return result
get a string describing contents
public string to string return to header string to get string
generate string describing entire pdu
public void add oids agent xoid oid1 agent xoid oid2 g search range add element oid1 g search range add element oid2 if update payload length set payload length get payload length oid2 get length 4 8 if update payload length set payload length get payload length oid1 get length 4 8 4 bytes oid header 4 bytes per
add a pair of oids to the search range of this request
public enumeration elements return g search range elements
create a new enumeration from search range vector
public boolean is empty return g search range is empty
return true if there are no elements in search range
public string to string return to header string
generate printable string for this pdu
public void close throws ioexception agent xexception enumeration enum agent xsession session try for enum sessions elements enum has more elements session agent xsession enum next element session close agent xsession reason shutdown catch exception in ex close connection throw in ex close connection
close this connection
private void close connection throws ioexception agent xexception sessions null m open false set current sys up time 0 socket close socket null
close this connection
public void set version int version
currently not available version 1
public int get version return h version
get the agent x protocol version
public agent xsession get session long session id enumeration enum agent xsession session for enum sessions elements enum has more elements session agent xsession enum next element if session get session id session id return session return null
get the agent xsession object identified by a given session id
public void set type int type h type byte type
set pdu type to type
public void send agent xpdu pdu throws ioexception agent xexception output stream output try output socket get output stream output write pdu get bytes catch ioexception in ex logger error error sending in ex get message throw in ex logger info pdu sent logger debug pdu
send out a given agent x pdu through this agent x connection
public void set received pdu agent xpdu pdu received pdu pdu
set the last received pdu to remember
public int get type return h type
get pdu type
public agent xpdu get received pdu return received pdu
get the last received pdu
public void payload auto update boolean update update payload length update
turn on off the auto increment feature for setting pdu contents
public void set instance reg boolean inst reg h inst reg inst reg
turn off on the instancereg bit in header
public boolean get instance reg return h inst reg
read the instancereg bit in header
public boolean get new index return h new index
read h new index used only within the agentx index allocate and
public void set any index boolean any index h any index any index
read h any index used only within the agentx index allocate and
public void set non default context boolean non default context h non default context non default context
turn on off non default context for this pdu
public boolean get network byte order return h network byte order
if set most significant byte first
public void set network byte order boolean network byte order h network byte order network byte order
set network byte order
public void set payload length long len if len 4 0 len len 4 len 4 h payload length len
set the paload length to len
public long get payload length return h payload length
get length of pdu exclunding header
public void set session id long session id h session id session id
set session id to session id
public long get session id return h session id
get the session id of this pdu
public void set transaction id long transaction id h transaction id transaction id
set transaction id to transaction id
public long get transaction id return h transaction id
get the transaction id of this pdu
public void set packet id long packet id h packet id packet id
set packet id to packet id
public long get packet id return h packet id
get the packet id of this pdu
public string get context return h context
get string representing the context of this pdu
public void update string payload string olds string news long len len olds length 4 if len 4 0 len len 4 len 4 len get payload length len len len news length 4 set payload length len
set increase or decrease the payload of this pdu by the difference
public cli parse string args try cli new posix parser parse options args catch parse exception e e print stack trace return this
call this after set before has and get
public boolean has string opt return cli has option opt
check if has defined option
public object get string key if key null confobj null return null string keyparts stringx split key config object p confobj int n keyparts length object o null for int i 0 i n 1 i o p get property keyparts i if o null o instanceof config object config object o size 0 return null p config object o o p get property keyparts n 1 if o instanceof config object config object o size 0 return null return o
get value of given key
public string get string string key object p get key if p null return null if p instanceof string return string p else maybe groovy gstring impl return p to string
get value as string
public object eval return script run
eval groovy script
public string get font size value return font size value
returns the font size value
public void set choice set ichoice set choice set this choice set choice set string colors choice set factory get display namefrom choice set choice set arrays sort colors combo remove all combo add none choice if colors null for int i 0 i colors length i combo add colors i
sets the color choice set from de model
protected rgb parse string string string int colors color util get rgbs string if colors null return new rgb colors 0 colors 1 colors 2 string tokenizer st new string tokenizer string non nls 1 if st has more tokens return null int rgb new int 0 0 0 int index 0 while st has more tokens try rgb index integer decode st next token int value if rgb index 0 rgb index 255 return null index catch exception e return null return new rgb rgb 0 rgb 1 rgb 2
parses the input string to a grb object
protected void process action rgb rgb string new combo text predefined color if new combo text null new combo text format rgb rgb if combo get text equals new combo text combo set text new combo text if old rgb null rgb null return if rgb null rgb equals old rgb return old rgb rgb if rgb null rgb equals color selector get color value color selector set color value rgb notify listeners swt modify null
processes the save action
public string to rgb string string builder sb new string builder sb append rgb sb append r sb append sb append g sb append sb append b sb append return sb to string
returns a string in the form rgb n n n