input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
public void register plotter listener plotter changed listener listener plotter listeners add listener if plotter null listener plotter changed plotter get plotter name settings listeners add all listener get listening objects for plotter settings changed listener settings listener listener get listening objects inform settings listener settings listener
|
this listener will be registered and immediately informed about the current plotter
|
public boolean should auto connect output port output port return true
|
by default all ports will be auto connected by
|
public operator get root if get parent null return this else return get parent get root
|
returns the first ancestor that does not have a parent
|
public void notify renaming string old name string new name get parameters notify renaming old name new name
|
this method is called when the operator with old name is renamed
|
override public boolean is supporting log scale int axis if axis 0 return true else return false
|
returns true if a log scale for this column is supported
|
public void make dirty if dirty this dirty true if get process get debug mode debug mode collect metadata after execution clear port clear real metadata dirtyness was propagated false fire update
|
this method will flag this operators results as dirty
|
private int translate to model column int plot column if create from model return data table model column map get data table get column name plot column return plot column
|
this method translates the plot column selected from the original data table
|
public int get number of breakpoints int num 0 for boolean bp break point if bp num return num
|
this returns the number of breakpoints 0 1 or 2
|
public boolean accepts input class extends ioobject input class meta data meta data new meta data input class for input port in port get input ports get all ports if in port is input compatible meta data compatibility level pre version 5 return true return false
|
returns true if this operator contains at least one
|
override public boolean is supporting log scale int axis if axis x axis axis y axis return true else return false
|
returns true if a log scale for this column is supported
|
public boolean produces output class extends ioobject output class assume preconditions satisfied transform meta data for output port out port get output ports get all ports if out port get meta data null output class is assignable from out port get meta data get object class return true return false
|
returns true if this operator contains at least one
|
public port owner get port owner return port owner
|
this returns the
|
public void free memory get input ports free memory get output ports free memory
|
releases of any resources held by this operator due since its execution
|
protected operator lookup operator string operator name if get name equals operator name return this execution unit execution unit get execution unit if execution unit null return null for operator sibling execution unit get all inner operators if sibling get name equals operator name return sibling operator chain parent get parent if parent null return parent lookup operator operator name else return null
|
looks up an operator with the given name in the containing process
|
public void walk visitor operator visitor visitor visit this
|
visitor pattern visiting all operators in subprocesses and the operator itself
|
public boolean is valid name string name if name null return false if name equals return false for perspective perspective perspectives values if perspective get name to lower case equals name to lower case return false return true
|
checks if the given string is valid as name of a new perspective
|
public void save all log service get root log level config saving perspectives log service get root log level config com rapidminer gui application perspectives saving perspectives if current null current store context for perspective perspective perspectives values perspective save
|
saves all perspectives to the users config directory
|
public void load all log service get root log level config loading perspectives log service get root log level config com rapidminer gui application perspectives loading perspectives for perspective perspective perspectives values perspective load file user perspective files file system service get user rapid miner dir list files new filename filter override public boolean accept file dir string name return name starts with vlperspective user for file file user perspective files string name file get name name name substring vlperspective user length name name substring 0 name length xml length perspective perspective create user perspective name false perspective load
|
loads all perspectives from the users config directory
|
public void show perspective string name enumeration abstract button e workspace button group get elements enumeration abstract button i workspace menu group get elements for perspective perspective perspectives values abstract button b e next element abstract button m i next element if perspective get name equals name show perspective perspective b set selected true m set selected true
|
switches to the given perspective storing the current one
|
public perspective create user perspective string name boolean show perspective perspective add perspective name true perspective store context if show show perspective name return perspective
|
creates a user defined perspectives and possibly switches to this new perspective immediately
|
public tree path get path to operator operator if operator get parent null return new tree path operator else tree path path to parent if operator get parent get number of subprocesses 1 path to parent get path to operator get parent else path to parent get path to operator get execution unit return path to parent path by adding child operator
|
creates tree path leading to the specified operator
|
public void set structure locked boolean locked this is structure locked locked toggle structure lock action update icon
|
sets the current lock status for the drag and drop locking
|
public void toggle show disabled operators tree model set show disabled operators tree model show disabled operators
|
toggles if disabled operators should be shown
|
private void evaluate double click int row tree path path set selection path path for operator op get selected operators if op has breakpoint op set breakpoint breakpoint listener breakpoint before false op set breakpoint breakpoint listener breakpoint after false else op set breakpoint breakpoint listener breakpoint after true
|
removes existing breakpoints or add a new breakpoint after the currently selected operator
|
public void set selection list operator selection if selection is empty operator current operator selection get 0 this editor request focus this editor set caret position 0 string name current operator get name string text this editor get text int result text index of name if result 0 this editor select result 1 result name length 1
|
just jumps to the position of the currently selected operator
|
private jpopup menu create operator popup menu jpopup menu menu new jpopup menu main frame get actions add to operator popup menu menu rename operator action menu add separator menu add toggle show disabled menu add expand all action menu add collapse all action menu add toggle structure lock action menu add separator string name tree if main frame get process get process location null name main frame get process get process location get short name menu add printing tools make export print menu this name return menu
|
creates a new popup menu for the selected operator
|
private jpanel create component result object result object iocontainer result container final string result name renderer service get name result object get class string used result name result object get name if used result name null used result name result name return result display tools create visualization component result object result container id used result name
|
creates an appropriate name appending a number to make names unique and calls
|
private void update data tables final collection data table new table list final collection data table copy new linked list data table new table list this is time consuming so execute off edt table update queue execute new runnable public void run final collection data table viewer viewers new linked list data table viewer for data table table copy viewers add new data table viewer table true data table viewer plot mode install data table viewers viewers override public string to string return update data table list to size copy size
|
update the data table viewers
|
private void show result final result object result final string id new progress thread creating display override public void run get progress listener set total 100 get progress listener set completed 10 show result now result id get progress listener set completed 100 get progress listener complete start
|
creates the display in a progress thread
|
private void show result now final result object result final string id result tab tab result tab rapid miner gui get main frame get docking desktop get context get dockable by key result tab dockkey prefix id if tab null tab new result tab result tab dockkey prefix id show tab tab tab show result result
|
creates a display on the current thread and displays it on the edt
|
private void update data tables final collection data table copy new linked list data table data tables values this is time consuming so execute off edt table update queue execute new runnable public void run final collection data table viewer viewers new linked list data table viewer for data table table copy viewers add new data table viewer table true data table viewer plot mode install data table viewers viewers override public string to string return update data table list to size copy size
|
update the data table viewers
|
private void install data table viewers final collection data table viewer viewers swing utilities invoke later new runnable public void run for data table viewer viewer viewers process log tab tab process log tab rapid miner gui get main frame get docking desktop get context get dockable by key process log tab dockkey prefix viewer get data table get name if tab null tab new process log tab process log tab dockkey prefix viewer get data table get name show tab tab tab set data table viewer viewer
|
adds the collection of components on the edt after removing the old tables
|
private jpopup menu create operator popup menu jpopup menu menu new jpopup menu menu add this info operator action menu add separator menu add new resource action true add operator now private static final long serial version uid 4363124048356045034 l override public void action performed action event e insert selected return menu
|
creates a new popup menu for the selected operator
|
private void show popup component source action source source action source add component listener this if action source instanceof jtoggle button jtoggle button toggle source jtoggle button action source toggle source set selected true containing window swing utilities window for component action source containing window add component listener this point position calculate position source popup component set location position popup component set visible true popup new container popup dialog containing window popup component position popup set visible true popup request focus popup component start tracking containing window action source
|
creates the popup calculates position and sets focus
|
private boolean hide popup if action source instanceof jtoggle button jtoggle button toggle source jtoggle button action source toggle source set selected false if containing window null containing window remove component listener this containing window null if action source null action source remove component listener this action source null check if popup is visible if popup null popup component set visible false popup component stop tracking hide popup and reset popup dispose popup null hide time system current time millis return true return false
|
hides the popup component
|
public void start tracking window containing window component action source this containing window containing window keyboard focus manager get current keyboard focus manager add property change listener permanent focus owner this
|
starts tracking of focus change
|
private boolean is focus inside object new focused comp if new focused comp instanceof popup return true if new focused comp instanceof component swing utilities is descending from component new focused comp this check if focus is on other window if containing window null return false window focused window keyboard focus manager get current keyboard focus manager get active window if focus is on other window return true if containing window focused window return false return true
|
checks if the focus is still on this component or its child components
|
public void expand all cancel editing final tree model tm get model final object root tm get root nothing to expand if no root if root null expand all paths new tree path root tm
|
expands all paths in the tree
|
public void expand all paths tree path path cancel editing expand all paths path get model
|
opens all paths in the given node and all nodes below that
|
protected void expand all paths tree path path tree model tree model expand path path final object node path get last path component final int n tree model get child count node for int index 0 index n index final object child tree model get child node index expand all paths path path by adding child child
|
opens all paths in the given node and all nodes below that
|
public void drag drop end drag source drop event dsde drag source context dsc dsde get drag source context jcomponent c jcomponent dsc get component if dsde get drop success abstract patched transfer handler c get transfer handler export done c dsc get transferable dsde get drop action else abstract patched transfer handler c get transfer handler export done c dsc get transferable none c set autoscrolls scrolls fire drag ended
|
as the operation completes
|
public dimension get preferred size dimension ret dimension super get preferred size if ret dimension null ret dimension new dimension ret dimension width 3 ret dimension height 3 return ret dimension
|
overrides code jcomponent
|
private void hide drop denied tooltip if tip window null static debug debug dnd popup hide tooltip tip window hide tip window null if hide timer is running static debug debug dnd popup hide timer is running stopping it hide timer stop if show timer is running static debug debug dnd popup show timer is running stopping it show timer stop
|
hides popup and stops hide and show time if they are running
|
public void set chart engine jfree chart plot engine engine if engine null throw new illegal argument exception engine must not be null this engine engine set plot configuration engine get plot instance get master plot configuration
|
sets the current
|
public void show dialog update line list set visible true
|
shows the dialog
|
private void set plot configuration plot configuration plot config if plot config null throw new illegal argument exception plot config must not be null this plot config plot config vector range axis config range configs vector new vector range axis config for range axis config config this plot config get range axis configs range configs vector add config range axis selection combobox set model new default combo box model range configs vector
|
sets the current
|
private void set vertical line selected show horizontal lines range axis selection combobox set enabled false lines list clear selection get all horizontal lines and display them default list model model new default list model list axis parallel line configuration domain lines engine get plot instance get master plot configuration get domain config manager get crosshair lines get lines for int i 0 i domain lines size i axis parallel line configuration line domain lines get i model add element line lines list set model model
|
vertical lines selected
|
private void delete selected lines no selection if lines list get selected index 1 return for object value lines list get selected values axis parallel line configuration line axis parallel line configuration value if horizontal line radiobutton is selected horizontal remove from selected range axis config range axis config config range axis config range axis selection combobox get selected item config get cross hair lines remove line line else vertical remove from domain config manager engine get plot instance get master plot configuration get domain config manager get crosshair lines remove line line update line list
|
deletes the selected lines
|
private void modify selected line cannot modify if more than one is selected if lines list get selected indices length 1 return axis parallel line configuration line axis parallel line configuration lines list get selected value if line null if dialog null dialog new edit parallel line dialog dialog set line line true dialog show dialog
|
modifes the selected line
|
private void update line list update displayed list of lines if horizontal line radiobutton is selected set horizontal line selected else set vertical line selected update button states
|
updates the displayed list of lines
|
private void update button states enable buttons according to selection if lines list get selected values length 0 delete selected lines button set enabled false modify selected line button set enabled false return else if lines list get selected values length 1 delete selected lines button set enabled true modify selected line button set enabled true else if lines list get selected values length 1 delete selected lines button set enabled true modify selected line button set enabled false
|
updates the delete edit buttons according to the selection
|
private boolean verify domain range upper bound input jcomponent input jtext field text field jtext field input string input string text field get text try double domain upper bound if input string starts with domain upper bound double parse double input string substring 1 domain upper bound domain upper bound else domain upper bound double parse double input string todo fix check for actual ranges catch number format exception e text field set foreground color red return false text field set foreground color black return true
|
verify that the x value is correct
|
private boolean verify domain range lower bound input jcomponent input jtext field text field jtext field input string input string text field get text try double domain lower bound if input string starts with domain lower bound double parse double input string substring 1 domain lower bound domain lower bound else domain lower bound double parse double input string todo fix check for actual ranges catch number format exception e text field set foreground color red return false text field set foreground color black return true
|
verify that the y value is correct
|
private boolean verify value range lower bound input jcomponent input jtext field text field jtext field input string input string text field get text try double value lower bound if input string starts with value lower bound double parse double input string substring 1 value lower bound value lower bound else value lower bound double parse double input string todo fix check for actual ranges catch number format exception e text field set foreground color red return false text field set foreground color black return true
|
verify that the width value is correct
|
private boolean verify value range upper bound input jcomponent input jtext field text field jtext field input string input string text field get text try double value upper bound if input string starts with value upper bound double parse double input string substring 1 value upper bound value upper bound else value upper bound double parse double input string todo fix check for actual ranges catch number format exception e text field set foreground color red return false text field set foreground color black return true
|
verify that the height value is correct
|
public void set mouse position point mouse position if mouse position null throw new illegal argument exception mouse position must not be null this mouse position mouse position
|
sets the mouse position defines preselected x y values
|
public void show dialog if line null line create line 1 0 else line line clone if horizontal line radiobutton is selected line set value double parse double y field get text else line set value double parse double x field get text set visible true
|
shows the dialog
|
private void set horizontal line selected horizontal line so only y value and range axis is of interest disable other fields range axis selection combobox set enabled true x field set enabled false y field set enabled true ok button request focus in window
|
horizontal line selected
|
private void set vertical line selected vertical line so only x value is of interest disable other fields range axis selection combobox set enabled false x field set enabled true y field set enabled false ok button request focus in window
|
vertical line selected
|
private boolean verify yinput jcomponent input jtext field text field jtext field input string input string text field get text try double parse double input string catch number format exception e text field set foreground color red return false text field set foreground color black return true
|
verify that the y value is correct
|
private boolean verify xinput jcomponent input jtext field text field jtext field input string input string text field get text try double parse double input string catch number format exception e text field set foreground color red return false text field set foreground color black return true
|
verify that the x value is correct
|
private boolean verify value input jcomponent input jtext field text field jtext field input string input string text field get text try double parse double input string catch number format exception e text field set foreground color red return false text field set foreground color black return true
|
verify that the value is correct
|
private boolean verify width input jcomponent input jtext field text field jtext field input string input string text field get text try float width float parse float input string if width 0 0 text field set foreground color red return false catch number format exception e text field set foreground color red return false text field set foreground color black return true
|
verify that the value is correct
|
private void create line color dialog color old color line get format get color if old color null old color color black color new line color jcolor chooser show dialog null i18 n get guilabel edit parallel line line color title label old color if new line color null new line color equals old color line color new line color
|
shows a dialog where the user can select the plot background color
|
private axis parallel line configuration create line double value axis parallel line configuration line new axis parallel line configuration value false line get format set style line style solid return line
|
creates a new
|
public jpanel get template chooser control panel return control container panel
|
returns the panel containg the control panel of the selected template
|
public jpanel get template chooser chart panel return template chart panel
|
returns the panel containg the chart panel of the selected template
|
public jpanel get template chooser style provider panel return style provider container panel
|
returns the panel containg the style provider panel of the selected template
|
private void draw selection rectangle graphics2 d g2 if this selection rectangle null if this fill selection rectangle g2 set paint this selection fill paint g2 fill selection rectangle else g2 set paint this selection outline paint g2 draw selection rectangle
|
draws zoom rectangle if present
|
private plot instance create basic plot instance data table data table data table column domain data table column plot configuration plot configuration new plot configuration domain data table column plot instance plot instance new plot instance plot configuration data table return plot instance
|
creates a basic
|
public void set plotter template plotter template template this template template
|
sets the new
|
public plotter template get plotter template return template
|
returns the currently wrapped
|
public void set bins int bins if bins 0 bins 100 throw new illegal argument exception bins must be 0 and 100 this bins bins update plot configuration set changed notify observers
|
sets the number of bins
|
public int get bins return bins
|
returns the number of bins
|
public void set opaque int opaque if opaque 0 opaque 255 throw new illegal argument exception opaque must be 0 and 255 this opaque opaque update plot configuration set changed notify observers
|
sets the opacity
|
public data table get data table return current data table
|
gets the current
|
public int get opacity return opaque
|
returns the opacity
|
public void force update update plot configuration
|
forces an update of the chart
|
public data table get current data table return this current data table
|
gets the current
|
public void replace temporarily current data table data table replacement table boolean create backup if create backup current data table backup current data table current data table replacement table convert to meta information data table update meta data table current data table update plot configuration set changed notify observers
|
replaces the current
|
public void revert to backup data table if current data table backup null return current data table current data table backup current data table backup null convert to meta information data table update meta data table current data table update plot configuration set changed notify observers
|
returns the current
|
public boolean has backup data table return current data table backup null
|
returns code true code if a backup of the current
|
private void revert save initial color schemes initial active color scheme name
|
resets the dialog to the initial color schemes and active color scheme
|
public data table get backup data table return current data table backup
|
gets the backup
|
public void set use absolute values boolean use absolute values this use absolute values use absolute values update plot configuration set changed notify observers
|
sets whether absolute values should be used or not
|
public boolean is using absolute values return use absolute values
|
returns whether absolute values are used or not
|
public void set yaxis logarithmic boolean y axis logarithmic this y axis logarithmic y axis logarithmic update plot configuration set changed notify observers
|
sets whether the range y axis should be logarithmic or not
|
public boolean is yaxis logarithmic return y axis logarithmic
|
returns whether the range y axis is logarithmic or not
|
public void set lower bound name string column name lower bound name column name update plot configuration set changed notify observers
|
sets the name for the lower bound column
|
public string get lower bound name return lower bound name
|
returns the name of the lower bound column
|
public void set plot selection object plot names this plot names plot names plot selection has changed update meta information data table update meta data table current data table update plot configuration set changed notify observers
|
sets the currently selected plots by their name
|
public void set upper bound name string column name upper bound name column name update plot configuration set changed notify observers
|
sets the name for the upper bound column
|
public string get upper bound name return upper bound name
|
returns the name of the upper bound column
|
public void set title text string title if title null throw new illegal argument exception title must not be null this chart title title if block updates set changed notify observers
|
set the chart title
|
public void set index dimension name string column name index name column name update plot configuration set changed notify observers
|
sets the name for the index dimension column
|
public void set show legend boolean show legend this show legend show legend if block updates set changed notify observers
|
set whether the legend should be shown or not
|
public string get index dimension name return index name
|
returns the name of the index dimension column
|
public void set plot selection object plot names this plot names plot names update plot configuration set changed notify observers
|
sets the currently selected plots by their name
|
public void set axes font font axes font if axes font null throw new illegal argument exception axes font must not be null this axes font axes font if block updates set changed notify observers
|
sets the axes
|
public void set use relative utilities boolean use relative utilities this use relative utilities use relative utilities update plot configuration set changed notify observers
|
if set to code true code will simply add utilities otherwise not
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.