|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.swing.SwingWorker ch.epfl.scapetoad.Cartogram
public class Cartogram
The cartogram class is the main computation class. It is a subclass of the SwingWorker class. It has methods for setting all the parameters and for launching the computation.
Method Summary | |
---|---|
java.lang.Object |
construct()
The construct method is an overriden method from SwingWorker which does initiate the computation process. |
double |
estimateMaximumSegmentLength()
Tries to estimate the maximum segment length allowed for a geometry. |
void |
finished()
This method is called once the construct method has finished. |
boolean |
getAdvancedOptionsEnabled()
|
java.lang.String |
getCategoryName()
Returns the category name for our cartogram layers. |
java.lang.String |
getComputationReport()
|
boolean |
getCreateGridLayer()
Says whether we should create a grid layer or not. |
boolean |
getCreateLegendLayer()
Says whether we should create a legend layer or not. |
int |
getDiffusionGridSize()
|
int |
getDiffusionIterations()
|
int |
getGridLayerSize()
Returns the grid layer size. |
double[] |
getLegendValues()
|
void |
produceComputationReport(Layer projectedMasterLayer)
Creates the computation report and stores it in the object attribute. |
void |
setAdvancedOptionsEnabled(boolean enabled)
|
void |
setAmountOfDeformation(int deformation)
Defines the amount of deformation. |
void |
setConstrainedDeformationLayers(java.util.Vector layers)
Defines the layers which should not be deformed. |
void |
setCreateGridLayer(boolean createGridLayer)
Sets the flag for creating or not a grid layer. |
void |
setCreateLegendLayer(boolean createLegendLayer)
Sets the flag which says whether to create a legend layer or not. |
void |
setDiffusionGridSize(int size)
|
void |
setDiffusionIterations(int iterations)
|
void |
setGridLayerSize(int gridLayerSize)
Changes the size of the grid layer to produce. |
void |
setGridSize(int x,
int y)
Defines the grid size in x and y dimensions. |
void |
setLayerManager(LayerManager lm)
Sets the layer manager. |
void |
setLegendValues(double[] legendValues)
|
void |
setMasterAttribute(java.lang.String attributeName)
Sets the name of the cartogram master attribute. |
void |
setMasterAttributeIsDensityValue(boolean isDensityValue)
Lets define us whether the master attribute is a density value or a population value. |
void |
setMasterLayer(java.lang.String layerName)
Sets the name of the cartogram master layer. |
void |
setMaximumRunningTime(int seconds)
Defines the maximum running time in seconds. |
void |
setMissingValue(java.lang.String value)
|
void |
setSlaveLayers(java.util.Vector slaveLayers)
Defines the layers to deform during the cartogram process. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.lang.Object construct()
public void finished()
public void setLayerManager(LayerManager lm)
public void setMasterLayer(java.lang.String layerName)
public void setMasterAttribute(java.lang.String attributeName)
public void setMasterAttributeIsDensityValue(boolean isDensityValue)
public void setSlaveLayers(java.util.Vector slaveLayers)
public void setConstrainedDeformationLayers(java.util.Vector layers)
public void setGridSize(int x, int y)
public void setAmountOfDeformation(int deformation)
public void setMaximumRunningTime(int seconds)
public boolean getCreateGridLayer()
public void setCreateGridLayer(boolean createGridLayer)
public int getGridLayerSize()
public void setGridLayerSize(int gridLayerSize)
public boolean getCreateLegendLayer()
public void setCreateLegendLayer(boolean createLegendLayer)
public double[] getLegendValues()
public void setLegendValues(double[] legendValues)
public boolean getAdvancedOptionsEnabled()
public void setAdvancedOptionsEnabled(boolean enabled)
public int getDiffusionGridSize()
public void setDiffusionGridSize(int size)
public int getDiffusionIterations()
public void setDiffusionIterations(int iterations)
public java.lang.String getCategoryName()
public void produceComputationReport(Layer projectedMasterLayer)
public java.lang.String getComputationReport()
public double estimateMaximumSegmentLength()
public void setMissingValue(java.lang.String value)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |