public static MapObjectColors getInstance() { if (instance == null) { instance = new MapObjectColors(); } return(instance); }
public void setMapObjectColor() { this.rectangle.Fill = MapObjectColors.getInstance().getColor(MapObjectType); if (isStrokeNeeded()) { this.rectangle.Stroke = Brushes.Black; } }