/*
 * JaamSim Discrete Event Simulation
 * Copyright (C) 2018 JaamSim Software Inc.
 *
 * 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 com.jaamsim.Graphics;

import com.jaamsim.math.Color4d;
import com.jaamsim.math.Vec3d;

public interface TextEntity {
	public String getFontName();
	public double getTextHeight();
	public String getTextHeightString();
	public int getStyle();
	public boolean isBold();
	public boolean isItalic();
	public Color4d getFontColor();
	public boolean getDropShadow();
	public Color4d getDropShadowColor();
	public Vec3d getDropShadowOffset();

}

@@ -670,16 +670,149 @@
 phics;%0A%0A
+import java.util.ArrayList;%0Aimport java.util.Collections;%0A%0Aimport com.jaamsim.basicsim.Entity;%0Aimport com.jaamsim.input.ColourInput;%0A
 import c
@@ -1217,10 +1217,798 @@
 set();%0A%0A
+%09public static ArrayList%3CString%3E getFontsInUse() %7B%0A%09%09ArrayList%3CString%3E ret = new ArrayList%3C%3E();%0A%09%09for (DisplayEntity ent : Entity.getClonesOfIterator(DisplayEntity.class, TextEntity.class)) %7B%0A%09%09%09TextEntity textEnt = (TextEntity) ent;%0A%09%09%09if (ret.contains(textEnt.getFontName()))%0A%09%09%09%09continue;%0A%09%09%09ret.add(textEnt.getFontName());%0A%09%09%7D%0A%09%09Collections.sort(ret);%0A%09%09return ret;%0A%09%7D%0A%0A%09public static ArrayList%3CColor4d%3E getFontColoursInUse() %7B%0A%09%09ArrayList%3CColor4d%3E ret = new ArrayList%3C%3E();%0A%09%09for (DisplayEntity ent : Entity.getClonesOfIterator(DisplayEntity.class, TextEntity.class)) %7B%0A%09%09%09TextEntity textEnt = (TextEntity) ent;%0A%09%09%09if (ret.contains(textEnt.getFontColor()))%0A%09%09%09%09continue;%0A%09%09%09ret.add(textEnt.getFontColor());%0A%09%09%7D%0A%09%09Collections.sort(ret, ColourInput.colourComparator);%0A%09%09return ret;%0A%09%7D%0A%0A
 %7D%0A

add static methods getFontsInUse, getFontColoursInUse to TextEntity