input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
public void add indication listener indication listener l map can add indication listener l
|
adds an indication listener
|
public void remove indication listener indication listener l map can remove indication listener l
|
removes an indication listener from the component
|
public void add selection listener old selection listener l map can add selection listener l histo add selection listener l
|
adds an selection listener
|
public void remove selection listener old selection listener l map can remove selection listener l
|
removes an selection listener from the component
|
public void add spatial extent listener spatial extent listener l map can add spatial extent listener l
|
adds an spatial extent listener
|
public void remove spatial extent listener spatial extent listener l listener list remove spatial extent listener class l map can remove spatial extent listener l
|
removes an spatial extent listener from the component
|
public cursor get cursor int cursor lazily create cursor if need be if cursors cursor null point pt null if cursor geo cursors cursor pan cursor geo cursors cursor grab pt geo cursors pt hand else pt geo cursors pt arrow url url gif urls cursor image icon im icon new image icon url gif image im im icon get image cursors cursor get toolkit create custom cursor im pt custom return cursors cursor
|
returns the cursor specified
|
public void render observation no indication int obs graphics2 d g2 if obs 0 return if object colors length obs return shape shp spatial data obs if fisheyes null shp fisheyes transform shp if condition array obs 1 g2 set stroke default stroke if selected observations full index obs status selected selection exists color color object colors obs g2 set color color g2 draw shp if default stroke width 0 1f g2 set color color line g2 draw shp if selected observations full index obs status not selected selection exists g2 set paint default texture g2 draw shp
|
we need to override superclass because we should not fill
|
public void state changed change event e jslider source jslider e get source if source get value is adjusting weight source get value weight wt max weight text set text string value of weight fire action att set weight panel weight is changing else done adjusting double help source get value help wt max if math abs help weight 0000001 weight help weight text set value new double weight update weight value logger finest weight weight
|
listen to the slider
|
public void property change property change event e if value equals e get property name number value number e get new value if weight slider null value null int help int math round float value double value 100 double help double help int wt max if math abs help weight 0000001 weight help if help int weight slider get value weight slider set value help int
|
listen to the text field
|
public void set selection int selection this selection selection
|
set the indices of the selected attributes
|
protected jpanel make btn pane jpanel btn pane new jpanel jbutton button make tool button null ok null ok btn pane add button button make tool button null cancel null cancel btn pane add button return btn pane
|
create a jpanel to place at the bottom of att select panel
|
protected void make table object data table sorter sorter new table sorter new my table model column names data table set model sorter sorter set table header table get table header table set selection mode list selection model single interval selection table set preferred scrollable viewport size new dimension 322 270 table get column model get column 1 set min width table get column model get column 1 get preferred width table get column model get column 1 set max width table get column model get column 1 get preferred width
|
reset the content of the attribute selection table according to parameter
|
public void add action listener action listener sl ell add action listener class sl
|
adds the listener object to the list of listeners for actions
|
public void remove action listener action listener sl ell remove action listener class sl
|
removes the listener object from the list
|
public void fire action string command object listeners ell get listener list int num listeners listeners length action event se new action event this action event action performed command for int i 0 i num listeners i if listeners i action listener class pass the event to the listeners event dispatch method action listener listeners i 1 action performed se
|
fires the action performed event on all the registered listeners
|
public data set for apps get dataset for app return dataset for app
|
returns the dataset displayed in rad viz gui
|
public void set att weights double att weights this att weights att weights
|
sets the attribute weights of the dataset
|
public void set background color color background color this background color background color
|
sets the background color of rad viz gui
|
public void action performed action event e if e get source ok btn fire action att weights animation panel ok else if e get source cancel btn fire action att weights animation panel cancel else if e get source animate btn if animate btn get text equals ignore case animate fire action att weights animation panel animate animate btn set text stop else fire action att weights animation panel stop animate btn set text animate
|
listen to the buttons
|
public void set classification int classification this classification classification
|
sets the classification indices
|
public list get class labels return class labels
|
returns the class labels
|
public void set class labels list class labels this class labels class labels
|
sets the class labels
|
public void add indication listener indication listener l map can add indication listener l bi viz add indication listener l
|
adds an indication listener
|
private void paint drawing buff if drawing buff null data set null return graphics g drawing buff get graphics graphics2 d g2 graphics2 d g color very light gray new color 220 220 220 g set color very light gray g fill rect 0 0 get width get height paint circles g2 g2 set stroke new basic stroke pen width plot layer render stars g2 paint grid g2
|
attention all stars paint yourselves onto the buffer
|
public void remove indication listener indication listener l map can remove indication listener l bi viz remove indication listener l
|
removes an indication listener from the component
|
public string get color code att return color code att
|
returns the color code attribute
|
public void add selection listener selection listener l map can add selection listener l
|
adds an selection listener
|
public void remove selection listener selection listener l map can remove selection listener l
|
removes an selection listener from the component
|
public void set color code att string color code att this color code att color code att
|
sets the color code attribute
|
public void set colors color colors this colors colors
|
sets the array of distinct colors used to color code the data
|
public void add glyph listener glyph listener l if star plot canvas logger is loggable level finest logger finest this get class get name adding glyph listener listener list add glyph listener class l
|
adds an glyph listener to the component
|
public void remove glyph listener glyph listener l listener list remove glyph listener class l
|
removes an glyph listener from the component
|
public void fire glyph changed if star plot canvas logger is loggable level finest logger finest firing glyph changed guaranteed to return a non null array object listeners listener list get listener list glyph 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 glyph listener class lazily create the event if e null glyph glys find glyphs e new glyph event this glys glyph listener listeners i 1 glyph changed e
|
notify all listeners that have registered interest for notification on
|
public string get color scheme return color scheme
|
returns the color scheme of the array of distinct colors used to color
|
public void fire indication changed int 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 indication indication listener listeners i 1 indication changed e
|
notify all listeners that have registered interest for notification on
|
public void set fill color color fill color this fill color fill color
|
setter for property fill color
|
public int get indication id return indication id
|
returns the index of the indicated data point
|
public void set indication id int indication id this indication id indication id
|
sets the index of the indicated data point
|
public void add indication listener indication listener l star can add indication listener l
|
adds an indication listener to the component
|
public void remove indication listener indication listener l star can remove indication listener l
|
removes an indication listener from the component
|
public int get num class return num class
|
returns the number of classes
|
public void set num class int num class this num class num class
|
sets the number of classes
|
public void mouse dragged mouse event e draw box true draw tip false if mode map canvas mode pan cursor grab cur cursors get cursor geo cursors cursor grab if get cursor grab cur set cursor grab cur mouse x2 e get x mouse y2 e get y if mode map canvas mode pan pan buff mouse x1 mouse x2 mouse y1 mouse y2 repaint
|
draws a bounding box for selection
|
public void mouse pressed mouse event e mouse x1 e get x mouse y1 e get y mouse x2 e get x mouse y2 e get y
|
inits selection bounding box
|
private void set popup items boolean enabled menu element items popup get sub elements for menu element element items if element pan item element zoom in menu element zoom out menu if enabled get visible att idx length 2 element get component set enabled enabled else element get component set enabled enabled
|
sets the menu items in the popup menu to enabled or disabled status
|
public void set visible att idx int visible att idx this visible att idx visible att idx if visible att idx null visible att idx length 3 zoom in menu set enabled false zoom out menu set enabled false pan item set enabled false else zoom in menu set enabled true zoom out menu set enabled true pan item set enabled true
|
sets the indices of those attributes that will be displayed in rad viz
|
public 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
|
public void mouse dragged mouse event e e consume mouse x2 e get x mouse y2 e get y repaint
|
draws a bounding box for selection
|
protected void reset att label coordinates int num att visible att idx length x y coordiantes of labels for visible attributes sx new double num att sy new double num att rectangular boxes outlining the labels for visible attributes visible att lbl bnds new rectangle2 d num att
|
resets the screen coordinates of attribute labels displayed in rad viz
|
protected void reset data label coordinates int num data dataset for app get num observations ux new double num data uy new double num data
|
resets the screen coordinates of data points displayed in rad viz gui
|
public void mouse pressed mouse event e e consume mouse x1 e get x mouse y1 e get y mouse x2 e get x mouse y2 e get y
|
inits selection bounding box
|
public void add indication listener indication listener l scatter plot add indication listener l
|
adds an indication listener to the button
|
public void remove indication listener indication listener l scatter plot remove indication listener l
|
removes an indication listener from the button
|
private void fire color array changed guaranteed to return a non null array object listeners listener list get listener list color array 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 color array listener class lazily create the event if e null e new color array event this get colors color array listener listeners i 1 color array changed e next i
|
notify all listeners that have registered interest for notification on
|
protected 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 normalize double dstr int idx double copy new double dstr length system arraycopy dstr 0 copy 0 dstr length java util arrays sort copy double min copy 0 double max copy copy length 1 int help copy length 1 while double is na n copy help logger finest help help double max copy help if max min return for int i 0 i dstr length i dstr i dstr i min max min
|
does in place normalization of all values in a double array
|
private void paint top aux layers if drawing buff null return graphics g drawing buff get graphics graphics2 d g2 graphics2 d g if shape layers size 0 int layer num 0 for layer shape ls shape layers if logger is loggable level finest logger finest layer num layer num active layer active layer if ls get is auxiliary layer num active layer if you are aux and on top ls fisheyes fisheyes ls render selected observations g2 paint your whole self end if aux layer num next element end if
|
attention all auxiliary layers paint yourselves onto the buffer
|
protected void make plot layer img int w get width int h get height ri buffered image create image w h graphics2 d rig ri create graphics rig set background get background color rig clear rect 0 0 w h if get visible att idx null get visible att idx length 1 if visible att idx length 2 draw scatter2 d rig w h else if visible att idx length 2 draw radviz rig w h rig dispose
|
draws the plot layer which contains either a multidimenional rad viz plot
|
public int length return data array length
|
return the length of data array
|
public double get major tick return alter base
|
return the base of labels
|
public int get tick number int tick number int mmextent 1 mmextent 0 alter base return tick number
|
return the number of ticks on axis
|
public void set data indices int indices data indices indices axis data setup initialize
|
set up x and y axises in each element by setting the attributes
|
public void add action listener action listener al listener list add action listener class al
|
adds the listener object to the list of listeners for actions
|
public void remove action listener action listener al listener list remove action listener class al
|
removes the listener object from the list
|
public void fire action object listeners listener list get listener list int num listeners listeners length action event se new action event this 42 a string for int i 0 i num listeners i if listeners i action listener class pass the event to the listeners event dispatch method action listener listeners i 1 action performed se
|
fires the action performed event on all the registered listeners
|
public void add data set listener data set listener dl listener list add data set listener class dl
|
adds the listener object to the list of listeners for datasets
|
private double get scale int min int max double data min double data max double scale scale max min data max data min scale max min data max return scale
|
calculate scale between real data and integer data for showing up on
|
public void add selection listener selection listener l logger finest map can selection listeners listener list get listener count selection listener class listener list add selection listener class l
|
adds an selection listener
|
public void remove data set listener data set listener dl listener list remove data set listener class dl
|
removes the listener object from the list
|
public void remove selection listener selection listener l logger finest map can removing a selection listener listener list remove selection listener class l
|
removes an selection listener from the component
|
public void set condition array int condition array this condition array condition array
|
pass conditioning into scatterplot
|
public void add indication listener indication listener il listener list add indication listener class il
|
adds the listener object to the list of listeners for indications
|
public void action performed action event e try action button action performed e catch exception exception exception print stack trace
|
button to set up new data ranges shown up in scatter plot
|
public void set selection color color c selection color c paint drawing buff this repaint
|
defind selection color for graph
|
public void remove indication listener indication listener il listener list remove indication listener class il
|
removes the listener object from the list
|
private void action button action performed action event e get the input data from text field bin count integer parse int hist number field get text x axis extents 0 double parse double x axis min field get text x axis extents 1 double parse double x axis max field get text histogram calculation setup datafor display set accumulative frequency fire action performed command datarange set logger finest ok fire event repaint dialog1 set visible false
|
set up new data ranges to show
|
public void add spatial extent listener spatial extent listener l listener list add spatial extent listener class l
|
adds an spatial extent listener
|
public void fire indication changed int indicator 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 indicator indication listener listeners i 1 indication changed e
|
fires the indication changed event on all the registered listeners
|
public void remove spatial extent listener spatial extent listener l listener list remove spatial extent listener class l
|
removes an spatial extent listener from the component
|
public void action performed action event e try action button2 action performed e catch exception exception exception print stack trace
|
button to set up new data ranges shown up in scatter plot
|
private void fire spatial extent changed rectangle2 d new spatial extent guaranteed to return a non null array object listeners listener list get listener list spatial extent 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 spatial extent listener class lazily create the event if e null e new spatial extent event this new spatial extent spatial extent listener listeners i 1 spatial extent changed e next i
|
notify all listeners that have registered interest for notification on
|
public void add selection listener selection listener sl listener list add selection listener class sl
|
adds the listener object to the list of listeners for selections
|
private void action button2 action performed action event e get the input data from text field y axis extents 0 double parse double y axis min field get text y axis extents 1 double parse double y axis max field get text hist array set extent y axis extents setup datafor display fire action performed command datarange set logger finest ok fire event repaint dialog2 set visible false
|
set up new data ranges to show
|
public void remove selection listener selection listener sl listener list remove selection listener class sl
|
removes the listener object from the list
|
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 if e null e new selection event this new selection selection listener listeners i 1 selection changed e
|
fires the selection changed event on all the registered listeners
|
public void add subspace listener subspace listener sl listener list add subspace listener class sl
|
adds the listener object to the list of listeners for supspaces
|
public void remove subspace listener subspace listener sl listener list remove subspace listener class sl
|
removes the listener object from the list
|
public void fire subspace changed int selection guaranteed to return a non null array object listeners listener list get listener list subspace 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 subspace listener class lazily create the event if e null e new subspace event this selection subspace listener listeners i 1 subspace changed e
|
fires the subspace changed event on all the registered listeners
|
public vector get selected observations return sel records
|
return selections from this scatterplot
|
public void set selected observations vector selected observations sel records selected observations
|
set up selections from other components
|
protected double get scale int min int max double data min double data max double scale scale max min data max data min return scale
|
calculate scale between real data and integer data for showing up on
|
public void paint buffer if get width 0 get height 0 return if drawing buff null remake drawing buff graphics g drawing buff get graphics make xform graphics2 d g2 graphics2 d g draw image g2 draw image pixel buff xform this if drawing shapes null use drawing shapes g2 set color color cyan basic stroke outline new basic stroke 2 0f g2 set stroke outline for shape element drawing shapes if element null g2 draw element end if null next i end if draw shapes xxx repaint
|
this method reconstructs the contents of the drawing buff
|
public void classification result changed classification result event e
|
implements the classification result listener interface
|
public void data set changed data set event e set data set e get data set for apps
|
implements the data set listener interface
|
public void action performed action event e try action button action performed e catch exception exception
|
button to set up new data ranges shown up in scatter plot
|
public void indication changed indication event e if this e get source return set indication id e get indication set indication tool tip e get indication repaint
|
implements the indication listener interface
|
public void selection changed selection event e set selection e get selection repaint
|
implements the selection listener interface
|
public void mouse pressed mouse event e if data indices null data indices null return if data indices 0 data indices 1 return if e is popup trigger maybe show popup e sel records clear mouse x1 e get x mouse y1 e get y
|
begin the drawing of selection region box
|
public void subspace changed subspace event e set visible att idx e get subspace reset att label coordinates make plot layer img repaint
|
implements the subspace listener interface
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.