// Path: rabbit-core/src/main/java/org/ohdsi/rabbitInAHat/dataModel/MappableItem.java
// public interface MappableItem extends Serializable{
// 	public String outputName();
// 	public String getName();
// 	public Database getDb();
// 	public boolean isStem();
// 	public void setStem(boolean isStem);
// }


import org.ohdsi.rabbitInAHat.dataModel.MappableItem;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Font;
import java.awt.FontMetrics;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.Stroke;
import java.awt.geom.Rectangle2D;
import java.util.ArrayList;
import java.util.List;
import javax.swing.event.ChangeListener;

/*******************************************************************************
 * Copyright 2019 Observational Health Data Sciences and Informatics
 * 
 * This file is part of WhiteRabbit
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 ******************************************************************************/
package org.ohdsi.rabbitInAHat;




public class LabeledRectangle implements MappingComponent {

	public static int				FONT_SIZE		= 18;

	private static Stroke			stroke			= new BasicStroke(2);
	private static BasicStroke		dashed			= new BasicStroke(2.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER, 10.0f, new float[] { 10.f }, 0.0f);
	private List<ChangeListener>	changeListeners	= new ArrayList<ChangeListener>();
	private int						x;
	private int						y;
	private int						width;
	private int						height;

// Path: rabbit-core/src/main/java/org/ohdsi/rabbitInAHat/dataModel/MappableItem.java
// public interface MappableItem extends Serializable{
// 	public String outputName();
// 	public String getName();
// 	public Database getDb();
// 	public boolean isStem();
// 	public void setStem(boolean isStem);
// }


// Path: rabbitinahat/src/main/java/org/ohdsi/rabbitInAHat/LabeledRectangle.java
import org.ohdsi.rabbitInAHat.dataModel.MappableItem;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Font;
import java.awt.FontMetrics;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.Stroke;
import java.awt.geom.Rectangle2D;
import java.util.ArrayList;
import java.util.List;
import javax.swing.event.ChangeListener;

/*******************************************************************************
 * Copyright 2019 Observational Health Data Sciences and Informatics
 * 
 * This file is part of WhiteRabbit
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 ******************************************************************************/
package org.ohdsi.rabbitInAHat;




public class LabeledRectangle implements MappingComponent {

	public static int				FONT_SIZE		= 18;

	private static Stroke			stroke			= new BasicStroke(2);
	private static BasicStroke		dashed			= new BasicStroke(2.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER, 10.0f, new float[] { 10.f }, 0.0f);
	private List<ChangeListener>	changeListeners	= new ArrayList<ChangeListener>();
	private int						x;
	private int						y;
	private int						width;
	private int						height;

	private MappableItem			item;
