public abstract class ImageryLayer extends Layer
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
ImageryLayer.ApplyOffsetAction |
class |
ImageryLayer.OffsetAction |
Layer.LayerAction, Layer.LayerGpxExportAction, Layer.LayerSaveAction, Layer.LayerSaveAsAction, Layer.MultiLayerAction, Layer.SeparatorLayerActionAbstractMapViewPaintable.CompatibilityModeLayerPainterMapViewPaintable.LayerPainter, MapViewPaintable.MapViewEvent, MapViewPaintable.PaintableInvalidationEvent, MapViewPaintable.PaintableInvalidationListener| Modifier and Type | Field and Description |
|---|---|
private ImageryFilterSettings |
filterSettings |
protected javax.swing.Icon |
icon |
private java.util.List<ImageProcessor> |
imageProcessors |
protected ImageryInfo |
info |
static IntegerProperty |
PROP_FADE_AMOUNT |
static ColorProperty |
PROP_FADE_COLOR |
static IntegerProperty |
PROP_SHARPEN_LEVEL |
FILTER_STATE_PROP, NAME_PROP, OPACITY_PROP, propertyChangeSupport, VISIBLE_PROP| Constructor and Description |
|---|
ImageryLayer(ImageryInfo info)
Constructs a new
ImageryLayer. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addImageProcessor(ImageProcessor processor)
This method adds the
ImageProcessor to this Layer if it is not null. |
java.awt.image.BufferedImage |
applyImageProcessors(java.awt.image.BufferedImage img)
Applies all the chosen
ImageProcessors to the image |
static ImageryLayer |
create(ImageryInfo info) |
static ImageProcessor |
createImageProcessor(java.awt.image.BufferedImageOp op,
boolean inPlace)
Wraps a
BufferedImageOp to be used as ImageProcessor. |
void |
displace(double dx,
double dy)
Deprecated.
|
protected abstract javax.swing.Action |
getAdjustAction() |
double |
getDx()
Deprecated.
|
double |
getDy()
Deprecated.
|
static java.awt.Color |
getFadeColor() |
static java.awt.Color |
getFadeColorWithAlpha() |
ImageryFilterSettings |
getFilterSettings()
Gets the settings for the filter that is applied to this layer.
|
javax.swing.Icon |
getIcon()
Return a representative small image for this layer.
|
java.util.List<ImageProcessor> |
getImageProcessors()
This method gets all
ImageProcessors of the layer |
ImageryInfo |
getInfo()
Returns imagery info.
|
java.lang.Object |
getInfoComponent() |
javax.swing.JMenuItem |
getOffsetMenuItem() |
javax.swing.JComponent |
getOffsetMenuItem(javax.swing.JComponent subMenu) |
double |
getPPD() |
boolean |
isMergable(Layer other) |
void |
mergeFrom(Layer from)
Merges the given layer into this layer.
|
boolean |
removeImageProcessor(ImageProcessor processor)
This method removes given
ImageProcessor from this layer |
void |
setOffset(double dx,
double dy)
Deprecated.
|
java.lang.String |
toString() |
addPropertyChangeListener, checkSaveConditions, createAndOpenSaveFileChooser, destroy, fireFilterStateChanged, fireOpacityChanged, fireVisibleChanged, getAssociatedFile, getBaseColorProperty, getColorProperty, getDefaultLayerPosition, getMenuEntries, getName, getOpacity, getToolTipText, getViewProjectionBounds, hookUpMapView, isBackgroundLayer, isChanged, isInfoResizable, isProjectionSupported, isRenamed, isSavable, isVisible, nameSupportedProjections, onPostLoadFromFile, projectionChanged, removePropertyChangeListener, rename, setAssociatedFile, setBackgroundLayer, setFilterStateChanged, setName, setOpacity, setVisible, toggleVisible, visitBoundingBoxaddInvalidationListener, attachToMapView, createMapViewPainter, invalidate, removeInvalidationListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpaintpublic static final ColorProperty PROP_FADE_COLOR
public static final IntegerProperty PROP_FADE_AMOUNT
public static final IntegerProperty PROP_SHARPEN_LEVEL
private final java.util.List<ImageProcessor> imageProcessors
protected final ImageryInfo info
protected javax.swing.Icon icon
private final ImageryFilterSettings filterSettings
public ImageryLayer(ImageryInfo info)
ImageryLayer.info - imagery infopublic static java.awt.Color getFadeColor()
public static java.awt.Color getFadeColorWithAlpha()
public double getPPD()
@Deprecated public double getDx()
TileSourceDisplaySettings.getDx()@Deprecated public double getDy()
TileSourceDisplaySettings.getDy()@Deprecated public void setOffset(double dx, double dy)
TileSourceDisplaySettingsdx - The x offsetdy - The y offset@Deprecated public void displace(double dx, double dy)
TileSourceDisplaySettingsdx - deprecateddy - deprecatedpublic ImageryInfo getInfo()
public javax.swing.Icon getIcon()
Layerpublic boolean isMergable(Layer other)
isMergable in class Layerother - The other layer that is tested to be mergable with this.public void mergeFrom(Layer from)
Layerpublic java.lang.Object getInfoComponent()
getInfoComponent in class Layerpublic static ImageryLayer create(ImageryInfo info)
public javax.swing.JMenuItem getOffsetMenuItem()
public javax.swing.JComponent getOffsetMenuItem(javax.swing.JComponent subMenu)
protected abstract javax.swing.Action getAdjustAction()
public ImageryFilterSettings getFilterSettings()
public boolean addImageProcessor(ImageProcessor processor)
ImageProcessor to this Layer if it is not null.processor - that processes the imagepublic boolean removeImageProcessor(ImageProcessor processor)
ImageProcessor from this layerprocessor - which is needed to be removedpublic static ImageProcessor createImageProcessor(java.awt.image.BufferedImageOp op, boolean inPlace)
BufferedImageOp to be used as ImageProcessor.op - the BufferedImageOpinPlace - true to apply filter in place, i.e., not create a new BufferedImage for the result
(the op needs to support this!)ImageProcessor wrapperpublic java.util.List<ImageProcessor> getImageProcessors()
ImageProcessors of the layerpublic java.awt.image.BufferedImage applyImageProcessors(java.awt.image.BufferedImage img)
ImageProcessors to the imageimg - - image which should be changed