input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public void set marker graphical element marker marker marker | defines a graphical marker which will be drawn on top of the plot |
public void form string buffer buffer long number if descriptor type float descriptor form buffer double number else format absolut value in the right base buffer append form number 0 long to string math abs number descriptor o 8 descriptor x 16 10 | format a number in accordance of the format string |
public string get full key return full key | returns the full class name key |
public void form string buffer buffer double number if descriptor type int descriptor form buffer long math floor number 0 5 else if descriptor f buffer append form f number else if descriptor e descriptor e buffer append form e number else if descriptor g descriptor g string form f form f number string form e form e number buffer append form f length form e length form e form f | format a number in accordance of the format string |
public string to string return get class get name full key class name reason | renders this instance as follows tt jcckit |
public string get full key string key return config get full key key | returns the full key |
public string get string key string value config get key null return value null default config get key null value | returns the value associated with this key |
public config data get node string key return new config parameters based config data config get node key default config get node key | returns the tt config data tt object associated with this key |
public string get full key string key return config data get full key key | returns the full key |
protected string get value string full key return properties get property full key | returns the value for the specified full key |
protected config data create config data string path return new properties based config data properties path | returns a new instance of tt properties based config data tt |
public string get string key string result config data get key if result null throw new illegal argument exception get full key key return result | returns the string value associated with the specified key |
private string form f double number format absolut value double multiplier number 0 ten to precision ten to precision string digits long to string long math floor number multiplier 0 5 string int part digits string buffer frac part new string buffer if decimal point int len digits length precision frac part append append digits substring math max 0 len if len 0 int part digits substring 0 len else int part 0 for len 0 len frac part insert 1 0 return form number 0 int part new string frac part | format floating point number |
public string form long number string buffer result new string buffer result append static parts element at 0 if format elements length 0 format elements 0 form result number return append rest result | format a number |
public string form double number string buffer result new string buffer result append static parts element at 0 if format elements length 0 format elements 0 form result number return append rest result | format a number |
public string get string key string default value string result config data get key if result null result default value return result | returns the string value associated with the specified key or |
public graphics2 drenderer init graphics2 d graphics graphics graphics default color graphics get color the foreground color return this | initializes this instance |
public string form double numbers string buffer result new string buffer for int i 0 n static parts size i n i result append static parts element at i if i format elements length i numbers length format elements i form result numbers i return new string result | format an array of double numbers |
public boolean get boolean string key return parse boolean get key key | returns the boolean associated with the specified key |
public void start rendering graphical composite composite clipping shape shape composite get clipping shape if shape null clipping rectangle rect shape get bounding box graphics clip new rectangle2 d double rect get min x rect get min y rect get max x rect get min x rect get max y rect get min y | starts rendering of the specified composite |
public int transform x double x return trim scale x x0 | transforms the device independent x coordinate into java coordinates |
public int transform y double y return trim y0 scale y | transforms the device independent y coordinate into java coordinates |
public int transform width double width return trim scale width 0 5 | transforms the device independent width into java width |
public boolean get boolean string key boolean default value string value config data get key return value null default value parse boolean value key | returns the boolean associated with the specified key |
public int transform height double height return trim scale height 0 5 | transforms the device independent height into java height |
public graph point transform back int x int y return new graph point x x0 scale y0 y scale | transforms a point in java coordinates back into device independent |
public void finish rendering graphical composite composite graphics set clip null | finishes rendering of the specified composite |
public void render polygon polygon int number of points polygon get number of points if number of points 0 color current color graphics get color general path p new general path general path wind even odd number of points p move to float polygon get point 0 get x float polygon get point 0 get y for int i 1 i number of points i p line to float polygon get point i get x float polygon get point i get y if polygon is closed p close path draw shape p polygon current color | paints the specified polygon into the tt graphics2 d tt context |
public void render rectangle rectangle color current color graphics get color graph point center rectangle get center double width rectangle get width double height rectangle get height rectangle2 d rect new rectangle2 d double center get x 0 5 width center get y 0 5 height width height draw shape rect rectangle current color | paints the specified rectangle into the current tt graphics tt |
public int get int string key return parse int get key key | returns the integer associated with the specified key |
public void render oval oval color current color graphics get color graph point center oval get center double width oval get width double height oval get height ellipse2 d ellipse new ellipse2 d double center get x 0 5 width center get y 0 5 height width height draw shape ellipse oval current color | paints the specified oval into the current tt graphics tt context |
public int get int string key int default value string value config data get key return value null default value parse int value key | returns the integer associated with the specified key or |
public double get double string key return parse double get key key | returns the double associated with the specified key |
public attributes hint get next hint shape attributes hint next hint null try next hint shape attributes hint clone catch clone not supported exception e next hint fill color hsb increment color fill color hsb fill color hsbincrement next hint line color hsb increment color line color hsb line color hsbincrement next hint line thickness math max 0 line thickness line thickness increment return next hint | creates a new tt shape attributes hint tt where all attributes has been |
public graphic attributes get attributes return new shape attributes create color fill color hsb create color line color hsb line thickness line pattern | returns the wrapped |
public double get double string key double default value string value config data get key return value null default value parse double value key | returns the double associated with the specified key or |
public color get color string key return parse color get key key | returns the color associated with the specified key |
public void add plot listener plot listener listener if plot listeners contains listener plot listeners add element listener | adds the specified |
public graphical element get view return view | returns the graphical representation of the coordinate system |
public clipping shape get clipping shape return clipping rectangle | returns the clipping rectangle of specified by the axis |
public void remove plot listener plot listener listener plot listeners remove element listener | removes the specfied |
public color get color string key color default value string value config data get key return value null default value parse color value key | returns the color associated with the specified key or the specified |
protected void notify listeners plot event event for int i 0 n plot listeners size i n i plot listener plot listeners element at i plot changed event | sends all registrated |
public graphical element get symbol return symbol | returns the graphical symbol |
public void connect data plot data plot if data plot null data plot remove data listener this notify listeners new plot event this plot event type data plot disconnected data plot data plot data plot if data plot null data plot add data listener this generate curves data plot notify listeners new plot event this plot event type data plot connected data plot | connect the specified |
public hint get hint for next point return hint for next point | returns the hint for the next point |
public hint get hint for next curve return hint for next curve | returns the hint for the next curve |
public data point transform graph point point return transformation transform to data point | transforms a point from device independent coordinates into |
public string form double tic value string result for int i 0 i map length i if map i is inside tic value result map i label break return result | maps the specified tic value onto a text label in accordance |
public config parameters get node string key return new config parameters config data get node key | returns the child node associated with the specified key |
public graph point get origin return origin | returns the origin |
public clipping rectangle get paper return paper | returns the paper definition |
public graphical composite get complete plot graphical composite result new graphical composite null result add element coordinate system view graphical element curves get curves for int i 0 i curves length i result add element curves i if annotation null result add element annotation if legend visibility result add element get legend return result | creates a graphical representation of the complete plot |
public void connect data plot data plot plot connect data plot | connects the wrapped |
public void plot changed plot event event | handles the spcified event |
public graphical element get view return complete curve | returns the graphical representation of a curve |
public plot get source return source | returns the source of this event |
public graphical element get coordinate system return coordinate system view | returns the view of the coordinate system |
public plot event type get type return type | returns the event type |
public graphical element get legend symbol return legend symbol | returns the legend symbol |
public hint add point graph point point hint hint from previous curve if curve null curve add point point hint hint for next curve hint from previous curve if symbol factory null symbol symbol symbol factory create symbol point hint for next point hint from previous curve if clipping shape null soft clipping clipping shape is inside point symbols add element symbol get symbol hint for next point symbol get hint for next point hint for next curve symbol get hint for next curve return hint for next curve | appends a new point to the curve if inside the clipping shape |
public graphical element get box return box | returns the legend box with title but without legend symbols and curve |
public boolean is legend visible return legend visibility | returns tt true tt if the legend is visible |
public graphical element get legend return legend view | returns the graphical representations of the legend |
private void transform polygon points polygon p polygon point3 d p points3 d point2 d p points2 d for int i 0 i p polygon get points length i point3 d l point p polygon get points i point3 d l point rotated f projection rotate l point p points3 d i l point rotated p points2 d i f projection project2 d l point rotated | the transformation rotates 3 d and projects 2 d points from it |
public void on module load deferred command add new command public void execute krengine new krengine root panel get add krengine root panel get set widget position krengine 1 36 | this is the entry point method |
public void execute if validate easy accept tester new easy accept class facade class null object facade obj null try facade class class for name facade facade obj facade class new instance catch exception e throw new build exception invalid facade class facade int status code 0 status code run for each path status code tester facade obj if status code 0 if failureproperty null get project set new property failureproperty true value | do the execution |
private int run for each path int status code easy accept tester object facade obj iterator path iterator paths iterator variables variables new variables impl while path iterator has next path path path path iterator next string files path list for int k 0 k files length k string file files k try if tester run acceptance test facade obj file variables status code 1 catch quit signal exception e1 get project log e1 get message status code 0 catch exception e get project log e get message status code 1 return status code | execute for each path |
public void test execute script processor throws exception script script new script src easyaccept script test test execute script txt new test thread facade execute script processor script executor script executor new execute script processor parsed line reader plr script get parsed line reader parsed line pl plr get parsed line object output script executor execute script pl assert true true equals output to string | execute the execute script processor test |
public void test variable substitution1 throws exception script script new script src easyaccept script test script13 txt new test facade result result script get and execute command assert not null result assert equals a command returning string param1 hello result get command assert false result has error assert equals hello script get variable value a result script get and execute command assert not null result assert equals expect hello command returning string param1 hello result get command assert false result has error script close | execute the variable substitution 1 |
public void test variable substitution2 throws exception script script new script src easyaccept script test script14 txt new test facade result result script get and execute command assert not null result assert equals expect hello b command returning string param1 hello result get command assert false result has error result script get and execute command assert not null result assert equals expect hello command returning string param1 hello result get command assert false result has error script close | execute the variable substitution 2 |
public void test variable substitution5 throws easy accept exception easy accept internal exception quit signal exception ioexception parsing exception script script new script src easyaccept script test script17 txt new test facade result result script get and execute command assert not null result assert equals expect a b command1 result get command assert false result has error script close | execute the variable substitution 5 |
public void test execute throws exception quit processor eqp eqp new quit processor script script new script src easyaccept script test script quit01 txt new test facade parsed line reader plr script get parsed line reader parsed line pl plr get parsed line try eqp execute script pl fail catch quit signal exception exc assert true exc get message index of quit command was found 1 | execute the quit test |
public object execute script script parsed line parsed line throws exception if parsed line number of parameters 3 throw new easy accept exception script get file name script get line number syntax error repeat number of times any command int number of times parsed line get parameter 1 get value as int parsed line new parsed line parsed line sub line 2 for int i 1 i number of times i script execute command new parsed line return ok | execute the repeat command |
public void test execute throws exception expect error processor execp execp new expect error processor script script new script src easyaccept script test script expect error txt new test facade parsed line reader plr script get parsed line reader parsed line pl plr get parsed line string output string execp execute script pl assert true ok equals output | execute the test |
public void test execute throws exception equal files processor eqp eqp new equal files processor script script new script src easyaccept script test script equal files01 txt new test facade parsed line reader plr script get parsed line reader parsed line pl plr get parsed line string output string eqp execute script pl assert true ok equals output plr script get parsed line reader pl plr get parsed line try output string eqp execute script pl fail catch exception exc assert true exc get message index of expected 1 assert true exc get message index of but was 1 | execute the test |
public void close throws ioexception plr close results null | close a script |
public void test expect different throws exception script script new script src easyaccept script test script21 txt new test facade result result script get and execute command assert not null result assert false result has error result script get and execute command assert true result has error assert equals line 2 file src easyaccept script test script21 txt expected different from hi but was hi result get error message result script get and execute command assert null result script close | execute the expect diffrente test |
public void test command1 throws exception parsed line reader plr new parsed line reader new logical line reader new multi file reader plr add file src util test command1 txt system out println parsed line plr parsed line parsed line plr get parsed line assert not null parsed line assert equals 1 parsed line number of parameters parameter param parsed line get parameter 0 assert not null param assert null param get name assert equals a param get value parsed line plr get parsed line assert null parsed line plr close | execute the test command1 |
public void set escape char p escape this escape default escape p escape | set the default escape |
public int number of errors int number of errors 0 iterator it results iterator while it has next result result result it next if result has error number of errors return number of errors | obtain the number of errors that occurred during script execution |
public collection get results return results | the results are only valid after calling |
public string all error messages string buffer answer new string buffer iterator it results iterator while it has next result result result it next if result has error answer append result get error message answer append system get property line separator answer append command producing error answer append result get command answer append answer append system get property line separator return answer to string | obtain a formatted string containing all error messages reported during script execution |
public int number of tests return results size | obtain the total number of results see |
public object get facade return facade | returns the facade |
public string open create the dialog window shell shell new shell get parent get style shell set text get text shell set size 600 600 create contents shell shell pack shell open display display get parent get display while shell is disposed if display read and dispatch display sleep return the entered value or null return input | opens the dialog and returns the input |
protected void create edit policies super create edit policies install edit policy edit policy node role null install edit policy edit policy graphical node role null install edit policy edit policy selection feedback role null install edit policy edit policy component role new root component edit policy install edit policy edit policy layout role new model xylayout edit policy xylayout get content pane get layout manager install edit policy snap feedback new snap feedback policy non nls 1 | installs edit policies specific to this |
protected ifigure create figure figure f new freeform layer f set border new group box border diagram f set layout manager layout f set layout manager new flow layout f set border new margin border 5 return f | returns a figure to represent this |
protected ifigure create figure ifigure figure if get model null return null else if get model instanceof ground output figure model get model provider get graphics provider get figure model if figure null figure new atom figure model graphical part lookup put figure model figure else figure new output figure return figure | returns a newly created figure |
protected ifigure create figure if get wire null return null connection connx figure factory create new bendable wire get wire graphical part lookup put figure this connx return connx | returns a newly created figure to represent the connection |
protected atom figure get output figure return atom figure get figure | returns the figure for this as an output figure |
protected atom get simple output return atom get model | returns the model of this as a simple output |
protected void refresh visuals graphics provider gp model repository get instance get model provider get wire get source get model id get graphics provider get wire figure set visible gp get current aspect visible get wire refresh bendpoints gp decorate connection polyline connection get wire figure get wire if get wire get value get wire figure set foreground color alive else get wire figure set foreground color dead | refreshes the visual aspects of this based upon the model wire |
protected void create edit policies edit policy component component new logic element edit policy install edit policy edit policy component role component install edit policy edit policy primary drag role new logic tree edit policy | creates and installs pertinent edit policies for this |
protected model object get logic subpart return model object get model | returns the model of this as a logic sub part |
protected void refresh visuals if get widget instanceof tree return else if get widget null return else if get widget is disposed return graphics provider gp get graphics provider image image get image tree item item tree item get widget if image null item get parent null item get parent get background null image set background item get parent get background set widget image image set widget text get logic subpart get name get logic subpart get id | refreshes the widget of this based on the property given to update |
protected container get logic diagram return container get model | returns the model of this as a logic diagram |
protected ifigure create figure if model null figure model get model provider get graphics provider get figure model if figure null figure new new model figure model this figure set border new frame border model get name graphical part lookup put figure model figure return figure | creates a new circuit figure and returns it |
protected command get clone command change bounds request request clone command clone new clone command clone set parent container get host get model edit part after get insertion reference request int index get host get children index of after iterator i request get edit parts iterator graphical edit part curr part null while i has next curr part graphical edit part i next clone add part model object curr part get model index return clone | override to return the code command code to perform an |
protected gems figure get model figure return gems figure get figure | returns the figure of this as a circuit figure |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.