plantuml/src/net/sourceforge/plantuml/SpriteContainerEmpty.java

124 lines
3.2 KiB
Java
Raw Normal View History

2010-11-15 20:35:36 +00:00
/* ========================================================================
* PlantUML : a free UML diagram generator
* ========================================================================
*
2022-03-07 19:33:46 +00:00
* (C) Copyright 2009-2023, Arnaud Roques
2010-11-15 20:35:36 +00:00
*
2016-03-06 16:47:34 +00:00
* Project Info: http://plantuml.com
2010-11-15 20:35:36 +00:00
*
2017-03-15 19:13:31 +00:00
* If you like this project or if you find it useful, you can support us at:
*
* http://plantuml.com/patreon (only 1$ per month!)
* http://plantuml.com/paypal
*
2010-11-15 20:35:36 +00:00
* This file is part of PlantUML.
*
* PlantUML is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* PlantUML distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
2013-12-10 19:36:50 +00:00
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
2010-11-15 20:35:36 +00:00
* License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
* USA.
*
*
* Original Author: Arnaud Roques
*
*
*/
package net.sourceforge.plantuml;
2019-03-01 22:16:29 +00:00
import java.util.Map;
2022-11-04 17:36:03 +00:00
import net.sourceforge.plantuml.creole.CreoleMode;
2020-05-17 21:15:50 +00:00
import net.sourceforge.plantuml.creole.Parser;
2022-11-04 17:36:03 +00:00
import net.sourceforge.plantuml.creole.SheetBuilder;
import net.sourceforge.plantuml.creole.legacy.CreoleParser;
import net.sourceforge.plantuml.graphic.FontConfiguration;
import net.sourceforge.plantuml.graphic.HorizontalAlignment;
2019-08-26 17:07:21 +00:00
import net.sourceforge.plantuml.sprite.Sprite;
import net.sourceforge.plantuml.sprite.SpriteImage;
2022-10-18 20:57:44 +00:00
import net.sourceforge.plantuml.style.Style;
2020-03-18 10:50:02 +00:00
import net.sourceforge.plantuml.ugraphic.color.HColorSet;
2010-11-15 20:35:36 +00:00
2015-04-07 18:18:37 +00:00
public class SpriteContainerEmpty implements SpriteContainer, ISkinSimple {
2010-11-15 20:35:36 +00:00
2022-11-04 17:36:03 +00:00
@Override
2013-12-10 19:36:50 +00:00
public Sprite getSprite(String name) {
2016-01-30 12:20:07 +00:00
return SpriteImage.fromInternal(name);
2013-12-10 19:36:50 +00:00
}
2010-11-15 20:35:36 +00:00
2022-11-04 17:36:03 +00:00
@Override
2015-04-07 18:18:37 +00:00
public String getValue(String key) {
return null;
}
2022-11-04 17:36:03 +00:00
@Override
2015-04-07 18:18:37 +00:00
public double getPadding() {
return 0;
}
2022-11-04 17:36:03 +00:00
@Override
2019-03-29 22:14:07 +00:00
public Guillemet guillemet() {
return Guillemet.DOUBLE_COMPARATOR;
2015-04-07 18:18:37 +00:00
}
2022-11-04 17:36:03 +00:00
@Override
2015-09-06 17:28:59 +00:00
public String getMonospacedFamily() {
2020-05-17 21:15:50 +00:00
return Parser.MONOSPACED;
2015-09-06 17:28:59 +00:00
}
2022-11-04 17:36:03 +00:00
@Override
2015-09-28 20:42:17 +00:00
public int getTabSize() {
return 8;
}
2022-11-04 17:36:03 +00:00
@Override
2020-03-18 10:50:02 +00:00
public HColorSet getIHtmlColorSet() {
return HColorSet.instance();
2016-01-30 12:20:07 +00:00
}
2022-11-04 17:36:03 +00:00
@Override
2016-12-14 21:01:03 +00:00
public int getDpi() {
return 96;
}
2022-11-04 17:36:03 +00:00
@Override
2022-09-20 20:35:41 +00:00
public void copyAllFrom(Map<String, String> other) {
2019-03-01 22:16:29 +00:00
throw new UnsupportedOperationException();
}
2020-05-17 21:15:50 +00:00
2022-11-04 17:36:03 +00:00
@Override
2019-03-01 22:16:29 +00:00
public Map<String, String> values() {
throw new UnsupportedOperationException();
}
2022-10-18 20:57:44 +00:00
public double minClassWidthTOBEREMOVED(Style style) {
2020-09-30 20:57:58 +00:00
return 0;
}
2022-11-04 17:36:03 +00:00
@Override
2020-12-06 21:43:09 +00:00
public String transformStringForSizeHack(String s) {
return s;
}
2022-11-04 17:36:03 +00:00
@Override
public SheetBuilder sheet(FontConfiguration fontConfiguration, HorizontalAlignment horizontalAlignment,
CreoleMode creoleMode) {
throw new UnsupportedOperationException();
}
@Override
public SheetBuilder sheet(FontConfiguration fontConfiguration, HorizontalAlignment horizontalAlignment,
CreoleMode creoleMode, FontConfiguration stereo) {
return new CreoleParser(fontConfiguration, horizontalAlignment, this, creoleMode, stereo);
}
2013-12-10 19:36:50 +00:00
}