input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public void update data linked list notes linked list tags note list notes tag list tags adjust the appropriate panel section and revalidate repaint center remove scroll pane scroll pane create view center add scroll pane border layout center center revalidate center repaint | method for updating the pane s when new data is added or updated |
public void zoom changed zoom change event event for enumeration e components table elements e has more elements telepointer component e next element update cursor | underlying map has changed recalculate all rendered telepointers |
public void set location point double location if location equals this location object old this location this location location fire property change location old location | sets the cursor location |
public point double get location return location | returns the cursor location |
public void set cursor over map boolean cursor over map if cursor over map this cursor over map boolean old this cursor over map this cursor over map cursor over map fire property change cursor over map new boolean old new boolean cursor over map | sets whether the cursor is over the map pane or not |
public boolean get cursor over map return cursor over map | retrieves whether the object is minimized or not |
public string to string return get class get name location get location cursor over map get cursor over map | returns a string representation of this object and its values |
public figure enumeration selection elements return new figure enumerator f selection | gets an enumeration over the currently selected figures |
public void add to selection all vector figures figure enumeration k new figure enumerator figures while k has more elements add to selection k next figure | adds a vector of figures to the current selection |
public void palette user selected palette button button tool button tool button tool button button set tool map abstract tool tool button tool tool button name set selected tool button | handles a user selection in the palette |
public void palette user over palette button button boolean inside tool button tool button tool button button | handles when the mouse enters or leaves a palette button |
public map abstract tool tool return map abstract tool f tool | gets the current tool |
public void tool done if f default tool button null set tool map abstract tool f default tool button tool f default tool button name set selected f default tool button | sets the default tool of the editor |
public void action performed action event arg0 the only action should be to close the view set visible false map pane atl null reset the tool to null dispose | the list is hidden closed when the user interacts with the button |
protected void create icon tool start jtool bar palette tool tool new icon tool start this icon start palette add create tool button images icon start add a start icon tool | for polit study |
public point double get point return point double | returns the point |
public string to string return get class get name point double point double | returns a string representation of this component with its x and y values |
public void set shapefile url url shapefile url if shapefile url this shapefile url shapefile data store null object old this shapefile url this shapefile url shapefile url fire property change shapefile url old shapefile url | sets the shapefile url directory |
public url get shapefile url return shapefile url | retrieves the shapefile url directory |
public void set last modification time string last modification time object old this last modification time this last modification time last modification time fire property change last modification time old last modification time | sets last modification time |
public shapefile data store get shapefile data store if shapefile data store null shapefile url null try shapefile data store new shapefile data store shapefile url catch exception e system out println error creating shapefile data store from shared url return shapefile data store | retrieves the shapefile data store object associated with the shared url |
public void set last modification user string last modification user object old this last modification user this last modification user last modification user fire property change last modification user old last modification user | sets last modification user |
public void create schema feature type feature type throws ioexception get shapefile data store create schema feature type | data store method comments copied from geo tools shapefile data store class |
public void update schema string type name feature type feature type throws ioexception get shapefile data store update schema type name feature type | data store method no comments in geo tools shapefile data store class |
public feature source get view query query throws ioexception schema exception return get shapefile data store get view query | data store method no comments in geo tools shapefile data store class |
public feature source get feature source string type name throws ioexception return get shapefile data store get feature source type name | data store method comments copied from geo tools shapefile data store class |
public feature reader get feature reader query query transaction transaction throws ioexception return get shapefile data store get feature reader query transaction | data store method no comments in geo tools shapefile data store class |
public feature writer get feature writer string type name filter filter transaction transaction throws ioexception return get shapefile data store get feature writer type name filter transaction | data store method no comments in geo tools shapefile data store class |
public locking manager get locking manager return get shapefile data store get locking manager | data store method no comments in geo tools shapefile data store class |
public void mouse pressed mouse event e request focus jdk1 1 system out println drawing view mouse pressed point p constrain point new point e get x e get y f last click new point e get x e get y map pane manager tool mouse down e map pane check damage | handles mouse down events |
public void mouse dragged mouse event e system out println drawingview mouse dragged point p constrain point new point e get x e get y map pane manager tool mouse drag e map pane check damage | handles mouse drag events |
public void mouse moved mouse event e map pane manager tool mouse move e map pane | handles mouse move events |
public void mouse released mouse event e point p constrain point new point e get x e get y map pane manager tool mouse up e map pane check damage | handles mouse up events |
public void key pressed key event e int code e get key code if code key event vk back space code key event vk delete command cmd new delete command delete this cmd execute else if code key event vk down code key event vk up code key event vk right code key event vk left handle cursor key code else tool key down e code check damage | handles key down events |
public void mouse released mouse event e todo auto generated method stub if manager tool instanceof drawing tool drawing view mouse released e else manager tool mouse up e this if we were panning stop doing so if is panning reset cursor switch panning to off set cursor default cursor is panning false | handles mouse releases |
public int check pending change change pending change new change int result throttled change broadcaster send pending change shared htmldoc edit command change ecc shared htmldoc edit command change new change shared htmldoc edit command change last null if pending instanceof composite change last shared htmldoc edit command change composite change pending get last change else last shared htmldoc edit command change pending if last get type ecc get type result throttled change broadcaster merge pending change return result | returns one of discard pending change send pending change or |
public vector get selected fields return get all fields | method to get the fields selected in the checkbox array |
public void paint graphics g f update strategy draw g this draw all g | paints the drawing view |
public void mouse moved mouse event e todo auto generated method stub if manager tool instanceof drawing tool drawing view mouse moved e else manager tool mouse move e this | handle mouse movements |
public void clear default mutable tree node root node root node remove all children tree model reload local root node root node | remove all nodes except the root node |
public default mutable tree node add object default mutable tree node root node object child default mutable tree node parent node null tree path parent path tree get selection path if parent path null parent node root node else parent node default mutable tree node parent path get last path component return add object root node parent node child true | add child to the currently selected node |
public void draw all graphics g boolean is printing g instanceof print graphics draw background g if f backgrounds null is printing draw painters g f backgrounds graphics2 d graphic graphics2 d g graphic set stroke new basic stroke 2 draw drawing graphic if f foregrounds null is printing draw painters g f foregrounds if is printing draw handles g | draws the contents of the drawing view |
public vector get all fields vector temp col new vector int col count fields size int c 0 while c col count temp col add element display check c get text c return temp col | method to return all the fields |
public void mouse clicked mouse event e todo auto generated method stub if is double click e manager tool double clicked e this | handle mouse clicks |
public string get servlet url object id id embedded object path path replicated object client client string mime type properties source props return activity update bean servlet class get name id id | returns a url without protocol or host for viewing the given |
protected void create window state try system out println creating shared window state permissions perms delegated permissions create delegated permissions id client window state geographic map window state client get new object geographic map window state class perms replication manager get instance start sharing window state client catch exception e system out println error creating shared geographic map window state | private method to create and intialize a shared geographic map window state object |
public void key pressed key event e todo auto generated method stub system out println catch the keyevent if e get key code key event vk delete remove selected features system out println catch the delete key press if e get key code key event vk control ctrl down true | handle key press events |
public void key released key event e todo auto generated method stub if e get key code key event vk control ctrl down false | handle key releases |
public string get servlet url object id id embedded object path path replicated object client client string mime type properties source props return claims bean servlet class get name id id | returns a url without protocol or host for viewing the given |
public void drag feature mouse event evt first check to if is drag feature if local selected features get size 0 is drag feature true set cursor move cursor | drags selected feature s with the mouse |
public figure add figure figure if f figures contains figure f figures add element figure figure add to container this return figure | adds a figure to the list of figures |
public void move by int dx int dy will change try basic move by dx dy catch exception e system err println ignoring e print stack trace figure display box changed | moves the figure by the given offset |
public void add all vector new figures enumeration k new figures elements int figcount 0 while k has more elements add figure k next element figcount enumeration k1 new figures elements int temp 0 while k1 has more elements figure f figure k1 next element group add element f get attribute figure attribute temp if temp figcount abstract figure af abstract figure f af group changed new figures | adds a vector of figures |
public void figure request remove figure change event e figure figure e get figure if f figures contains figure f figures remove element figure figure remove from container this will invalidate figure figure release figure removed figure else system out println attempt to remove non existing figure | handles a remove from drawing request that |
public void display box point origin point corner will change basic display box origin corner figure display box changed | changes the display box of a figure |
public void add drawing container change listener drawing container change listener listener if d listeners null d listeners new vector 2 d listeners add element listener | adds a listener for this drawing container |
public void remove drawing container change listener drawing container change listener listener d listeners remove element listener | removes a listener from this drawing container |
public figure remove figure figure if f figures contains figure figure remove from container this f figures remove element figure return figure | removes a figure from the composite |
public void figure added figure f if d listeners null for int i 0 i d listeners size i drawing container change listener l drawing container change listener d listeners element at i l figure added new drawing container change event this f | called when figure is added by tool done method in draw application |
public void figure removed figure f if d listeners null for int i 0 i d listeners size i drawing container change listener l drawing container change listener d listeners element at i l figure removed new drawing container change event this f | called when figure is removed by figure request move method in standard drawing |
public void remove all vector figures enumeration k figures elements while k has more elements remove figure k next element | removes a vector of figures |
public void remove all figure enumeration k figures while k has more elements figure figure k next figure figure remove from container this f figures remove all elements | removes all children |
public void orphan all vector new figures enumeration k new figures elements while k has more elements orphan figure k next element | removes a vector of figures from the figures list |
public void draw graphics g figure enumeration k figures while k has more elements k next figure draw g | draws all the contained figures |
protected void delete selection f view drawing remove all f view selection standard drawing sd standard drawing f view drawing for int i 0 i f view selection size i figure f figure f view selection element at i sd figure removed f f view clear selection | deletes the selection from the drawing |
protected void copy selection figure selection selection f view get figure selection clipboard get clipboard set contents selection | copies the selection to the clipboard |
protected void insert figures vector figures int dx int dy figure enumeration e new figure enumerator figures while e has more elements figure figure e next figure figure move by dx dy figure f view add figure f view add to selection figure standard drawing sd standard drawing f view drawing sd figure added figure | inserts a vector of figures and translates them by the |
public void write storable output dw dw write string f owner id | stores the connector and its owner to a storable output |
public void read storable input dr throws ioexception f owner id string dr read string | reads the connector and its owner from a storable input |
public void remove from container figure change listener c invalidate remove figure change listener c changed | removes a figure from the given container and unregisters |
public boolean includes figure figure if super includes figure return true figure enumeration k figures while k has more elements figure f k next figure if f includes figure return true return false | checks if the composite figure has the argument as one of |
public figure add figure figure the figure id is now set in shared drawing add standard drawing sd standard drawing drawing figure enumeration fe sd figures int figcount 0 while fe has more elements figure next fe next figure figcount int temp figure id int value if figcount 0 temp figcount temp figure id new integer temp figure set attribute figure attribute object figure id return drawing add figure | adds a figure to the drawing |
protected void basic move by int x int y figure enumeration k figures while k has more elements k next figure move by x y | moves all the given figures by x and y |
public void release super release figure enumeration k figures while k has more elements figure figure k next figure figure release | releases the figure and all its children |
public void changed invalidate if f listener null f listener figure changed new general figure change event this | informs that a figure changed the area of its display box |
public figure get figure return figure | returns the figure that this event refers to |
public void figure display box changed invalidate if f listener null f listener figure changed new general figure change event this figure display box changed | called by the display box method |
public void write storable output dw super write dw dw write int f figures size enumeration k f figures elements while k has more elements dw write storable storable k next element | writes the contained figures to the storable output |
public void text figure changed font f invalidate if f listener null f listener figure changed new general figure change event this f text figure changed | responsible for sending a figure change event |
public string get type of change return type of change | returns the type of change variable |
public void text figure content changed string text invalidate if f listener null f listener figure changed new general figure change event this text text figure content changed | responsible for sending a figure change event |
public void attribute changed string name object value invalidate if f listener null f listener figure changed new general figure change event this name value attribute changed | responsible for sending a figure change event |
public point get poly point return poly point | returns the poly point |
public int get poly point index return point index | returns the point index on the poly |
public point get polygon x return polygon x | returns the new x of the polygon |
public void polygon figure changed point p int i invalidate if f listener null f listener figure changed new general figure change event this p i polygon figure changed | responsible for sending a figure change event |
public point get polygon y return polygon y | returns the new y of the polygon |
public polygon get original poly return original poly | returns the original polygon |
public vector get group return group | returns the group |
public void set attribute string name object value if f attributes null f attributes new figure attributes f attributes set name value attribute changed name value | sets the named attribute to the new value |
public void polygon figure scale changed point x point y polygon p invalidate if f listener null f listener figure changed new general figure change event this x y p polygon figure scale changed | responsible for sending a figure change event |
public figure get replacement return replacement | returns the replacement figure |
public void arc changed invalidate if f listener null f listener figure changed new general figure change event this arc changed | responsible for sending a figure change event |
public void poly line figure point changed point p int i boolean dummy false invalidate if f listener null f listener figure changed new general figure change event this p i poly line figure point changed | responsible for sending a figure change event |
public void send to back changed invalidate if f listener null f listener figure changed new general figure change event this send to back changed | responsible for sending a figure change event |
public void bring to front changed invalidate if f listener null f listener figure changed new general figure change event this bring to front changed | responsible for sending a figure change event |
public void border changed figure replacement invalidate if f listener null f listener figure changed new general figure change event this replacement border changed | responsible for sending a figure change event |
public void group changed vector group invalidate if f listener null f listener figure changed new general figure change event this group group changed | currently working on this |
public connector connector at int x int y pli changing this to mutable chop box connector instead of chop box connector 020628 return new mutable chop box connector this | returns the figures connector for the specified location |
public object clone object clone null byte array output stream output new byte array output stream 200 try object output writer new object output stream output writer write object this writer close catch ioexception e system out println class not found e input stream input new byte array input stream output to byte array try object input reader new object input stream input clone object reader read object abstract figure af abstract figure clone catch ioexception e system out println e to string catch class not found exception e system out println class not found e return clone | clones a figure |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.