input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
private void prelayout connected component component visit component get nodes iterator next null null 0 | lays out node components from code component code so that nodes which |
public void set x int x set location new point x get y | sets x coordinate of this connected component and changes x coordinates |
public void layout graph g int max width 0 max height 0 for node component node g get nodes if g get width max width max width g get width if g get height max height max height g get height int count int math sqrt g get nodes size int x padding y padding int idx 0 for node component node g get nodes node set location x y idx if idx count x padding y max height padding idx 0 else x max width padding set changed notify observers clear changed | chooses coordinates for nodes of graph |
public void set y int y set location new point get x y | sets y coordinate of this connected component and changes y coordinates |
public void layout graph graph collection connected component components factory create from graph graph layout components merger merge components | chooses coordinates for nodes of graph |
public void layout graph graph for node component node graph get nodes node set location 0 0 set changed notify observers clear changed | sets all nodes coordinates to 0 0 |
public int compare connected component o1 connected component o2 if o1 get width o2 get width if o1 get height o2 get height return 0 else return o1 get height o2 get height 1 1 else return o1 get width o2 get width 1 1 | compares two connected components for order |
public boolean is fields visible return fields visible | returns true if fields should be shown on uml diagram |
private int calculate bmpsize component comp int bytes per row comp get width 3 size of each row must be divisiable by four if it s not some extra bytes are added int zeros padding 0 if bytes per row 4 0 zeros padding 4 bytes per row 4 bytes per row zeros padding 54 bytes is a constant size of headers of 24 bit bitmap file return 54 bytes per row comp get height | calculates size of 24 bit bitmap file needed to save contents of |
public void set fields visible boolean fields visible this fields visible fields visible | sets to indicate whether fields should be shown on uml diagram |
public void add node node component node nodes add node | adds a new node to nodes belonging to this connected component |
protected object do in background throws exception image saver saver factory get image worker file path substring file path last index of 1 saver add observer this try saver save image comp file path catch ioexception ex ex print stack trace return null | saves contents of a component to an image file the component and file |
public void set location point p int old x x int old y y x int p get x y int p get y int dx x old x int dy y old y for node component node nodes node set location node get x dx node get y dy | sets the new location of this connected component and updates coordinates |
public void update observable o object arg if o instanceof image saver fire property change progress null arg | called when underlying image server notifies about progress of its work |
public image saver get image worker string file extension return savers get file extension | returns an image saver capable of saving contents of a component in |
public void pack nodes int min x min y min x min y integer max value for node component node nodes int x node get x int y node get y if x min x min x x if y min y min y y for node component node nodes node set location node get x min x padding node get y min y padding | offsets all nodes of this connected component so that br |
public node component get node return node | returns the node component associated with this node skeleton |
public boolean is methods visible return methods visible | returns true if methods should be shown on uml diagram |
public void set node node component node this node node | associates this node skeleton with node component code node code sets |
public void update size int min x max x min y max y min x min y integer max value max x max y 0 for node component node nodes int x node get x int y node get y if x min x min x x if x node get width max x max x x node get width if y min y min y y if y node get height max y max y y node get height width max x min x 2 padding height max y min y 2 padding | updates width and height of this connected component so that they are |
public void write file header int size int offset throws ioexception write short 19778 write int size write short 0 reserved write short 0 reserved write int offset | writes a header of a |
public void offset vector2 d v x v get x y v get y | sets x y coordinates of this node skeleton to |
public vector2 d get middle return new vector2 d x width 2 y height 2 | returns coordinates of point in the middle of this node skeleton |
public void set methods visible boolean methods visible this methods visible methods visible | sets to indicate whether methods should be shown on uml diagram |
private void write byte int v throws ioexception out write byte v | writes to the output stream the eight low order bits of the argument |
public vector2 d get top middle return new vector2 d x width 2 y | returns coordinates of point in the middle of top edge of this |
private void write int int v throws ioexception out write int integer reverse bytes v | writes an code int code value to the output stream |
public vector2 d get bottom middle return new vector2 d x width 2 y height | returns coordinates of point in the middle of bottom edge of this |
public boolean is enums visible return enums visible | returns true if enum values should be shown on uml diagram |
private void write short int v throws ioexception out write short short reverse bytes short v | writes a code short code value to the output stream |
public vector2 d get left middle return new vector2 d x y height 2 | returns coordinates of point in the middle of left edge of this |
public vector2 d get right middle return new vector2 d x width y height 2 | returns coordinates of point in the middle of right edge of this |
public void set enums visible boolean enums visible this enums visible enums visible | sets to indicate whether enum values should be shown on uml diagram |
public vector2 d get location return new vector2 d x y | returns a vector2 d which stores coordinates of this node skeleton |
public void update node component if node null node set location int x int y node set size int width int height | updates the x y coordiantes width and height of the node component |
public boolean is private visible return private visible | returns true if private members should be shown on uml diagram |
public void set private visible boolean private visible this private visible private visible | sets to indicate whether private members should be shown on uml diagram |
public boolean is package visible return package visible | returns true if package members should be shown on uml diagram |
public void set package visible boolean package visible this package visible package visible | sets to indicate whether package members should be shown on uml diagram |
public boolean is protected visible return protected visible | returns true if protected members should be shown on uml diagram |
public void set protected visible boolean protected visible this protected visible protected visible | sets to indicate whether protected members should be shown on uml diagram |
public boolean is public visible return public visible | returns true if public members should be shown on uml diagram |
public void set public visible boolean public visible this public visible public visible | sets to indicate whether public members should be shown on uml diagram |
public boolean is arguments visible return arguments visible | returns true if methods arguments should be shown on uml diagram |
public void set arguments visible boolean arguments visible this arguments visible arguments visible | sets to indicate whether should be shown on uml diagram |
public void set back color color back color this back color back color | sets background color of graphs nodes |
public boolean is static visible return static visible | returns true if static members should be shown on uml diagram |
public void set static visible boolean static visible this static visible static visible | sets to indicate whether static members should be shown on uml diagram |
public boolean is final visible return final visible | returns true if final members should be shown on uml diagram |
public void set final visible boolean final visible this final visible final visible | sets to indicate whether final members should be shown on uml diagram |
public boolean is nonpublic units visible return nonpublic units visible | returns true if classes interfaces enums which are not visible outside of |
public void set nonpublic units visible boolean nonpublic units visible this nonpublic units visible nonpublic units visible | sets to indicate whether nonpublic units should be shown on uml diagram |
public string get layout name return layout name | returns name of graph layout that should be used to layout graphs nodes |
public boolean is realization drawn return realization drawn | returns true if realization relationships should be drawn on uml diagram |
public void set realization drawn boolean realization drawn this realization drawn realization drawn | sets whether realization relationships should be drawn on uml diagram |
public boolean is generalization drawn return generalization drawn | returns true if generalization relationships should be drawn on uml diagram |
public void set generalization drawn boolean generalization drawn this generalization drawn generalization drawn | sets whether generalization relationships should be drawn on uml diagram |
public boolean is has adrawn return has adrawn | returns true if has a relationships should be drawn on uml diagram |
public void set has adrawn boolean has adrawn this has adrawn has adrawn | sets whether has a relationships shoulf be drawn on uml diagram |
public edge type get has atype return has atype | returns a type which all has a relationships on uml diagram should have |
public void set has atype edge type has atype if has atype edge type aggregation has atype edge type composition throw new illegal argument exception this has atype has atype | sets a type which all has a relationships on uml diagram will have |
public void start throws exception if runner process null read until press enter stdin println stdin flush read until started else server start running true | start the jetty instance |
public void stop throws exception if running if runner process null read until press enter stdin println stdin flush read until stopped runner process wait for else server stop running false | stop the jetty instance |
public void finalize if running try stop catch exception e | ensure jetty is stopped at gc time |
public boolean is valid value string value if valid values null return true else if value null return false for int i 0 i valid values length i if value equals valid values i return true return false | tell whether the given value is valid for this option |
public string get status text return method get status line get reason phrase | get the reason phrase associated with the status code |
public header get response header string name return method get response header name | get a specific response header |
public string get response header value string name string default value header header method get response header name if header null return default value else string value header get value if value null value length 0 return default value else return header get value | get a response header value string or code default value code |
public void finalize if closed close | ensure cleanup occurs during gc if necessary |
private input source resolve dtd string public id string system id throws validator exception string uri get dtduri public id system id todo implement dtd whitelisting log info resolving dtd uri input stream in locator get uri must resolve all input streams add in input source input source new input source in resolved uris add uri return input source | resolve the dtd or throw a validator exception |
public void close throws ioexception method release connection in close | release the underlying http connection and close the input stream |
public void configure throws configuration exception if this get from database null throw new configuration exception from database needs to be set if this get to database null throw new configuration exception to database needs to be set if this get from server null throw new configuration exception from server needs to be set if this get to server null throw new configuration exception to server needs to be set prepare | does the configuration of the sync class |
public void set database from string database this from database database | defines the database from where the data comes |
public void set database to string database this to database database | defines the database to where the data goes |
public void set application server from string server this from server server | defines the application server from where we get the database configuration |
public void set application server to string server this to server server | defines the application server from where we get the database configuration |
protected void prepare throws configuration exception try this from define connection get from server get from database this to define connection get to server get to database catch bin base exception e throw new configuration exception e catch exception e throw new configuration exception e | prepares the configuration |
public void set full viewable name java lang string full viewable name this full viewable name full viewable name | sets the full viewable name value for this directory category |
public void set special encoding java lang string special encoding this special encoding special encoding | sets the special encoding value for this directory category |
public void set endpoint address java lang string port name java lang string address throws javax xml rpc service exception if google search port equals port name set google search port endpoint address address else unknown port name throw new javax xml rpc service exception cannot set endpoint address for unknown port port name | set the endpoint address for the specified port name |
public void set summary java lang string summary this summary summary | sets the summary value for this result element |
public void set snippet java lang string snippet this snippet snippet | sets the snippet value for this result element |
public boolean is document filtering return document filtering | gets the document filtering value for this google search result |
public void set cached size java lang string cached size this cached size cached size | sets the cached size value for this result element |
public void set document filtering boolean document filtering this document filtering document filtering | sets the document filtering value for this google search result |
public boolean is related information present return related information present | gets the related information present value for this result element |
public void set search comments java lang string search comments this search comments search comments | sets the search comments value for this google search result |
public void set related information present boolean related information present this related information present related information present | sets the related information present value for this result element |
public void set host name java lang string host name this host name host name | sets the host name value for this result element |
public int get estimated total results count return estimated total results count | gets the estimated total results count value for this google search result |
public void set directory category google search directory category directory category this directory category directory category | sets the directory category value for this result element |
public void set estimated total results count int estimated total results count this estimated total results count estimated total results count | sets the estimated total results count value for this google search result |
public void set directory title java lang string directory title this directory title directory title | sets the directory title value for this result element |
public boolean is estimate is exact return estimate is exact | gets the estimate is exact value for this google search result |
public void set estimate is exact boolean estimate is exact this estimate is exact estimate is exact | sets the estimate is exact value for this google search result |
public void set result elements google search result element result elements this result elements result elements | sets the result elements value for this google search result |
public void set search query java lang string search query this search query search query | sets the search query value for this google search result |
public void set search tips java lang string search tips this search tips search tips | sets the search tips value for this google search result |
public void set directory categories google search directory category directory categories this directory categories directory categories | sets the directory categories value for this google search result |
public double get search time return search time | gets the search time value for this google search result |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.