|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.josm.gui.layer.Layer
org.openstreetmap.josm.gui.layer.ValidatorLayer
public class ValidatorLayer
A layer showing error messages.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.openstreetmap.josm.gui.layer.Layer |
---|
Layer.LayerAction, Layer.LayerGpxExportAction, Layer.LayerSaveAction, Layer.LayerSaveAsAction, Layer.MultiLayerAction, Layer.SeparatorLayerAction |
Field Summary | |
---|---|
private int |
updateCount
|
Fields inherited from class org.openstreetmap.josm.gui.layer.Layer |
---|
ICON_SIZE, NAME_PROP, OPACITY_PROP, propertyChangeSupport, VISIBLE_PROP |
Constructor Summary | |
---|---|
ValidatorLayer()
|
Method Summary | |
---|---|
void |
activeLayerChange(Layer oldLayer,
Layer newLayer)
Notifies this listener that the active layer has changed. |
void |
destroy()
Called, when the layer is removed from the mapview and is going to be destroyed. |
javax.swing.Icon |
getIcon()
Return a static icon. |
java.lang.Object |
getInfoComponent()
|
javax.swing.Action[] |
getMenuEntries()
Returns list of actions. |
java.lang.String |
getToolTipText()
|
boolean |
isChanged()
Check changed status of layer |
boolean |
isMergable(Layer other)
|
void |
layerAdded(Layer newLayer)
Notifies this listener that a layer has been added. |
void |
layerRemoved(Layer oldLayer)
If layer is the OSM Data layer, remove all errors |
void |
mergeFrom(Layer from)
Merges the given layer into this layer. |
void |
paint(java.awt.Graphics2D g,
MapView mv,
Bounds bounds)
Draw all primitives in this layer but do not draw modified ones (they are drawn by the edit layer). |
void |
visitBoundingBox(BoundingXYVisitor v)
|
Methods inherited from class org.openstreetmap.josm.gui.layer.Layer |
---|
addPropertyChangeListener, checkSaveConditions, createAndOpenSaveFileChooser, fireOpacityChanged, fireVisibleChanged, getAssociatedFile, getColor, getName, getOpacity, hookUpMapView, isBackgroundLayer, isProjectionSupported, isSavable, isVisible, nameSupportedProjections, onPostLoadFromFile, projectionChanged, removePropertyChangeListener, setAssociatedFile, setBackgroundLayer, setName, setOpacity, setVisible, toggleVisible |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int updateCount
Constructor Detail |
---|
public ValidatorLayer()
Method Detail |
---|
public javax.swing.Icon getIcon()
getIcon
in class Layer
public void paint(java.awt.Graphics2D g, MapView mv, Bounds bounds)
paint
in interface MapViewPaintable
paint
in class Layer
mv
- The object that can translate GeoPoints to screen coordinates.public java.lang.String getToolTipText()
getToolTipText
in class Layer
public void mergeFrom(Layer from)
Layer
mergeFrom
in class Layer
from
- The layer that get merged into this one. After the merge,
the other layer is not usable anymore and passing to one others
mergeFrom should be one of the last things to do with a layer.public boolean isMergable(Layer other)
isMergable
in class Layer
other
- The other layer that is tested to be mergable with this.
public boolean isChanged()
Layer
isChanged
in class Layer
public void visitBoundingBox(BoundingXYVisitor v)
visitBoundingBox
in class Layer
public java.lang.Object getInfoComponent()
getInfoComponent
in class Layer
public javax.swing.Action[] getMenuEntries()
Layer
getMenuEntries
in class Layer
public void destroy()
Layer
destroy
in interface Destroyable
destroy
in class Layer
public void activeLayerChange(Layer oldLayer, Layer newLayer)
MapView.LayerChangeListener
activeLayerChange
in interface MapView.LayerChangeListener
oldLayer
- The previous active layernewLayer
- The new activer layerpublic void layerAdded(Layer newLayer)
MapView.LayerChangeListener
layerAdded
in interface MapView.LayerChangeListener
newLayer
- The new added layerpublic void layerRemoved(Layer oldLayer)
layerRemoved
in interface MapView.LayerChangeListener
oldLayer
- The old removed layer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |