es.prodevelop.gvsig.mobile.gui.dialog.control
Class ViewLayersGraphicStatus

java.lang.Object
  extended byes.prodevelop.gvsig.mobile.gui.dialog.control.ViewLayersGraphicStatus

public class ViewLayersGraphicStatus
extends java.lang.Object

This class keeps a copy of the symbology and other TOC settings and is used to detect changes in the symbollogy that must cause a redrawing of the map and a refresh of the symbology icons in the TOC.

Author:
jldominguez
See Also:
LayersTableItem

Constructor Summary
ViewLayersGraphicStatus(LayersTable t)
          Constructor
 
Method Summary
 java.awt.Color getBorderColor(int i)
          Gets the border color used in the symbology of the i-th layer
 java.awt.Color getFillColor(int i)
          Gets the fill color used in the symbology of the i-th layer
 boolean getFilled(int i)
          Gets whether the symbology of i-th layer is filled for polygons
 long getId(int i)
          Gets the ID of the i-th layer considered in this object
 int getLayerCount()
           
 double getMaxScale(int i)
          Gets the max scale of the i-th layer in this object
 double getMinScale(int i)
          Gets the min scale of the i-th layer in this object
 int getStrokeWidth(int i)
          Gets the width of the stroke used in the symbology of the i-th layer
 boolean getVisible(int i)
          Gets whether the i-th layer in this object is visible
 boolean isSame(ViewLayersGraphicStatus stt)
          Tells whether there have been changes between the old TOC settings and the ones provided
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewLayersGraphicStatus

public ViewLayersGraphicStatus(LayersTable t)
Constructor

Parameters:
t - The LayersTable to be monitored
Method Detail

getId

public long getId(int i)
Gets the ID of the i-th layer considered in this object

Parameters:
i - index of the referenced layer
Returns:
ID of the referenced layer

getMaxScale

public double getMaxScale(int i)
Gets the max scale of the i-th layer in this object

Parameters:
i - the index of the layer
Returns:
the max scale of the i-th layer in this object

getMinScale

public double getMinScale(int i)
Gets the min scale of the i-th layer in this object

Parameters:
i - the index of the layer
Returns:
the min scale of the i-th layer in this object

getVisible

public boolean getVisible(int i)
Gets whether the i-th layer in this object is visible

Parameters:
i - the index of the layer
Returns:
true if the i-th layer in this object is visible, false otherwise

getBorderColor

public java.awt.Color getBorderColor(int i)
Gets the border color used in the symbology of the i-th layer

Parameters:
i - the index of the layer
Returns:
the border color used in the symbology of the layer

getFillColor

public java.awt.Color getFillColor(int i)
Gets the fill color used in the symbology of the i-th layer

Parameters:
i - the index of the layer
Returns:
the fill color used in the symbology of the layer

getFilled

public boolean getFilled(int i)
Gets whether the symbology of i-th layer is filled for polygons

Parameters:
i - the index of the layer
Returns:
whether the symbology of i-th layer is filled for polygons

getStrokeWidth

public int getStrokeWidth(int i)
Gets the width of the stroke used in the symbology of the i-th layer

Parameters:
i - the idnex of the layer
Returns:
the width of the stroke used in the symbology of the i-th layer

getLayerCount

public int getLayerCount()

isSame

public boolean isSame(ViewLayersGraphicStatus stt)
Tells whether there have been changes between the old TOC settings and the ones provided

Parameters:
stt - TOC settings to be compared with previous ones
Returns:
whether there have been changesin the TOC settings