sources
Class NodeLayer3

java.lang.Object
  extended bysources.Layer
      extended bysources.NodeLayer3

public class NodeLayer3
extends Layer

Deprecated: Not in use in this implementation of VanGogh


Field Summary
 
Fields inherited from class sources.Layer
mode, nonCol, selCol
 
Constructor Summary
NodeLayer3(LDataSet data, CategorialVariable from, CategorialVariable to, ContinuousVariable vx1, ContinuousVariable vy1, ContinuousVariable vx2, ContinuousVariable vy2, ContinuousVariable weights, CategorialVariable groupvar, double vxmin, double vymin, double vxmax, double vymax, int bh, int maxbh)
          Creates new NodeLayer
 
Method Summary
 void changeBinheight(int i)
           
 void changeMaxBinheight(int i)
           
 void createPolygons(int width, int height, boolean onlyselected)
           
 void createValues(boolean onlySelected)
           
 java.lang.Object getObjectAtKoord(int x, int y, boolean selected)
          returns the Object that lies on the specified point
 java.lang.Object getObjectsUnderRect(java.awt.Rectangle rect, boolean selected)
           
 boolean isOnly()
          Getter for property only.
 void paintLayer(java.awt.Graphics2D g, boolean selected, java.awt.Rectangle vsRect)
          paints the Layer
 void setOnly(boolean only)
          Setter for property only.
 
Methods inherited from class sources.Layer
getMode, setForegroundColor, setMode, setSelectionColor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeLayer3

public NodeLayer3(LDataSet data,
                  CategorialVariable from,
                  CategorialVariable to,
                  ContinuousVariable vx1,
                  ContinuousVariable vy1,
                  ContinuousVariable vx2,
                  ContinuousVariable vy2,
                  ContinuousVariable weights,
                  CategorialVariable groupvar,
                  double vxmin,
                  double vymin,
                  double vxmax,
                  double vymax,
                  int bh,
                  int maxbh)
Creates new NodeLayer

Parameters:
data - parent LDataSet
from - Categorial Variable of sources
to - Categorial Variable of targets
vx1 - X-Coordinates of sources
vy1 - Y-Coordinates of sources
vx2 - X-Coordinates of targets
vy2 - Y-Coordinates of targets
vxmin - minimal x-value for drawing
vymin - minimal y-value for drawing
vxmax - maximal x-value for drawing
vymax - maximal y-value for drawing
Method Detail

getObjectAtKoord

public java.lang.Object getObjectAtKoord(int x,
                                         int y,
                                         boolean selected)
returns the Object that lies on the specified point

Specified by:
getObjectAtKoord in class Layer
Parameters:
x - x-coordinate
y - y-coordinate
Returns:
the Object lying under that point

setOnly

public void setOnly(boolean only)
Setter for property only.

Specified by:
setOnly in class Layer
Parameters:
only - New value of property only.

paintLayer

public void paintLayer(java.awt.Graphics2D g,
                       boolean selected,
                       java.awt.Rectangle vsRect)
paints the Layer

Specified by:
paintLayer in class Layer
Parameters:
g - the graphics to paint on
vsRect - visible Rectangle

getObjectsUnderRect

public java.lang.Object getObjectsUnderRect(java.awt.Rectangle rect,
                                            boolean selected)
Specified by:
getObjectsUnderRect in class Layer

changeMaxBinheight

public void changeMaxBinheight(int i)
Specified by:
changeMaxBinheight in class Layer

createValues

public void createValues(boolean onlySelected)
Specified by:
createValues in class Layer

isOnly

public boolean isOnly()
Getter for property only.

Specified by:
isOnly in class Layer
Returns:
Value of property only.

createPolygons

public void createPolygons(int width,
                           int height,
                           boolean onlyselected)
Specified by:
createPolygons in class Layer

changeBinheight

public void changeBinheight(int i)
Specified by:
changeBinheight in class Layer