|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsources.Layer
sources.FlowLayer
A class to draw flows between nodes (not aggregated, no transfer points)
Field Summary |
Fields inherited from class sources.Layer |
mode, nonCol, selCol |
Constructor Summary | |
FlowLayer(LDataSet data,
ContinuousVariable vx1,
ContinuousVariable vy1,
ContinuousVariable vx2,
ContinuousVariable vy2,
ContinuousVariable vweight,
double vxmin,
double vymin,
double vxmax,
double vymax,
boolean onlySelected,
int mod)
Creates new FlowLayer |
Method Summary | |
void |
changeBinheight(int i)
change the binheight |
void |
changeMaxBinheight(int i)
change the maximal binheight |
void |
createPolygons(int width,
int height,
boolean onlyselected)
prepare the polygons for painting |
void |
createValues(boolean onlySelected)
calculate all values |
java.lang.Object |
getObjectAtKoord(int x,
int y,
boolean selected)
returns a boolean Array of cases under x and y |
java.lang.Object |
getObjectsUnderRect(java.awt.Rectangle rect,
boolean selected)
returns a boolean array of cases intersecting with a rectangle |
boolean |
isOnly()
Getter for property only. |
void |
paintLayer(java.awt.Graphics2D g,
boolean selected,
java.awt.Rectangle vsRect)
paints all Flows |
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 |
public FlowLayer(LDataSet data, ContinuousVariable vx1, ContinuousVariable vy1, ContinuousVariable vx2, ContinuousVariable vy2, ContinuousVariable vweight, double vxmin, double vymin, double vxmax, double vymax, boolean onlySelected, int mod)
data
- the parent LDataSetvx1
- X-Coordinates of sourcesvy1
- Y-Coordinates of sourcesvx2
- X-Coordinates of targetsvy2
- Y-Coordinates of targetsvweight
- weights of the flowsvxmin
- minimal x-value for drawingvymin
- minimal y-value for drawingvxmax
- maximal x-value for drawingvymax
- maximal y-value for drawingonlySelected
- true, if only selected flows shall be visibleMethod Detail |
public void createPolygons(int width, int height, boolean onlyselected)
createPolygons
in class Layer
width
- the width of the imageheight
- the height of the imageonlyselected
- true, if only selected items shall be recalculatedpublic void paintLayer(java.awt.Graphics2D g, boolean selected, java.awt.Rectangle vsRect)
paintLayer
in class Layer
selected
- true, if only selected values shall be recalculatedg
- the Graphics to paint onvsRect
- visible Rectanglepublic java.lang.Object getObjectAtKoord(int x, int y, boolean selected)
getObjectAtKoord
in class Layer
x
- the x coordinatey
- the y coordinate
public java.lang.Object getObjectsUnderRect(java.awt.Rectangle rect, boolean selected)
getObjectsUnderRect
in class Layer
selected
- true, if only selected values are shownrect
- the Rectangle
public void changeBinheight(int i)
changeBinheight
in class Layer
i
- the new binheightpublic void changeMaxBinheight(int i)
changeMaxBinheight
in class Layer
i
- the new maximum binheightpublic void createValues(boolean onlySelected)
createValues
in class Layer
onlySelected
- true, if only selected values shall be recalculatedpublic boolean isOnly()
isOnly
in class Layer
public void setOnly(boolean only)
setOnly
in class Layer
only
- New value of property only.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |