input
stringlengths
10
828
output
stringlengths
5
107
protected nexsm info graph mouse plugin get info graph plugin return nexsm info graph mouse plugin infographplugin
returns the nexsm info graph mouse plugin running for the graph mouse
public boolean evaluate object obj boolean out v true if obj instanceof vertex v vertex obj hidden boolean v get user datum key if hidden null hidden boolean value out v false return out v
evaluates the predicate in the object obj obj should be a vertex instance
public void remove view string key remove view user data key remove vv key remove vv key satellite remove pr key remove predicate key remove visualization model key remove layout key remove background key remove background title key remove renderers key
iterates the vertices and edges and removes the related userdatum
public void un lock vertex vertex v string key get layout key unlock vertex v
unlocks the vertex code v code in the view code key code
public void set layout string key nexsm layout type nl abstract layout l null switch nl case isomlayout l new isomlayout my graph break case static layout l new static layout my graph break put layout key l get visualization model key set graph layout l new dimension 2000 2000 satellite visualization viewer get vv key satellite set graph layout l get vv key stop get vv key set graph layout l get vv key restart
sets a layout for the view specified by key
public void set icon image string icon image icon image icon image
sets the icon image name for this host
public set get other info keys return others key set
returns the keys for other information available for this error mapper
public collection get other info values return others values
returns all the values for other information
public hash map get other info return others
returns a hashmap for the other information available for this error mapper
public void add other info string key string value if others null others put key value
adds a new datum for the other information specified by key and value
public string get pusher class return pusherclass
returns this pushers class this is used to create a new
public void set pusher class string pusherclass this pusherclass pusherclass
sets the complete class resource string for this pusher this will be used
public void set description string dsc dsc dsc
sets the description for this host the description is also known as
public void set parents string string parents parents string parents
setter for parents string
public string get description return dsc
returns the hosts description aka alias
public string get parents string return parents string
returns the parents string comma separated as in objects
public void lock boolean lock this locked lock
locks the vertex definition to be saved in the view
public void set label location location l this location l
sets the labels location within the vertex
public location get label location return location
returns the vertexs label position within the vertex
public void zoomin action performed action event evt object src evt get source visualization viewer vv null if src instanceof visualization viewer vv visualization viewer src if slide get value slide get maximum slide set value slide get value slide get major tick spacing show error vv get name btn in
gets the zoom in button logical zoom event and do something
public void init set zoom controls set search controls set about controls update satellite panel set view controls
initializes the action panel basically sets the proper eventhandlers for
public void add tab string name jpanel jtmp new jpanel jtmp set layout new java awt border layout 5 5 visualization viewer vv visualization viewer parent get map get vv name if vv null graph zoom scroll pane gzsp new graph zoom scroll pane vv jtmp add vv parent get jtab views add name jtmp update satellite panel
adds a new tab in the jtabbedpane with the name specified by name
public void add new view string name visualization viewer vv visualization viewer parent get map get vv name if vv null parent get map add view name
adds a new view in graph manager you want to be sure that
public void delete view int index string name parent get jtab views get title at index delete view index name
deletes the view specified by the index corresponding to the jtabbedpane
private void delete view int index string name parent get jtab views remove index parent get map remove view name
deletes the tab specified by index and the view specified by name
public void delete view string name int i parent get jtab views index of tab name if i 0 delete view i name
deletes the view specified by name this corresponds to the name name in
public void zoomout action performed action event evt object src evt get source visualization viewer vv null if src instanceof visualization viewer vv visualization viewer src if slide get value slide get minimum slide set value slide get value slide get major tick spacing show error vv get name btn out
gets the zoom out button logical zoom event and do something
public void update satellite panel visualization viewer satellite parent get map get vv parent get name selected tab satellite if parent get jtab views get component count 0 j panel satellite remove all if satellite null j panel satellite remove all j panel satellite add satellite j panel satellite repaint
changes the satellite panel show with the one corresponding to
public void action performed action event e jcombo box cb jcombo box e get source int index cb get selected index object o cb get item at index if o instanceof string get map view string o
a change in the combobox happened so request the loading of the
public string get string param string name return stringparams get name
returns the value of the param specified by name the param value
public void init try java awt event queue invoke and wait new runnable public void run init components catch exception ex ex print stack trace this add component listener new component listener public void component resized component event e applet resized e public void component moved component event e public void component shown component event e public void component hidden component event e add jtab views popup menu create map set tab views event handler j edit tool bar set visible false j pnl back add j edit tool bar java awt border layout north
initializes the applet map applet
public integer get integer param string name return integerparams get name
returns the value of the param specified by name the param value
public boolean get boolean param string name return booleanparams get name
returns the value of the param specified by name the param value
public action panel get action panel return actionpanel
returns the instance of action panel currently running in the applet
public string get name selected tab int index get jtab views get selected index if index 0 return get jtab views get title at index return
returns the name of the selected tab in j tab views
public jtabbed pane get jtab views return j tab views
returns the j tab views instance for the current map applet
public int get tab views index for string name int q get jtab views get component count for int i 0 i q i if get jtab views get title at i equals name return i return 1
returns the index for the tab specified by name
public void add action panel actionpanel new action panel this actionpanel init actionpanel set preferred size new dimension 190 this get height 20 dimension minimum size new dimension this get width actionpanel width this get height get jtab views set minimum size minimum size jscroll pane jsp new jscroll pane actionpanel jsp set minimum size new dimension 0 0 jsp set preferred size new dimension 200 this get height jsp set autoscrolls true j split pane set right component jsp j split pane set resize weight 0 0 j split pane set divider location 1 0
creates the action panel initializes the components in it and adds it
public mapper get map return map
returns the instance of mapper running in the application
public string get urlparam string prefix string param string p get parameter param if p null p p trim if p starts with try p substring 1 catch exception e p prefix p else p return p
returns the parameter specified by param in case its a relative param i
public void set tab views event handler get jtab views add change listener new change listener public void state changed change event e actionpanel update satellite panel
sets the eventhandler for j tab views this is to update
public boolean contains point2 d p return get rectangle contains p
the point p is assumed to be already transformed
public boolean valid name string name boolean val true for int i 0 i invalid chars length i if name index of invalid chars i 0 val false break return val
test if the views name does not contain any invalid characters
public void set vertex service status string host service status status vertex v get vertex host if v null return map string service status services map string service status v get user datum servicesstatus if services null v add user datum servicesstatus new hash map string service status user data remove services map string service status v get user datum servicesstatus services remove status get service description services put status get service description status
sets the services status in host identified by host to code status code
public void set host host h this h h nsm set host h j lbl host name value set text h get name j lbl host alias value set text h get description j lbl host address value set text h get address j lbl host parents value set text h get parents string
sets the host this window is going to display its information
public void del vertex comment string hostname string servicedescription long comment id vertex v get vertex hostname map string linked list stat service comment serv map string linked list stat service comment v get user datum servicescomment linked list stat service comment ll serv get servicedescription iterator stat service comment it ll iterator while it has next if it next get comment id comment id it remove break
removes the comment specified by comment id from the comments for host
public void del vertex comment string hostname long comment id map long stat host comment coms get vertex host comment hostname if coms null coms contains key comment id coms remove comment id
removes the comment specified by comment id from the comments for host
public void set vertex state string host host status status vertex x get vertex host according to doc the set user datum is equivalent to add user datum if the key doesn t exist already otherwise it changes the datum if x null x set user datum hoststatus status user data clone x set user datum state status get current state user data clone
set the status for the vertex specified by host
public host status get vertex host status vertex v return host status v get user datum hoststatus
returns the user datum hoststatus for the vertex specified by hostname
public host status get vertex host status string hostname vertex v get vertex hostname if v null return get vertex host status v else return null
returns the user datum hoststatus for the vertex specified by hostname
public host get vertex host vertex v return host v get user datum host
returns the user datum host for the vertex v
public host get vertex host string hostname vertex v get vertex hostname if v null return get vertex host v else return null
returns the user datum host for the vertex specified by hostname
public graph types get type return graph type
returns the graph type directed or undirected
public void clear selected hosts string key picked state pickedstate get vv key get picked state pickedstate clear picked vertices
deselects the vertices in the specified view as key
public void show vertex vertex v string key if v null key null boolean is hidden boolean v get user datum userdatumkey key if is hidden null is hidden boolean value show or hide v key false shows the vertex
shows the vertex v in the view with the name key
public void add tab string name jpanel jtmp new jpanel jtmp set layout new java awt border layout 5 5 visualization viewer vv visualization viewer parent get map get vv name if vv null graph zoom scroll pane gzsp new graph zoom scroll pane vv jtmp add vv parent get jtab views add name jtmp update satellite panel parent get jtab views set selected index parent get tab views index for name
adds a new tab in the jtabbedpane with the name specified by name
public void hide vertex vertex v string key if v null key null show or hide v key true hides the vertex
hides the vertex v in the view specified by key
public void hide edge string vertexname1 string vertexname2 string key vertex v1 get vertex vertexname1 vertex v2 get vertex vertexname2 if v1 null v2 null hide edge v1 v2 key
hides the edge if any between vertexname1 and vertexname2 in the view
public void hide edge edge e string key if e null e set user datum userdatumkey key false user data remove
hides the edge e in the view specified by key
public void show edge edge e string key if e null e remove user datum userdatumkey key
shows the edge e in the view specified by key
public string get urlparam string prefix string param string p get parameter param if p null p p trim if p starts with try p p substring 1 catch exception e p prefix p else p return p
returns the parameter specified by param in case its a relative param i
public boolean is status thread running return status thread running
returns the running state of the status thread
public jlabel get jlbl status return j lbl status
returns the status label
public jpanel get jpnl status return j pnl status
returns the status panel
public void refresh vvs repaint vvs
repaints all the visualization viewers
public void fire pusher error pusher event pe synchronized listeners if pe null for pusher listener sl listeners if sl null sl pushing error pe
a pusher encountered an error before finish this is tipically that an exception
public void start document throws exception
what to do with the start of the document
public void add action panel actionpanel new action panel this actionpanel init jscroll pane jsp new jscroll pane actionpanel jsp set autoscrolls true j split pane set right component jsp j split pane set resize weight 0 25 j split pane set divider location j split pane get size width j split pane get insets right j split pane get divider size 193
creates the action panel initializes the components in it and adds it
public void add puller string name string param puller pull create puller name param if pull null pullers put urlpullergridshield pull pull set pull manager this
creates a new puller of the instance name the url
public boolean evaluate object obj boolean out v true if obj instanceof edge e edge obj nexsm edge type et nexsm edge type e get user datum edgetype hidden boolean e get user datum key if hidden null out v hidden boolean value else if et nexsm edge type fictitious out v false return out v
if evaluates to false then the edge will not be showed
public void initialize string url base url procesed hosts new linked list host
initializes the puller in this case the param specified in the
public void move vertex vertex v coordinates coords string key abstract layout l get layout key if l null v null l force move v coords get x coords get y
moves a vertex to a new location in the specified view as key
public void init graph manager add graph listener new graph handler get items scheduler add scheduler listener new scheduler handler pull manager add puller listener new puller handler push manager add pusher listener new pusher handler if dim null graph manager set dimension dim try graph manager init graph graph types directed catch graph exception ge system out println exception ge to string scheduler new thread get items scheduler plugin manager new plugin manager
initializes the instance adds a listener for every manager
public void set dimension dimension dim dim dim
sets the applets visible dimension in graph manager so the
public void prepare map thread prepare map new thread new prepare map this prepare map start
creates and starts an instance of prepare map this class execute in a
public string get version return graph manager version
returns the version in graph manager
public void clear selected hosts string key graph manager clear selected hosts key
deselects the vertices in the specified view as key
public void locate host string key string host if graph manager null graph manager locate host key host
locates the host specified by host in the view represented
public void create default puller string name string param if pull manager null pull manager add puller name param
creates a default puller using the params from the
public void start scheduler scheduler start
starts the scheduler the scheduler is responsible for sending requests
public void remove view string key graph manager remove view key
deletes the view specified by key from graph manager
public visualization viewer get vv string key return graph manager get vv key
returns the visualization viewer identified by key
public string get label vertex v return sl get label v
returns the label for the vertex specified by v
public void set param string name string value graph manager set param name value
sets a param and value in graph manager
public string get string param string name return graph manager get string param name
returns the value for a string param
public boolean get boolean param string name return graph manager get boolean param name
returns the value for a boolean param
public integer get integer param string name return graph manager get integer param name
returns the value for an integer param
public void add mapper listener mapper listener l synchronized listeners listeners add l
adds a listener for the mapper events
public void remove mapper listener mapper listener l synchronized listeners for iterator mapper listener it listeners iterator it has next if it next l it remove
removes a listener from the mapper events listeners
public void fire mapper action requested mapper event me synchronized listeners for mapper listener ml listeners ml mapper action requested me
executes the sending of an event to all the listeners of mapper
public void remove pr string key prs remove key
removes the pluggable renderer used by the view named key
public pluggable renderer get pr string key return prs get key
returns the pluggable renderer for the view specified by key
public pull manager get pull manager return pull manager
returns the instance of the running pull manager
public string get background string key return background images get key
returns the background image name for the view specified by key
public void show vertices or edges string key set vertices pstate get picked vertices for object o vertices show objects near vertex key vertex o
show vertices or edges of the selected vertices
public void set vertex service ext info string host service ext info extinfo vertex v get vertex host if v null map string service ext info services map string service ext info v get user datum servicesextinfo if services null v add user datum servicesextinfo new hash map string service ext info user data remove services map string service ext info v get user datum servicesextinfo services put extinfo get service description extinfo
sets the services status in host identified by host to code status code
public void add final binding binding bindings add binding
add binding to the group
public void remove final binding binding bindings remove binding
remove binding from the group
public void bind for final binding b bindings b bind
binds all the bindings contained in the group
public void unbind for final binding b bindings b unbind
unbinds all the bindings contained in the group