input
stringlengths
10
828
output
stringlengths
5
107
public double inverse transform double value return value
transforms the given value by just returning it
public string format double value int format number return format format value
returns the formatted value
public void stop updates boolean value
this default implementation does nothing
public double adapt tics min double min double tic size return math floor min tic size tic size
adapts the minimum corresponding to the given tic size
public double adapt tics max double max double tic size return math ceil max tic size tic size
adapts the maximum corresponding to the given tic size
public void set mouse pos in data space int x int y color plotter point point get plotter point for pos x y if point null string id point get id if id null set tool tip id x transformation transform point get x y transformation transform point get y else set tool tip null 0 0d 0 0d else set tool tip null 0 0d 0 0d
sets the mouse position in the shown data space
public icon get icon int index return line style icons index line style icons length
returns a line icon depending on the index
public point2 d get position in data space java awt point p double pix width get width 2 margin double pix height get height 2 margin double data x p get x margin max x axis min x axis pix width min x axis double data y pix height p get y margin max y axis min y axis pix height min y axis return new point2 d double data x data y
returns the position in data space from a position
public boolean is supporting log scale int axis if axis x axis axis y axis return true else return super is supporting log scale axis
returns true if a log scale for this column is supported
public void paint bar graphics2 d g2 bar renderer renderer int row int column rectangular shape bar rectangle edge base
paints a single bar instance
public boolean equals object obj if obj this return true if obj instanceof rapid xybar painter return false rapid xybar painter that rapid xybar painter obj if this g1 that g1 return false if this g2 that g2 return false if this g3 that g3 return false return true
tests this instance for equality with an arbitrary object
public void set log scale int axis boolean log scale if axis x axis if log scale x transformation new axis transformation log else x transformation new axis transformation id else if axis y axis if log scale y transformation new axis transformation log else y transformation new axis transformation id repaint
sets if the given axis should be plotted with log scale
public icon get icon int index return null
returns a line icon depending on the index
public void set bin number int bin number this bin number bin number update plotter
indicates how many bins should be used for the distribution plot
public void set jitter int jitter this jitter amount jitter update plotter
sets the level of jitter and initiates a repaint
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 set log scale int axis boolean log scale if axis 0 x log scale log scale update plotter
sets if the given axis should be plotted with log scale
public void set mouse pos in data space int x int y if show example plotter point point get plotter point for pos x y if point null string id data table get row point get data table index get id if id null set tool tip id point get current pertubated x point get current pertubated y else set tool tip null 0 0d 0 0d else set tool tip null 0 0d 0 0d
sets the mouse position in the shown data space
public boolean equals object obj if obj this return true if obj instanceof rapid bar painter return false rapid bar painter that rapid bar painter obj if this g1 that g1 return false if this g2 that g2 return false if this g3 that g3 return false return true
tests this instance for equality with an arbitrary object
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 equals object obj if obj this return true if obj instanceof pareto chart item label generator return false return super equals obj
tests this generator for equality with an arbitrary object
public string generate label category dataset dataset int row int column string key string dataset get column key column return item labels get key
generates the label for an item in a dataset
public void set log scale int axis boolean log scale log scales axis log scale update plotter
sets if the given axis should be plotted with log scale
public void set additional parameter string key string value if rotate labels equals key set rotate labels com rapidminer tools tools boolean value value false
the default implementation does nothing
protected boolean is horizontal plot plot plot if plot instanceof xyplot return xyplot plot get orientation plot orientation horizontal if plot instanceof fast scatter plot return fast scatter plot plot get orientation plot orientation horizontal return false
returns the plot orientation
public void set log scale for plot columns boolean log scale plot columns log scale log scale update plotter
sets if the given axis should be plotted with log scale
public double get fixed domain shift units return fixed domain shift units
returns the fixed shift step for the domain axis
public void set fixed domain shift units double fixed domain shift units this fixed domain shift units fixed domain shift units
sets the fixed shift step for the domain axis
public double get fixed range shift units return fixed range shift units
returns the fixed shift step for the range axis
public void set fixed range shift units double fixed range shift units this fixed range shift units fixed range shift units
sets the fixed shift step for the range axis
public int get shift type return shift type
returns the current shift type
public void set shift type int shift type this shift type shift type
sets the shift type
public boolean is plot supported return plot supported
returns whether or not the plot supports shifting
public void set log scale int axis boolean log scale
sets if the given axis should be plotted with log scale
public void set log scale for plot columns boolean log scale
sets if the plot columns should be plotted with log scale
public void prepare rendering force plot generation
invokes force plot generation
public void set additional parameter string key string value
the default implementation does nothing
public void set k int k this k k repaint
indicates how many bins should be used for the distribution plot
public string get column name int col return column names current mapping col
returns one of the following nine column names br
public string get column tool tip int column if column 0 column current mapping length return else return column tool tips current mapping column
returns the tool tip text for the specified column
public boolean show disabled operators return this show disabled operators
indicates if disabled operators should be displayed by the tree
public void set show disabled operators boolean show this show disabled operators show
sets the state of showing diabled operators
public object get child object parent int index if parent instanceof operator chain if show disabled operators return operator chain parent get operator from all index else return operator chain parent get operator index else return null
returns the child with the given index
public int get child count object parent if parent instanceof operator chain if show disabled operators return operator chain parent get number of all operators else return operator chain parent get number of operators else return 0
returns the number of children operators
public int get index of child object parent object child if parent instanceof operator chain return operator chain parent get index of operator operator child show disabled operators else return 1
returns the index of the child operator with respect to the given parent
public void fire operator inserted object source tree path path int index operator operator if index 0 iterator i tree model listeners iterator while i has next tree model listener i next tree nodes inserted new tree model event source path new int index new object operator
must be used to indicate that a new operator was added
public void fire operator removed object source tree path path int index operator operator if index 0 iterator i tree model listeners iterator while i has next tree model listener i next tree nodes removed new tree model event source path new int index new object operator
must be used to indicate that an operator was removed
public void fire operator renamed object source tree path path iterator i tree model listeners iterator while i has next tree model listener i next tree nodes changed new tree model event source path
must be used to indicate that an operator was renamed
public void process key event key event evt super process key event evt switch evt get id case key event key released save comment break
overwrites the super method in order to save the typed text
public void fire operator changed object source tree path path iterator i tree model listeners iterator while i has next tree model listener i next tree nodes changed new tree model event source path
must be used to indicate that an operator was changed in some way
public void set current operator operator current operator if current operator null 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
public void fire structure changed object source tree path path iterator i tree model listeners iterator while i has next tree model listener i next tree structure changed new tree model event source path
must be used to indicate that the tree structure has changed
public void value for path changed tree path path object node fire tree changed node path
will be invoked after editing changes of nodes
private process editor get process editor int index switch index case xml return xml editor case comment return comment editor default return null
currently the only process editor beside the operator tree is the xml editor
public dn dsupport get associated dn dsupport return associated dn dsupport
registers this instance of the operator tree at the drag drop support
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 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 int i tabs get tab count 1 i 0 i component c tabs get component at i if c instanceof data table viewer tabs remove tab at i int pos 0 for data table viewer viewer viewers tabs insert tab viewer get data table get name data table icon viewer the data table viewer get data table get name pos pos
adds the collection of components in the edt after removing the old tables
public operator get selected operator tree path path get selection path if path null return null else return operator path get last path component
returns the currently selected operator i
public operator get clip board return clip board
returns the current clip board
public void set structure locked boolean locked this is structure locked locked toggle structure lock action 24 update icon toggle structure lock action 32 update icon
sets the current lock status for the drag and drop locking
public void refresh refresh new tree path tree model get root
this method causes a refresh of the existing operators without restructuring
private string to html string string string str string str str replace all gt str str replace all lt str str replace all tools get line separator br return str
encodes the given string as html
public void refresh tree path path tree model fire operator changed this path object object path get last path component int number of children tree model get child count object for int i 0 i number of children i object child tree model get child object i refresh path path by adding child child
this method causes a refresh of the given path
public void cut operator selected operator get selected operator if selected operator null clip board selected operator delete if main frame null main frame enable actions
cuts the currently selected operator into the clipboard
public void copy operator selected operator get selected operator if selected operator null clip board selected operator clone operator selected operator get name if main frame null main frame enable actions
copies the currently selected operator into the clipboard
public data table get data table object renderable iocontainer container example set example set example set renderable attribute weights weights null if container null try weights container get attribute weights class for attribute attribute example set get attributes double weight weights get weight attribute get name if double is na n weight not compatible weights null break catch missing ioobject exception e return new data table example set adapter example set weights
this method is used to create a
public void paste if clip board null insert clip board clip board clip board clone operator clip board get name if main frame null main frame enable actions
pastes the current clipboard into the tree
public void delete operator selected operator get selected operator if selected operator null return int index tree model get index of child selected operator get parent selected operator selected operator remove tree model fire operator removed this get selection path get parent path index selected operator if main frame null main frame process changed main frame enable actions
the currently selected operator will be deleted
public void rename operator tree path path get selection path if path null returns immediately no refresh possible after this method start editing at path path
renames the currently selected operator
public void add int row table cell editor editor cell editors get row add editor
adds a new cell editor in the given row
public table cell editor get int row int column return cell editors get row get column
returns the cell renderer in the given row and column
public int get size return cell editors size
returns the number of rows
public int get size int i return cell editors get i size
returns the size of the i th row
public void show operator info operator selected operator get selected operator if selected operator null operator info screen info screen new operator info screen main frame selected operator info screen set visible true
shows the info dialog for the currently selected operator
public void add int row table cell renderer renderer cell renderers get row add renderer
adds a new cell renderer in the given row
public table cell renderer get int row int column return cell renderers get row get column
returns the cell renderer in the given row and column
public int get size return cell renderers size
returns the number of rows
public int get size int i return cell renderers get i size
returns the size of the i th row
private string get property value int index object value get model get value at index 1 if value null return null return value to string
returns the value of the property with the given index as string
public void apply properties apply properties system get properties
applies the properties without saving them
public void toggle operator activation operator selected operator get selected operator if selected operator null boolean state selected operator is enabled toggle operator activation state
toggles if the currently selected operator should be enabled
public void toggle operator activation boolean state operator selected operator get selected operator if selected operator null selected operator set enabled state complete refresh repaint if main frame null main frame process changed
toggles if the currently selected operator should be enabled
public void toggle show disabled operators tree model set show disabled operators tree model show disabled operators complete refresh
toggles if disabled operators should be shown
public void toggle breakpoint int position boolean state operator selected operator get selected operator if selected operator null selected operator set breakpoint position state toggle breakpoint position set selected state refresh if main frame null main frame process changed
this method toggles the breakpoint with the given position into the given state
private void evaluate single click int row tree path path set selection path path if main frame null main frame enable actions
invokes the selection and causes an update of the conditional action list
private void evaluate double click int row tree path path set selection path path if get selected operator has breakpoint toggle breakpoint breakpoint listener breakpoint before false toggle breakpoint breakpoint listener breakpoint within false toggle breakpoint breakpoint listener breakpoint after false else toggle breakpoint breakpoint listener breakpoint after true
removes existing breakpoints or add a new breakpoint after the currently selected operator
public void add operator menu items jmenu menu menu add rename operator action 24 menu add copy action 24 menu add cut action 24 menu add paste action 24 menu add delete operator action 24 menu add separator menu add save building block action 24
adds the operator tree actions to the given menu
public parameters get parameters return new parameters
returns an empty parameters object
public void add element object object string tooltip super add element object tool tip map put object tooltip enabled map put object true
adds another list entry and the corresponding tooltip
public boolean remove element object object tool tip map remove object enabled map remove object return super remove element object
removes a list entry
public boolean is enabled object object if enabled map contains key object return enabled map get object else return false
returns whether element is enabled or not
public string get tool tip object object return tool tip map get object
returns the tooltip corresponding to a list entry
public string get tool tip int index if index 0 return null else return tool tip map get get index
returns the tooltip corresponding to a list entry specified as index
private jpopup menu create operator popup menu jpopup menu menu new jpopup menu menu add this info operator action 24 return menu
creates a new popup menu for the selected operator
private void update data control set first row 1 data control set last row math min data control get max rows get default maximum number rowlimit data control get max rows data control set first column 1 data control set last column math min data control get max columns get default maximum number columnlimit data control get max columns data control update
this method should be invoked after data changes
public void update int first row int last row int first column int last column int what this first row first row this last row last row this first column first column this last column last column model fire table structure changed
sets the new view data and fire a table structure changed event
public void execute runnable runnable synchronized lock pending runnable lock notify all
queues runnable for execution
suppress warnings unchecked public void add key binding string key binding action listener action hashtable key stroke object current bindings string tokenizer st new string tokenizer key binding while st has more tokens key stroke key stroke parse key stroke st next token if key stroke null return if st has more tokens object o current get key stroke if o instanceof hashtable current hashtable o else o new hashtable current put key stroke o current hashtable key stroke object o else current put key stroke action
adds a key binding to this input handler
public void set invalid lines painted boolean paint invalid this paint invalid paint invalid repaint
sets if invalid lines are to be painted as red tildes
public string get tool tip text mouse event e int index location to index e get point return extended list model get model get tool tip index
returns the tooltip of a list entry