package nl.tudelft.simulation.dsol.animation.gis; import java.awt.Color; /** * This interface defines the layer of the map. *
* Copyright (c) 2020-2021 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See * for project information DSOL Manual. The DSOL * project is distributed under a three-clause BSD-style license, which can be found at * DSOL License. *
* @author Alexander Verbraeck */ public interface LayerInterface extends java.io.Serializable { /** * Return the fill color for the layer. * @return Color; the rgb(a) fill color for the layer */ Color getFillColor(); /** * Set the fill color for the layer. * @param fillColor Color; the rgb(a) fill color for the layer */ void setFillColor(Color fillColor); /** * Return the outline (line) color for the layer. * @return Color; the rgb(a) outline (line) color for the layer */ Color getOutlineColor(); /** * Set the outline (line) color for the layer. * @param outlineColor Color; the rgb(a) outline (line) color for the layer */ void setOutlineColor(Color outlineColor); /** * Return the layer name. * @return String; layer name */ String getName(); /** * Set the layer name. * @param name String; layer name */ void setName(String name); /** * Return the minimum scale at which this layer has to be drawn. FIXME: how do we define scale? * @return int; the minimum scale at which this layer has to be drawn */ int getMinScale(); /** * Set the minimum scale at which this layer has to be drawn. * @param minscale int; the minimum scale at which this layer has to be drawn */ void setMinScale(int minscale); /** * Return the maximum scale at which this layer has to be drawn. FIXME: how do we define scale? * @return int; the maximum scale at which this layer has to be drawn */ int getMaxScale(); /** * Set the maximum scale at which this layer has to be drawn. * @param maxScale int; the maximum scale at which this layer has to be drawn */ void setMaxScale(int maxScale); /** * Return the display status of the layer (displayed or not). * @return boolean; the display status of the layer (displayed or not) */ boolean isDisplay(); /** * Set the display status of the layer (displayed or not). * @param status boolean; the display status of the layer (displayed or not) */ void setDisplay(boolean status); /** * Return the status for the transformation: should the transform be used for this layer or not? * @return boolean; the status for the transformation: should the transform be used for this layer or not? */ boolean isTransform(); /** * Set the status for the transformation: should the transform be used for this layer or not? * @param transform boolean; the status for the transformation: should the transform be used for this layer or not? */ void setTransform(boolean transform); }