public interface ProjectFrame
Modifier and Type | Method and Description |
---|---|
void |
addComponentInProjectFrame(JComponent component,
String layout)
Add a component to this ProjectFrame
|
Layer |
addFeatureCollection(IPopulation<?> population,
String name)
Deprecated.
This function should not be longer used since layers include
now a CRS. Only here to ensure backward compatibility
|
Layer |
addFeatureCollection(IPopulation<? extends IFeature> population,
String name,
CoordinateReferenceSystem crs)
Add a feature collection to the project.
|
void |
addGpsTxtLayer(String fileName) |
void |
addImage(String name,
BufferedImage image,
double[][] range) |
void |
addLayer(File file) |
void |
addLayer(Layer l)
Add a layer at the end of the sld of this ProjectFrame.
|
void |
addLayer(Layer l,
int index)
Inserts the specified layer at the specified position in this
ProjectFrame.
|
void |
addRoadNetworkTxtLayer(String fileName) |
void |
addSldEditionLock(Object owner) |
Layer |
addUserLayer(IFeatureCollection<? extends IFeature> collection,
String name,
CoordinateReferenceSystem crs)
Add a feature collection to the project.
|
void |
askAndAddNewLayer() |
void |
clearAllSldEditionOwner() |
void |
clearSelection()
Clear the selection.
|
void |
dispose()
Dispose of the frame an its
LayerViewPanel . |
DataSet |
getDataSet() |
JComponent |
getGui()
get the main GUI component of this Project Frame
|
BufferedImage |
getImage(IFeature feature) |
Layer |
getLayer(String name) |
Layer |
getLayerFromFeature(IFeature ft) |
LayerLegendPanel |
getLayerLegendPanel() |
List<Layer> |
getLayers() |
LayerViewPanel |
getLayerViewPanel() |
MainFrame |
getMainFrame() |
JMenuBar |
getMenuBar() |
String |
getName()
get project name
|
StyledLayerDescriptor |
getSld() |
Set<Object> |
getSldEditionOwners() |
String |
getTitle()
get the project frame title
|
void |
loadSLD(File file)
SCH load the described styles in an xml file and apply them to a
predefined dataset.
|
void |
loadSLD(StyledLayerDescriptor new_sld,
boolean validate) |
void |
releaseSldEditionLock(Object owner)
return true if SLD is currently in edition
|
void |
removeLayers(List<Layer> toRemove) |
void |
repaint()
repaint UI
|
void |
saveAsImage(String fileName)
Deprecated.
Use
saveAsImage(String, int, int, boolean) instead. |
void |
saveAsImage(String fileName,
int w,
int h,
boolean doSaveWorldFile)
Save the map into an image file.
|
void |
saveAsShp(String fileName,
Layer layer)
Saves a layer into an ESRI Shapefile
|
void |
saveAsSLD(String fileName)
SCH Save the current styles into an xml file.
|
void |
setGeometryToolsVisible(boolean b) |
void |
setLocation(int widthProjectFrame,
int i) |
void |
setMenuBar(JMenuBar menuBar) |
void |
setSize(int widthProjectFrame,
int i) |
void |
setSld(StyledLayerDescriptor sld) |
void |
setTitle(String string)
set the project frame title
|
void |
validate()
Validates this container and all of its subcomponents.
|
JComponent getGui()
MainFrame getMainFrame()
LayerViewPanel getLayerViewPanel()
LayerViewPanel
void setSld(StyledLayerDescriptor sld)
StyledLayerDescriptor getSld()
void addLayer(Layer l)
l
- the new layervoid addLayer(Layer l, int index)
l
- the new layerindex
- the position of the new layervoid addLayer(File file)
void askAndAddNewLayer()
void addGpsTxtLayer(String fileName)
void addRoadNetworkTxtLayer(String fileName)
Layer addFeatureCollection(IPopulation<? extends IFeature> population, String name, CoordinateReferenceSystem crs)
population
- the population to addname
- the name of the populationLayer addUserLayer(IFeatureCollection<? extends IFeature> collection, String name, CoordinateReferenceSystem crs)
population
- the population to addname
- the name of the population@Deprecated Layer addFeatureCollection(IPopulation<?> population, String name)
void dispose()
LayerViewPanel
.Layer getLayer(String name)
name
- name of the layervoid clearSelection()
void setGeometryToolsVisible(boolean b)
void addImage(String name, BufferedImage image, double[][] range)
BufferedImage getImage(IFeature feature)
void saveAsImage(String fileName, int w, int h, boolean doSaveWorldFile)
fileName
- the image file to save into.doSaveWorldFile
- h
- : the height of the imagew
- : the width of the imagedoSaveWorldFile
- : if set to True, save the georeferencing informations in a WorldFilevoid saveAsImage(String fileName)
saveAsImage(String, int, int, boolean)
instead.fileName
- the image file to save into.void saveAsShp(String fileName, Layer layer)
fileName
- layer
- void saveAsSLD(String fileName)
fileName
- the xml file to save into.void loadSLD(File file) throws FileNotFoundException, JAXBException
fileName
- the xml file to load.validate
- Enable the validation of the sld elementsJAXBException
FileNotFoundException
void loadSLD(StyledLayerDescriptor new_sld, boolean validate)
DataSet getDataSet()
void repaint()
LayerLegendPanel getLayerLegendPanel()
void setTitle(String string)
String getTitle()
String getName()
void setMenuBar(JMenuBar menuBar)
JMenuBar getMenuBar()
void setSize(int widthProjectFrame, int i)
void setLocation(int widthProjectFrame, int i)
void addComponentInProjectFrame(JComponent component, String layout)
void validate()
void releaseSldEditionLock(Object owner)
void addSldEditionLock(Object owner)
void clearAllSldEditionOwner()
Copyright © 2016 Laboratoire COGIT, IGN. All rights reserved.