|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsources.Layer
sources.FlowLayer2
A class to draw flows between nodes (aggregated flows, no transfer points)
Field Summary |
Fields inherited from class sources.Layer |
mode, nonCol, selCol |
Constructor Summary | |
FlowLayer2(LDataSet data,
CategorialVariable from,
CategorialVariable to,
ContinuousVariable vx1,
ContinuousVariable vy1,
ContinuousVariable vx2,
ContinuousVariable vy2,
ContinuousVariable vweight,
double vxmin,
double vymin,
double vxmax,
double vymax,
boolean onlySelected,
int mod)
Creates new FlowLayer2 |
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)
return the AbstractFlow that is under the specific 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 |
public FlowLayer2(LDataSet data, CategorialVariable from, CategorialVariable to, ContinuousVariable vx1, ContinuousVariable vy1, ContinuousVariable vx2, ContinuousVariable vy2, ContinuousVariable vweight, double vxmin, double vymin, double vxmax, double vymax, boolean onlySelected, int mod)
data
- the parental LDataSetfrom
- CategorialVariable of sourcesto
- CategorialVarieble of targetsvx1
- x-coordinates of sourcesvy1
- y-coordinates of sourcesvx2
- x-coordinates of targetsvy2
- y-coordinates of targetsvweight
- weightsvxmin
- minimal x-valuevymin
- minimal y-valuevxmax
- maximal x-valuevymax
- minimal y-valueMethod Detail |
public java.lang.Object getObjectAtKoord(int x, int y, boolean selected)
getObjectAtKoord
in class Layer
x
- x-coordinate of the Pointy
- y-coordinate of the Point
public void createPolygons(int width, int height, boolean onlyselected)
createPolygons
in class Layer
public java.lang.Object getObjectsUnderRect(java.awt.Rectangle rect, boolean selected)
getObjectsUnderRect
in class Layer
public void paintLayer(java.awt.Graphics2D g, boolean selected, java.awt.Rectangle vsRect)
paintLayer
in class Layer
g
- the graphics to paint onvsRect
- visible Rectanglepublic void changeBinheight(int i)
changeBinheight
in class Layer
public void changeMaxBinheight(int i)
changeMaxBinheight
in class Layer
public void createValues(boolean onlySelected)
createValues
in class Layer
public void setOnly(boolean only)
setOnly
in class Layer
only
- New value of property only.public boolean isOnly()
isOnly
in class Layer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |