input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
public string get label field return label field
|
get the name field
|
public table get table return tuple table
|
gets the table
|
public void set label field string field label field field
|
set the name field for the tuple converter
|
public void set table table table tuple table table
|
sets the table
|
public void set init parameters map string string parameters if parameters contains key endeca host host parameters get endeca host if parameters contains key endeca port port parameters get endeca port if parameters contains key filter rec filter parameters get filter if parameters contains key nav page nav page parameters get nav page if parameters contains key rec page rec page parameters get rec page ene conn new http eneconnection host port profile new data profile ene conn
|
set any initialization parameters required by this data accessor
|
public force directed layout get prefuse layout return force layout
|
get the layout used by this display
|
public void pick item visual item item tuple set pick grp get visualization get group my picker pick grp add tuple item
|
pick an item on the display
|
private void hilite node visual item item boolean hilite if item instanceof node node node node item int depth node get depth while depth hilite level item set hover false node node get parent depth node get depth item vis get visual item graph nodes node item set hover hilite if hilite item set stroke color border color get color item item set text color label color get color item else item set stroke color item get end stroke color item set text color item get end text color vis run draw
|
highlight a particular node in the tree
|
public void remove hover listener hover listener listener hovers remove listener
|
removes the item listener from the list of listeners receiving the node
|
public void action performed action event evt set orientation orient get visualization cancel orient get visualization run tree layout get visualization run orient
|
reorient the tree by setting the orientation on the visualization
|
public int get orientation return tree orient
|
get the current orientation
|
public void select edge e edge tuple tuple converter get edge loader find tuple edge visual item vis item get visualization get visual item graph edges tuple pick item vis item
|
select a particular edge
|
public chunking chunk char char array int start int end string sentence new string char array sentence sentence substring start end return chunk sentence
|
chunk the given character array into a series of noun and verb phrases
|
public void set converter prefuse converter n e prefuse converter converter prefuse converter
|
sets the prefuse tuple converter
|
private string query server string full url string tag string result null try url url new url full url data input stream istream new data input stream url open stream document doc doc build parse istream element root doc get document element node list nodes root get elements by tag name tag if nodes null nodes get length 0 element res elem element nodes item 0 result res elem get text content trim istream close catch saxexception e e print stack trace catch ioexception e e print stack trace return result
|
issue a query to the alchemy server for the given url
|
private document do request http urlconnection conn throws ioexception data input stream istream new data input stream conn get input stream document doc null try doc doc build parse istream catch saxexception e throw new ioexception e istream close conn disconnect return doc
|
perform the request to the specified http urlconnection and retrieve the
|
public void close rss close cache clear
|
close this reader
|
public string get source return rss get source
|
get the source for this reader
|
public boolean has more data return rss has more data
|
returns whether the reader has more data to read
|
public void set filters string filters rss set filters filters
|
set filters for this reader
|
public void set graph graph n e new graph graph new graph pre graph converter convert graph new graph display graph pre graph
|
set the graph currently displayed
|
public void set source string source rss set source source
|
set the source for this format reader
|
private string get child value element elem string tag string val null node list list elem get elements by tag name tag if list get length 0 element child element list item 0 val child get text content trim return val
|
get the child value for the specified tag
|
public void set renderer renderer render get visualization set renderer factory new default renderer factory render
|
set the prefuse renderer used to render nodes on this graph display
|
public void add model file model file entity type type if model file is directory if type null type determine type model file get name file model files model file list files for file file model files add model file type else try name finder finder new name finder new suffix sensitive gismodel reader model file get model finders put finder type add tag field mapping type null catch ioexception exc ignore may not be a model file
|
add the model file with the specified entity type
|
private entity type determine type string model name entity type type entity type unknown string lower model name to lower case if lower contains person type entity type person else if lower contains place lower contains location type entity type location else if lower starts with org type entity type organization else if lower contains date lower contains time type entity type date time else if type equals money type equals percentage type entity type quantity return type
|
determine the entity type from the name passed in
|
public void add variable selection listener variable selection listener l listener list add variable selection listener class l
|
adds an variable selection listener
|
public void remove variable selection listener variable selection listener l listener list remove variable selection listener class l
|
removes an variable selection listener from the component
|
private void fire variable selection changed int new variable selection guaranteed to return a non null array object listeners listener list get listener list variable selection event e null process the listeners last to first notifying those that are interested in this event for int i listeners length 2 i 0 i 2 if listeners i variable selection listener class lazily create the event if e null e new variable selection event this new variable selection variable selection listener listeners i 1 variable selection changed e next i
|
notify all listeners that have registered interest for notification on
|
private void instantiate current variable int curr var double values data get numeric data as double curr var for int i 0 i obs length i obs i index i obs i value values i arrays sort obs
|
instantiate current variable
|
private void condition out lower range for int i 0 i curr conditioning length i curr conditioning i 0 default activated int num obs data get num observations int fifth num obs 5 for int i 0 i fifth i int index obs i index curr conditioning index 1 low cond index 0 high cond index fifth 1
|
condition out lower range
|
public void add conditioning listener conditioning listener l listener list add conditioning listener class l
|
adds an conditioning listener
|
public void remove conditioning listener conditioning listener l listener list remove conditioning listener class l
|
removes an conditioning listener from the component
|
public void add selection listener selection listener l listener list add selection listener class l
|
adds an selection listener
|
private void fire conditioning changed int new conditioning guaranteed to return a non null array object listeners listener list get listener list conditioning event e null process the listeners last to first notifying those that are interested in this event for int i listeners length 2 i 0 i 2 if listeners i conditioning listener class lazily create the event if e null e new conditioning event this new conditioning conditioning listener listeners i 1 conditioning changed e next i
|
notify all listeners that have registered interest for notification on
|
public void remove selection listener selection listener l listener list remove selection listener class l
|
removes an selection listener from the component
|
private void fire selection changed int new selection guaranteed to return a non null array object listeners listener list get listener list selection event e null process the listeners last to first notifying those that are interested in this event for int i listeners length 2 i 0 i 2 if listeners i selection listener class lazily create the event if e null e new selection event this new selection selection listener listeners i 1 selection changed e next i
|
notify all listeners that have registered interest for notification on
|
public void remove dimension listener dimension listener l listener list remove dimension listener class l
|
removes an dimension listener from the component
|
private void fire dimension changed dimension event e guaranteed to return a non null array object listeners listener list get listener list process the listeners last to first notifying those that are interested in this event for int i listeners length 2 i 0 i 2 if listeners i dimension listener class dimension listener listeners i 1 dimension changed e next i
|
notify all listeners that have registered interest for notification on
|
public void add indication listener indication listener l listener list add indication listener class l
|
adds an indication listener
|
public void remove indication listener indication listener l listener list remove indication listener class l
|
removes an indication listener from the component
|
private void fire indication changed int new indication guaranteed to return a non null array object listeners listener list get listener list indication event e null process the listeners last to first notifying those that are interested in this event for int i listeners length 2 i 0 i 2 if listeners i indication listener class lazily create the event if e null e new indication event this new indication indication listener listeners i 1 indication changed e next i
|
notify all listeners that have registered interest for notification on
|
public void property change property change event evt if view equals evt get property name set dirty true
|
this method is public as an implementation side effect
|
public color get overlay color return overlay color
|
returns the overlay color used for spotlight effect
|
public void set overlay color color overlay color if overlay color null throw new illegal argument exception overlay color is null color old color get overlay color this overlay color overlay color fire property change overlay color old color overlay color set dirty true
|
sets the overlay color used for spotlight effect
|
protected buffered image get buffer return cached buffer null null cached buffer get
|
returns the current cached image
|
public int get soft clip width return soft clip width
|
gets the width for the soft border
|
protected void set buffer buffered image buffer cached buffer new soft reference buffered image buffer
|
sets the current cached image
|
public void set soft clip width int soft clip width if soft clip width 0 throw new illegal argument exception soft clip width can t be less than 0 int old clip width get soft clip width this soft clip width soft clip width fire property change soft clip width old clip width soft clip width set dirty true
|
sets the width for the soft border
|
protected boolean is incremental update jxlayer v l return true
|
if this method returns
|
public void reset clip list clear set dirty true
|
resets this spot light ui
|
public void add shape shape shape clip list add shape set dirty true
|
adds the specified shape to the slip list
|
protected boolean is incremental update jxlayer jcomponent l return false
|
we dont want to update the buffer of this painter
|
protected boolean is buffer format valid jxlayer v l buffered image buffer get buffer return buffer null buffer get width l get width buffer get height l get height
|
defines if the cached image has the valid format
|
public void layer item changed layer item change event e set dirty true
|
this method is public as an implementation side effect
|
protected boolean is buffer content valid jxlayer v l shape clip return is dirty is incremental update l
|
defines if the cached image has the valid content
|
protected void apply layer effects jxlayer v l shape clip if get buffer null throw new illegal state exception buffer is null for layer effect e get layer effects l if e is enabled e apply get buffer clip
|
iterates through the current array of
|
public cursor get locked cursor return locked cursor
|
returns the mouse cursor to be used by this
|
public boolean is focus cyclic return is focus cyclic
|
returns whether arrow keys should support
|
public void set focus cyclic boolean is focus cyclic this is focus cyclic is focus cyclic
|
sets whether arrow keys should support
|
public void set locked cursor cursor locked cursor cursor old cursor get locked cursor this locked cursor locked cursor fire property change locked cursor old cursor locked cursor if is locked get layer get glass pane set cursor locked cursor
|
sets the mouse cursor to be used by this
|
public void set locked effects layer effect locked effects layer effect old effects get locked effects if locked effects null locked effects new layer effect 0 for layer effect effect get locked effects effect remove layer item listener this this locked effects new layer effect locked effects length system arraycopy locked effects 0 this locked effects 0 locked effects length for layer effect locked effect locked effects locked effect add layer item listener this fire property change locked effects old effects locked effects if is enabled old effects equals locked effects return if is locked set dirty true
|
sets the effects to be used when this ui is locked
|
protected void register awtevent listener jxlayer v l long event mask event controller register l event mask
|
this is an alternative implementation of catching jxlayers events
|
public void set layer effects layer effect effects layer effect old effects get layer effects if effects null effects new layer effect 0 for layer effect effect get layer effects effect remove layer item listener this this effects new layer effect effects length system arraycopy effects 0 this effects 0 effects length for layer effect effect effects effect add layer item listener this fire property change layer effects old effects effects if is enabled old effects equals effects return set dirty true
|
sets the array of the
|
protected void unregister awtevent listener jxlayer v l event controller unregister l
|
unregister an event listener which was previously set
|
public void set clip shape clip shape old clip get clip this clip clip fire property change clip old clip clip if is enabled clip null old clip null clip equals old clip return set dirty true
|
sets the clipping
|
public void set layer event mask long layer event mask long old event mask get layer event mask this event mask layer event mask fire property change layer event mask old event mask layer event mask
|
sets the event mask for this
|
public void set buffered image ops buffered image op buffered image ops if buffered image ops null buffered image ops new buffered image op 0 this buffered image ops new buffered image op buffered image ops length system arraycopy buffered image ops 0 this buffered image ops 0 buffered image ops length fire layer item changed
|
sets the array of
|
public void set enabled boolean is enabled boolean old enabled is enabled this is enabled is enabled if old enabled is enabled return fire layer item changed
|
enables or disables this
|
public boolean contains int x int y for int i 0 i get component count i component c get component i point point swing utilities convert point this new point x y c if c is visible c contains point return true if get mouse listeners length 0 get mouse motion listeners length 0 get mouse wheel listeners length 0 is cursor set return false return super contains x y
|
first implementatation of this method iterates through
|
public void set rendering hints map rendering hints key object rendering hints map rendering hints key object old rendering hints get rendering hints if rendering hints null rendering hints new hash map rendering hints key object this rendering hints rendering hints fire property change rendering hints old rendering hints rendering hints if is enabled old rendering hints equals rendering hints return set dirty true
|
sets the map of rendering hints to be applied to the
|
public void add property change listener property change listener listener property change support add property change listener listener
|
adds a property change listener to the listener list
|
public v get view return view
|
returns the view component for this
|
public void remove property change listener property change listener listener property change support remove property change listener listener
|
removes a property change listener from the listener list
|
public void set view v view jcomponent old view get view if old view null super remove old view if view null super add impl view null get component count this view view fire property change view old view view revalidate repaint
|
sets the view component the component to be decorated
|
public jcomponent get glass pane return glass pane
|
returns the glass pane component of this
|
public void set glass pane jcomponent glass pane if glass pane null throw new illegal argument exception glass pane can t be set to null jcomponent old glass pane get glass pane if old glass pane null super remove old glass pane super add impl glass pane null 0 this glass pane glass pane fire property change glass pane old glass pane glass pane revalidate repaint
|
sets the glass pane component of this
|
public void set incremental update boolean incremental update boolean old incremental update is incremental update this incremental update incremental update fire property change incremental update old incremental update incremental update if is enabled incremental update old incremental update return set dirty true
|
sets the incremental update flag for this
|
public void set enabled boolean enabled boolean old enabled is enabled this enabled enabled fire property change enabled old enabled enabled if old enabled enabled i don t use set dirty true here because i need the layer to be repainted even if the dirty flag was already set fire layer item changed
|
enables or disables this component depending on the value of the
|
public void paint graphics g layer ui v layer ui get ui if is painting g instanceof graphics2 d is valid ui get width 0 get height 0 graphics2 d g2 graphics2 d g create is painting true layer ui paint g2 this is painting false g2 dispose else super paint g
|
delegates all painting to the
|
public boolean is optimized drawing enabled return glass pane is visible
|
to enable the correct painting of the glass pane and view component
|
public void layer item changed layer item change event e shape clip e get clip get width get height if clip null repaint clip get bounds else repaint
|
this method is public as an implementation side effect
|
protected void set dirty boolean is dirty boolean old dirty is dirty this is dirty is dirty if is dirty old dirty fire layer item changed
|
sets the dirty bit
|
public void update ui if is valid ui get ui update ui this
|
delegates its functionality to the
|
protected void paint layer graphics2 d g2 jxlayer v l l paint g2
|
subclasses should implement this method
|
public boolean contains int x int y if is valid ui return get ui contains this x y the implementation of component inside int int method which is eventually called by super contains int int inside is deprecated so i copied this line here return x 0 x get width y 0 y get height
|
delegates its functionality to the
|
public dimension get preferred scrollable viewport size if get ui null return get ui get preferred scrollable viewport size this return get preferred size
|
returns the preferred size of the viewport for a view component
|
protected void configure graphics graphics2 d g2 jxlayer v l composite composite get composite l if composite null g2 set composite composite shape clip get clip l if clip null g2 clip clip affine transform transform get transform l if transform null g2 transform transform map rendering hints key object hints get rendering hints l if hints null for rendering hints key key hints key set object value hints get key if value null g2 set rendering hint key hints get key
|
this method is called by the
|
public boolean get scrollable tracks viewport height if get ui null return get ui get scrollable tracks viewport height this if get parent instanceof jviewport return get parent get height get preferred size height return false
|
returns false to indicate that the height of the viewport does not
|
public boolean get scrollable tracks viewport width if get ui null return get ui get scrollable tracks viewport width this if get parent instanceof jviewport return get parent get width get preferred size width return false
|
returns false to indicate that the width of the viewport does not
|
public void set proxy input context enabled boolean is enabled is proxy input context enabled is enabled
|
sets if the the proxy input context is enabled for this jxlayer
|
public void set map radius double map radius this map radius map radius
|
set the map radius in degrees
|
public input context get input context if is proxy input context enabled return super get input context null null input context return super get input context
|
returns the proxy input context which is used to catch all input events
|
public boolean is conformal return false
|
returns true if this projection is conformal
|
protected void process mouse motion event mouse event e jxlayer v l
|
processes mouse motion events occurring on the
|
public boolean is equal area return false
|
returns true if this projection is equal area
|
public boolean has inverse return false
|
returns true if this projection has an inverse
|
public boolean is rectilinear return false
|
returns true if lat long lines form a rectangular grid for this
|
public boolean inside double x double y x normalize longitude float x dtr projection longitude return min longitude x x max longitude min latitude y y max latitude
|
returns true if the given lat long point is visible in this projection
|
protected void fire action performed string command guaranteed to return a non null array object listeners listener list get listener list action event e null process the listeners last to first notifying those that are interested in this event for int i listeners length 2 i 0 i 2 if listeners i action listener class lazily create the event if e null e new action event this action event action performed command action listener listeners i 1 action performed e
|
notify all listeners that have registered interest for notification on
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.