|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsources.Layer
sources.MapLayer
This class is responsible for drawing a map. It is used by Flow and Map Diagrams
Field Summary |
Fields inherited from class sources.Layer |
mode, nonCol, selCol |
Constructor Summary | |
MapLayer(LDataSet data,
GeoMap map,
ContinuousVariable weight,
CategorialVariable catvar,
double vxmin,
double vymin,
double vxmax,
double vymax)
|
|
MapLayer(LDataSet data,
GeoMap map,
double vxmin,
double vymin,
double vxmax,
double vymax)
Creates new MapLayer |
Method Summary | |
void |
changeBinheight(int i)
|
void |
changeMaxBinheight(int i)
|
void |
createColors(boolean onlyselected)
|
void |
createPolygons(int width,
int height,
boolean onlyselected)
|
void |
createValues(boolean onlySelected)
|
void |
functionChanged(double val)
|
double |
getBase()
Getter for property base. |
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 |
setBase(double base)
Setter for property base. |
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 MapLayer(LDataSet data, GeoMap map, double vxmin, double vymin, double vxmax, double vymax)
public MapLayer(LDataSet data, GeoMap map, ContinuousVariable weight, CategorialVariable catvar, double vxmin, double vymin, double vxmax, double vymax)
Method Detail |
public java.lang.Object getObjectAtKoord(int x, int y, boolean selected)
getObjectAtKoord
in class Layer
x
- x-coordinatey
- y-coordinate
public void createPolygons(int width, int height, boolean onlyselected)
createPolygons
in class Layer
public void createColors(boolean onlyselected)
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 functionChanged(double val)
functionChanged
in interface MapColorer
public double getBase()
public void setBase(double base)
base
- New value of property base.public 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 |