input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
public boolean is using relative utilities return use relative utilities
|
if code true code uses relative utilities otherwise not
|
public void set legend font font legend font if legend font null throw new illegal argument exception legend font must not be null this legend font legend font if block updates set changed notify observers
|
sets the legend
|
public void set colors list color rgb list of colors if list of colors null throw new illegal argument exception list of colors must not be null this list of colors list of colors
|
sets the list of
|
public void add color color rgb color if list of colors contains color return this list of colors add color
|
adds a color to the color scheme
|
public void add color int index color rgb color int old idx list of colors index of color if old idx 1 list utility change index list of colors color index else this list of colors add index color
|
adds a color to the color scheme at specified index
|
public void remove color color rgb color this list of colors remove color
|
removes the specified color from the
|
public void set title font font title font if title font null throw new illegal argument exception title font must not be null this title font title font if block updates set changed notify observers
|
sets the title
|
public string get xaxis column return x axis column
|
returns the name of the domain x axis column
|
private void check if buttons enabled remove category color button set enabled nominal color list model get size 2 boolean enable scheme remove color scheme color scheme combo box get selected item get name equals i18 n get guilabel plotter default color scheme name label remove scheme button set enabled color scheme combo box model get size 2 enable scheme remove rename scheme button set enabled enable scheme remove
|
check if category or scheme button have to be enabled
|
public void set selected color scheme index int index synchronized synchronize color scheme list object if index 0 index list of color schemes size throw new illegal argument exception index must be 0 and number of available color schemes color scheme index index if block updates set changed notify observers
|
set the index of the currently selected
|
public string get yaxis column return y axis column
|
returns the name of the range y axis column
|
public void set color colum string column name if column name null throw new illegal argument exception column name must not be null color column column name update plot configuration set changed notify observers
|
set the name of the column which will be used as the color
|
private void create frame background color dialog default plotter style provider style provider color old color color rgb convert to color style provider get frame background color if old color null old color color white color new background color jcolor chooser show dialog null i18 n get guilabel plotter configuration dialog global config panel chart background color title label old color if new background color null new background color equals old color style provider set frame background color color rgb convert color to color rgb new background color
|
shows a dialog where the user can select the frame background color
|
public string get color column return color column
|
returns the name of the column used for the color
|
private void create plot background color dialog default plotter style provider style provider color old color color rgb convert to color style provider get plot background color if old color null old color color white color new background color jcolor chooser show dialog null i18 n get guilabel plotter configuration dialog global config panel plot background color title label old color if new background color null new background color equals old color style provider set plot background color color rgb convert color to color rgb new background color
|
shows a dialog where the user can select the plot background color
|
public int get selected color scheme index return color scheme index
|
returns the index of the currently selected
|
public void set xaxis logarithmic boolean log x axis logarithmic log update plot configuration set changed notify observers
|
sets whether the domain x axis should be logarithmic or not
|
public void add color scheme color scheme color scheme add color scheme color scheme list of color schemes size
|
appends the given
|
public boolean is xaxis logarithmic return x axis logarithmic
|
returns whether the domain x axis is logarithmic or not
|
public void set yaxis logarithmic boolean log y axis logarithmic log update plot configuration set changed notify observers
|
sets whether the range y axis should be logarithmic or not
|
public void add color scheme color scheme color scheme int index if color scheme null throw new illegal argument exception color scheme must not be null if index list of default color schemes size throw new illegal argument exception cannot add a color scheme before the default color schemes index math min list of color schemes size index synchronized synchronize color scheme list object if list of color schemes contains color scheme list of color schemes add index color scheme else throw new illegal argument exception duplicate color scheme not allowed if block updates set changed notify observers
|
adds the given
|
public void set color logarithmic boolean log color logarithmic log update plot configuration set changed notify observers
|
sets whether the color should be logarithmic or not
|
public int get user width return width
|
returns the width the user specified
|
public void remove color scheme int index if index 0 throw new illegal argument exception index must not be 0 if index list of default color schemes size throw new illegal argument exception cannot remove a default color scheme synchronized synchronize color scheme list object list of color schemes remove index
|
removes the given
|
public int get return value return return val
|
returns the return value indicating the user choice
|
public int get user height return height
|
returns the height the user specified
|
public boolean is color logarithmic return color logarithmic
|
returns whether the color is logarithmic or not
|
public void show dialog return val joption pane cancel option set visible true ok button request focus in window
|
shows the dialog
|
public void remove color scheme color scheme color scheme synchronized synchronize color scheme list object if list of default color schemes contains color scheme throw new illegal argument exception cannot remove a default color scheme list of color schemes remove color scheme
|
removes the given
|
public void set jitter int jitter if jitter 0 jitter 100 throw new illegal argument exception jitter must be between 0 and 100 this jitter jitter set changed notify observers update plot configuration
|
sets the jitter for the plot
|
public int get jitter return jitter
|
returns the current jitter setting for the plot
|
public sorted data table view get data table if data table is valid update filtered data table return sorted data table view
|
this method can be very slow
|
public data table get data table boolean sampled sorted data table view current data table get data table if sampled return current data table else if cached sampled data table null if current data table null return null int max row count plot configuration get max allowed value count if current data table get row number max row count cached sampled data table current data table else cached sampled data table current data table sample max row count return cached sampled data table
|
returns the data table
|
public data table get data table for group cell group cell key group cell key if cached group cell to data table map null apply grouping return cached group cell to data table map get group cell key
|
returns the filtered data for a single group cell
|
public double get lower view bound if range axis config is using user defined lower view bound return range axis config get user defined range get lower bound else if cached auto view range null update value cache return cached auto view range get lower bound
|
this function is used receiving the viewing range of this range axis only
|
public double get upper view bound if range axis config is using user defined upper view bound return range axis config get user defined range get upper bound else if cached auto view range null update value cache return cached auto view range get upper bound
|
this function is used receiving the viewing range of this range axis only
|
private void apply grouping cached group cell to data table map new hash map group cell key data table get vector of all dimensions vector plot dimension dimension list new vector plot dimension dimension list add all plot instance get current plot configuration clone get default dimension configs key set dimension list add plot dimension domain create group cell data dimension list 0 plot instance get plot data get data table value source is sampling suggested null
|
fills cached group cell to data table map i
|
public void set coordinate transformation coordinate transformation transformation this coordinate transformation transformation
|
this method sets the coordinate transformation for this component
|
public double get max value if get dimension config is grouping if double is na n cached max group value update grouping model return cached max group value else if double is na n cached max value update value cache return get effective range get upper bound
|
if get range is not null returns the same as get range
|
public void clear selection listener this selection listeners clear
|
this one clears the complete list of registered selection listeners
|
public rectangle edge get position return position
|
caution may be code null code
|
public string get label return name
|
returns the name of the
|
public void set label string name if name null name this name name equals this name this name name fire label changed
|
sets the name of the plot range axis
|
public void set domain axis zoom range domain axis zoom link and brush selection e if domain axis zoom null throw new illegal argument exception domain axis range must not be null this domain axis zoom domain axis zoom if e null inform link and brush listeners e
|
sets the domain axis zoom
|
private boolean check double for equality double expected double actual if expected actual return true if double is na n expected double is na n actual return false if double is na n expected double is na n actual return false final double max relative error 0 000000001 double relative error if math abs actual math abs expected relative error math abs expected actual actual else relative error math abs expected actual expected if relative error max relative error return false else return true
|
returns true if equality has been found false otherwise
|
public void clear value sources for value source value source value source list value source remove all listeners value source list clear set auto label if enabled fire cleared
|
unsubscripes all listeners from value sources and clears value source list afterwards
|
public void add link and brush listener link and brush listener l listeners add new weak reference link and brush listener l
|
adds the given
|
public void remove link and brush listener link and brush listener l iterator weak reference link and brush listener it listeners iterator while it has next link and brush listener listener it next get if l null if listener null listener equals l it remove else it remove
|
removes the given
|
public void add line axis parallel line configuration line if line configurations contains line return line configurations add line line add axis parallel line configuration listener this line get format add line format listener line fire line added line
|
adds the given
|
public void set label string label if label null label this label label equals this label this label label fire value source changed new value source change event this label
|
sets the name of the plot range axis
|
public void add range axis config range axis config range axis add range axis config range axis configs size range axis
|
adds a plot range axis to this plot configuration
|
public value type get domain config value type return get domain config get value type
|
returns the associated domain configs value type
|
public color get item color return item color
|
the ready to use item color including correct opacity
|
public void set item color color item color if item color null this item color null item color equals new color this item color get red this item color get green this item color get blue item color get alpha color opacity item color new color item color get red item color get green item color get blue opacity this item color opacity item color fire changed new series format change event this series format change type item color this item color
|
sets the item color to item color
|
public void remove plot configuration listener plot configuration listener l iterator weak reference plot configuration listener it prioritized listeners iterator while it has next plot configuration listener listener it next get if listener null listener l it remove iterator weak reference plot configuration listener it default default listeners iterator while it default has next plot configuration listener listener it default next get if listener null listener l it default remove
|
removes prioritized and default listeners if contained in one of these
|
protected void invalidate cache cached grouping model null
|
is called each time the underlying data or the data column changes
|
public boolean is using domain grouping return use domain grouping
|
returns true if this value source delivers aggregated values of some kind
|
public int get value index int row int column int value idx if group cell key to domain value to value idx cache null update values cache group cell key group cell key value source data get series data for all group cells get group cell key and data row get key map integer vector integer map group cell key to domain value to value idx cache get group cell key vector integer vector map get column return vector get value idx
|
this function maps from data set index to value source index
|
public void set use domain grouping boolean use domain grouping if this use domain grouping use domain grouping this use domain grouping use domain grouping set auto label if enabled fire value source changed new value source change event this value source change type uses grouping use domain grouping
|
defines if this value source uses the domain grouping provided by the
|
public paint get series fill paint int series idx if individual color for each item if color provider null if series color from dimension config double color idx get value of current range series idx plot dimension color color series color color provider get color for value color idx series color data structure utils set color alpha series color data structure utils multiply opacities256 series color get alpha series format get opacity paint series paint series format get area fill paint series color return series paint return series format get area fill paint else return null
|
if a series color for series idx is set returns that color
|
public boolean is item selected int series idx int value idx double selected value get item value series idx plot dimension selected value idx boolean selected selected value 1 true false return selected
|
returns if the given item is selected aka value of 1 in the
|
public boolean get zoom on link and brush selection return zoom on link and brush selection
|
returns whether the panel will zoom on selection or not
|
private shape scale shape shape shape double scaling factor scale shape if necessary if scaling factor 1 affine transform t new affine transform t scale scaling factor scaling factor shape t create transformed shape shape return shape
|
scales a shape according to the scaling factor for value
|
public boolean is sampling suggested if is using domain grouping return true else return false
|
returns true iff this
|
public jfree chart get current chart jfree chart current chart chart panel get chart if current chart null return new jfree chart new category plot return current chart
|
use to retrieve the current
|
private rectangle2 d draw fill graphics2 d g2 rectangle2 d area rectangle2 d filled area rectangle2 d area clone filled area trim margin filled area filled area trim border filled area area trim padding area g2 set paint this fill paint g2 fill filled area draw border g2 filled area return filled area
|
draws a colored background
|
private object get chart field value by name string name try field field chart panel class get declared field name field set accessible true object value field get this field set accessible false return value catch exception e e print stack trace return null
|
returns the value of a
|
public void set popup location point location latest popup location location
|
sets the location where the popup has been triggered
|
private void set chart field value field field object value try field set accessible true field set this value field set accessible false catch exception e e print stack trace
|
sets the given value for the given
|
private legend item create title legend item string title string plot configuration plot configuration legend item title item new legend item title string false new rectangle false color white false color white new basic stroke false new rectangle new basic stroke color white font title font title item get label font if title font null title font plot configuration get legend configuration get legend font title item set label font title font derive font font bold return title item
|
creates a title item i
|
private jfree chart create chart throws chart plottime exception plot plot create plot if plot null throw new chart plottime exception the plot created was a null plot jfree chart chart new jfree chart plot format chart chart return chart
|
creates a new
|
public dimension config get dimension config plot dimension dimension if dimension plot dimension domain return domain config manager return dimension config map get dimension
|
returns the dimension config for the specified dimension
|
public boolean replot if initializing return true plot instance get master of desaster clear all invalidate cache update chart panel chart true return false
|
is called to clear the
|
public void update parameters input port input port this parameters new parameters get parameter types input port
|
this method overrides all existing parameters
|
private double get value long now system current time millis if up if now start time delay return 0d else if now start time delay interval return extension value else return extension value damp double now double start time delay interval else if now start time return extension value else if now start time interval return 0d else return extension value extension value damp double now double start time interval
|
returns the interpolated value at this point of time
|
private boolean is done long now return up now start time delay interval up now start time interval
|
returns true iff time is up
|
private double damp double value return math sqrt value
|
rescales the interpolated value to make it smoother
|
public void roll out operator operator map put operator new interpolated value true 1d if timer is running timer start
|
starts interpolating the extension value for the given operator
|
public void roll in operator operator map put operator new interpolated value false get value operator if timer is running timer start
|
starts interpolating the extension value for the given operator in the opposite direction
|
public double get value operator op interpolated value val map get op if val null return 0d else double value val get value return value
|
returns the current interpolated value for the given operator
|
public boolean is grouping required for new value source range axis config range axis list value source value sources range axis get value sources for value source source value sources if source is using domain grouping get domain config manager is nominal return true return false
|
returns whether grouping is required or not
|
public int get index of range axis config by id int id int idx 0 for range axis config range axis config get range axis configs if range axis config get id id return idx idx return 1
|
returns the index of the
|
private int get drop insertion index int process index if drop insertion predecessor null return processes process index get operators size else return drop insertion predecessor get execution unit get operators index of drop insertion predecessor 1
|
returns the index at which an operator should be inserted
|
public void trigger replot fire plot configuration changed new plot configuration change event this
|
this function can be used to fire a trigger replot event
|
protected void unregister listener meta data provider mdp attribute type get meta data provider if mdp null mdp remove meta data change listener this
|
this method will unregister this model from the input port
|
public void apply properties for parameter type type shown parameter types string value parameter values get property type get key parameter service set parameter value type value
|
applies the properties without saving them
|
protected void set value operator operator parameter type type string value boolean update components set value operator type value
|
subclasses of property panel e
|
public void set label text color color color font color color
|
this sets the color of the labels of properties
|
public void save throws ioexception apply properties parameter service save parameters
|
this method will save the parameters defined in this tab
|
private void change process size key event e execution unit unit dimension size process sizes get unit switch e get key code case key event vk left change process size unit grid width 0 break case key event vk right change process size unit grid width 0 break case key event vk up change process size unit 0 grid height break case key event vk down change process size unit 0 grid height break
|
adapts the process size according to the key event
|
protected void set value operator operator parameter type type string value if parameters null parameters set parameter type get key value key value map put type get key value setup components
|
this implementation ignores the operator since it is null anyway
|
public void enable actions if swing utilities is event dispatch thread enable actions now else swing utilities invoke later new runnable public void run enable actions now update checkbox states
|
enables and disables all actions according to the current state
|
public void cut copy delete
|
cuts the currently selected operator into the clipboard
|
public void copy operator selected operator get selected operator if selected operator null list operator clones new linked list operator for operator op get selected operators clones add op clone operator op get name clip board clones enable actions
|
copies the currently selected operator into the clipboard
|
public void paste if clip board null insert clip board list operator clones new linked list operator for operator op clip board clones add op clone operator op get name clip board clones enable actions
|
pastes the current clipboard into the tree
|
public void delete operator parent null for operator selected operator new linked list operator get selected operators if parent null parent selected operator get parent selected operator remove main frame select operator parent
|
the currently selected operator will be deleted
|
public void set maximal text length int max length this maximal text length max length
|
use this method to set the maximal text length
|
public void set cut on first line break boolean enable this cut on first line break enable
|
this enables or disables the cutting on the first linebreak of a string
|
public void set value string new value this value new value inform listeners of change
|
this sets the value of the text field
|
public void set model extended jtext field model model this model model model register on component this
|
use this method to set a new model to this component
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.