plantuml/src/net/sourceforge/plantuml/SkinParamDelegator.java

463 lines
11 KiB
Java
Raw Normal View History

2013-12-10 19:36:50 +00:00
/* ========================================================================
* PlantUML : a free UML diagram generator
* ========================================================================
*
2022-03-07 19:33:46 +00:00
* (C) Copyright 2009-2023, Arnaud Roques
2013-12-10 19:36:50 +00:00
*
2016-03-06 16:47:34 +00:00
* Project Info: http://plantuml.com
2013-12-10 19:36:50 +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
*
2013-12-10 19:36:50 +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
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
* 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-08-26 17:07:21 +00:00
import java.util.Collection;
2019-03-01 22:16:29 +00:00
import java.util.Map;
2022-11-30 17:41:17 +00:00
import net.sourceforge.plantuml.activitydiagram3.ftile.Arrows;
2022-11-04 17:36:03 +00:00
import net.sourceforge.plantuml.creole.CreoleMode;
import net.sourceforge.plantuml.creole.SheetBuilder;
2015-04-07 18:18:37 +00:00
import net.sourceforge.plantuml.cucadiagram.Rankdir;
import net.sourceforge.plantuml.cucadiagram.Stereotype;
2013-12-10 19:36:50 +00:00
import net.sourceforge.plantuml.cucadiagram.dot.DotSplines;
2022-11-04 17:36:03 +00:00
import net.sourceforge.plantuml.graphic.FontConfiguration;
2013-12-10 19:36:50 +00:00
import net.sourceforge.plantuml.graphic.HorizontalAlignment;
2015-09-28 20:42:17 +00:00
import net.sourceforge.plantuml.graphic.color.Colors;
2019-12-10 21:45:49 +00:00
import net.sourceforge.plantuml.skin.ActorStyle;
2016-11-04 21:39:29 +00:00
import net.sourceforge.plantuml.skin.ArrowDirection;
2019-07-14 20:09:26 +00:00
import net.sourceforge.plantuml.skin.Padder;
2019-08-26 17:07:21 +00:00
import net.sourceforge.plantuml.sprite.Sprite;
2019-07-14 20:09:26 +00:00
import net.sourceforge.plantuml.style.Style;
import net.sourceforge.plantuml.style.StyleBuilder;
2019-06-26 19:24:49 +00:00
import net.sourceforge.plantuml.svek.ConditionEndStyle;
2013-12-10 19:36:50 +00:00
import net.sourceforge.plantuml.svek.ConditionStyle;
import net.sourceforge.plantuml.svek.PackageStyle;
2021-01-10 20:52:19 +00:00
import net.sourceforge.plantuml.svg.LengthAdjust;
2013-12-10 19:36:50 +00:00
import net.sourceforge.plantuml.ugraphic.UFont;
import net.sourceforge.plantuml.ugraphic.UStroke;
2020-03-18 10:50:02 +00:00
import net.sourceforge.plantuml.ugraphic.color.HColor;
import net.sourceforge.plantuml.ugraphic.color.HColorSet;
2021-02-02 10:12:15 +00:00
import net.sourceforge.plantuml.ugraphic.color.NoSuchColorException;
2013-12-10 19:36:50 +00:00
public class SkinParamDelegator implements ISkinParam {
final private ISkinParam skinParam;
public SkinParamDelegator(ISkinParam skinParam) {
this.skinParam = skinParam;
}
2021-06-27 16:50:40 +00:00
@Override
2020-03-18 10:50:02 +00:00
public HColor getHyperlinkColor() {
2015-04-07 18:18:37 +00:00
return skinParam.getHyperlinkColor();
}
2021-06-27 16:50:40 +00:00
@Override
public HColor getBackgroundColor() {
return skinParam.getBackgroundColor();
2013-12-10 19:36:50 +00:00
}
2021-06-27 16:50:40 +00:00
@Override
2013-12-10 19:36:50 +00:00
public int getCircledCharacterRadius() {
return skinParam.getCircledCharacterRadius();
}
2021-06-27 16:50:40 +00:00
@Override
2016-01-09 12:15:40 +00:00
public UFont getFont(Stereotype stereotype, boolean inPackageTitle, FontParam... fontParam) {
return skinParam.getFont(stereotype, false, fontParam);
2013-12-10 19:36:50 +00:00
}
2021-06-27 16:50:40 +00:00
@Override
2020-03-18 10:50:02 +00:00
public HColor getFontHtmlColor(Stereotype stereotype, FontParam... param) {
2016-01-09 12:15:40 +00:00
return skinParam.getFontHtmlColor(stereotype, param);
2013-12-10 19:36:50 +00:00
}
2021-06-27 16:50:40 +00:00
@Override
2020-03-18 10:50:02 +00:00
public HColor getHtmlColor(ColorParam param, Stereotype stereotype, boolean clickable) {
2013-12-10 19:36:50 +00:00
return skinParam.getHtmlColor(param, stereotype, clickable);
}
2021-06-27 16:50:40 +00:00
@Override
2013-12-10 19:36:50 +00:00
public String getValue(String key) {
return skinParam.getValue(key);
}
2021-06-27 16:50:40 +00:00
@Override
2013-12-10 19:36:50 +00:00
public int classAttributeIconSize() {
return skinParam.classAttributeIconSize();
}
2021-06-27 16:50:40 +00:00
@Override
2013-12-10 19:36:50 +00:00
public int getDpi() {
return skinParam.getDpi();
}
2021-06-27 16:50:40 +00:00
@Override
2013-12-10 19:36:50 +00:00
public DotSplines getDotSplines() {
return skinParam.getDotSplines();
}
2021-06-27 16:50:40 +00:00
@Override
2018-12-22 11:11:40 +00:00
public HorizontalAlignment getHorizontalAlignment(AlignmentParam param, ArrowDirection arrowDirection,
2021-06-27 16:50:40 +00:00
boolean isReverseDefine, HorizontalAlignment overrideDefault) {
return skinParam.getHorizontalAlignment(param, arrowDirection, isReverseDefine, overrideDefault);
2013-12-10 19:36:50 +00:00
}
2021-06-27 16:50:40 +00:00
@Override
2018-09-23 12:15:14 +00:00
public boolean shadowing(Stereotype stereotype) {
return skinParam.shadowing(stereotype);
2015-05-03 15:36:36 +00:00
}
2021-06-27 16:50:40 +00:00
@Override
2020-06-21 20:31:45 +00:00
public PackageStyle packageStyle() {
return skinParam.packageStyle();
2013-12-10 19:36:50 +00:00
}
2021-06-27 16:50:40 +00:00
@Override
2013-12-10 19:36:50 +00:00
public Sprite getSprite(String name) {
return skinParam.getSprite(name);
}
2021-06-27 16:50:40 +00:00
@Override
2020-06-14 20:35:42 +00:00
public ComponentStyle componentStyle() {
return skinParam.componentStyle();
2013-12-10 19:36:50 +00:00
}
2021-06-27 16:50:40 +00:00
@Override
2013-12-10 19:36:50 +00:00
public boolean stereotypePositionTop() {
return skinParam.stereotypePositionTop();
}
2021-06-27 16:50:40 +00:00
@Override
2015-04-07 18:18:37 +00:00
public boolean useSwimlanes(UmlDiagramType type) {
return skinParam.useSwimlanes(type);
2013-12-10 19:36:50 +00:00
}
2021-06-27 16:50:40 +00:00
@Override
2013-12-10 19:36:50 +00:00
public double getNodesep() {
return skinParam.getNodesep();
}
2021-06-27 16:50:40 +00:00
@Override
2013-12-10 19:36:50 +00:00
public double getRanksep() {
return skinParam.getRanksep();
}
2021-06-27 16:50:40 +00:00
@Override
2018-04-06 20:36:30 +00:00
public double getRoundCorner(CornerParam param, Stereotype stereotype) {
2016-12-14 21:01:03 +00:00
return skinParam.getRoundCorner(param, stereotype);
2013-12-10 19:36:50 +00:00
}
2021-06-27 16:50:40 +00:00
@Override
2018-04-06 20:36:30 +00:00
public double getDiagonalCorner(CornerParam param, Stereotype stereotype) {
return skinParam.getDiagonalCorner(param, stereotype);
}
2021-06-27 16:50:40 +00:00
@Override
2015-04-07 18:18:37 +00:00
public UStroke getThickness(LineParam param, Stereotype stereotype) {
return skinParam.getThickness(param, stereotype);
2013-12-10 19:36:50 +00:00
}
2021-06-27 16:50:40 +00:00
@Override
2017-02-26 16:26:11 +00:00
public LineBreakStrategy maxMessageSize() {
2013-12-10 19:36:50 +00:00
return skinParam.maxMessageSize();
}
2021-06-27 16:50:40 +00:00
@Override
2013-12-10 19:36:50 +00:00
public boolean strictUmlStyle() {
return skinParam.strictUmlStyle();
}
2021-06-27 16:50:40 +00:00
@Override
2013-12-10 19:36:50 +00:00
public boolean forceSequenceParticipantUnderlined() {
return skinParam.forceSequenceParticipantUnderlined();
}
2021-06-27 16:50:40 +00:00
@Override
2013-12-10 19:36:50 +00:00
public ConditionStyle getConditionStyle() {
return skinParam.getConditionStyle();
}
2021-06-27 16:50:40 +00:00
@Override
2019-06-26 19:24:49 +00:00
public ConditionEndStyle getConditionEndStyle() {
return skinParam.getConditionEndStyle();
}
2019-07-14 20:09:26 +00:00
2021-06-27 16:50:40 +00:00
@Override
2013-12-10 19:36:50 +00:00
public boolean sameClassWidth() {
return skinParam.sameClassWidth();
}
2021-06-27 16:50:40 +00:00
@Override
2015-04-07 18:18:37 +00:00
public Rankdir getRankdir() {
return skinParam.getRankdir();
}
2015-09-28 20:42:17 +00:00
2021-06-27 16:50:40 +00:00
@Override
2015-04-07 18:18:37 +00:00
public boolean useOctagonForActivity(Stereotype stereotype) {
return skinParam.useOctagonForActivity(stereotype);
}
2021-06-27 16:50:40 +00:00
@Override
2020-03-18 10:50:02 +00:00
public HColorSet getIHtmlColorSet() {
2015-04-07 18:18:37 +00:00
return skinParam.getIHtmlColorSet();
}
2021-06-27 16:50:40 +00:00
@Override
2022-10-05 20:32:57 +00:00
public UStroke useUnderlineForHyperlink() {
2015-04-07 18:18:37 +00:00
return skinParam.useUnderlineForHyperlink();
}
2021-06-27 16:50:40 +00:00
@Override
2016-07-04 19:06:50 +00:00
public HorizontalAlignment getDefaultTextAlignment(HorizontalAlignment defaultValue) {
return skinParam.getDefaultTextAlignment(defaultValue);
2015-04-07 18:18:37 +00:00
}
2021-06-27 16:50:40 +00:00
@Override
2015-04-07 18:18:37 +00:00
public double getPadding() {
return skinParam.getPadding();
}
2021-06-27 16:50:40 +00:00
@Override
2015-04-07 18:18:37 +00:00
public int groupInheritance() {
return skinParam.groupInheritance();
}
2021-06-27 16:50:40 +00:00
@Override
2019-03-29 22:14:07 +00:00
public Guillemet guillemet() {
return skinParam.guillemet();
2015-04-07 18:18:37 +00:00
}
2021-06-27 16:50:40 +00:00
@Override
2015-04-07 18:18:37 +00:00
public boolean handwritten() {
return skinParam.handwritten();
}
2021-06-27 16:50:40 +00:00
@Override
2015-05-31 18:56:03 +00:00
public String getSvgLinkTarget() {
return skinParam.getSvgLinkTarget();
}
2019-12-10 21:45:49 +00:00
2021-06-27 16:50:40 +00:00
@Override
2019-11-03 17:40:03 +00:00
public String getPreserveAspectRatio() {
return skinParam.getPreserveAspectRatio();
}
2015-05-31 18:56:03 +00:00
2021-06-27 16:50:40 +00:00
@Override
2015-09-06 17:28:59 +00:00
public String getMonospacedFamily() {
return skinParam.getMonospacedFamily();
}
2021-06-27 16:50:40 +00:00
@Override
2021-02-02 10:12:15 +00:00
public Colors getColors(ColorParam param, Stereotype stereotype) throws NoSuchColorException {
2015-09-28 20:42:17 +00:00
return skinParam.getColors(param, stereotype);
}
2021-06-27 16:50:40 +00:00
@Override
2015-09-28 20:42:17 +00:00
public int getTabSize() {
return skinParam.getTabSize();
}
2015-04-07 18:18:37 +00:00
2021-06-27 16:50:40 +00:00
@Override
2015-11-01 18:37:20 +00:00
public boolean shadowingForNote(Stereotype stereotype) {
return shadowingForNote(stereotype);
}
2021-06-27 16:50:40 +00:00
@Override
2016-02-07 21:13:01 +00:00
public int maxAsciiMessageLength() {
return skinParam.maxAsciiMessageLength();
}
2021-06-27 16:50:40 +00:00
@Override
2016-05-11 21:31:47 +00:00
public int colorArrowSeparationSpace() {
return skinParam.colorArrowSeparationSpace();
}
2021-06-27 16:50:40 +00:00
@Override
2016-11-04 21:39:29 +00:00
public SplitParam getSplitParam() {
return skinParam.getSplitParam();
}
2021-06-27 16:50:40 +00:00
@Override
2016-12-01 20:29:25 +00:00
public int swimlaneWidth() {
return skinParam.swimlaneWidth();
}
2021-06-27 16:50:40 +00:00
@Override
2017-02-15 21:34:36 +00:00
public UmlDiagramType getUmlDiagramType() {
return skinParam.getUmlDiagramType();
}
2021-06-27 16:50:40 +00:00
@Override
2020-06-21 20:31:45 +00:00
public HColor hoverPathColor() {
return skinParam.hoverPathColor();
2017-02-15 21:34:36 +00:00
}
2021-06-27 16:50:40 +00:00
@Override
2017-02-26 16:26:11 +00:00
public double getPadding(PaddingParam param) {
return skinParam.getPadding(param);
}
2021-06-27 16:50:40 +00:00
@Override
2017-06-05 11:27:21 +00:00
public boolean useRankSame() {
return skinParam.useRankSame();
}
2021-06-27 16:50:40 +00:00
@Override
2017-09-03 16:59:24 +00:00
public boolean displayGenericWithOldFashion() {
return skinParam.displayGenericWithOldFashion();
}
2021-06-27 16:50:40 +00:00
@Override
2017-10-07 09:46:53 +00:00
public TikzFontDistortion getTikzFontDistortion() {
return skinParam.getTikzFontDistortion();
}
2021-06-27 16:50:40 +00:00
@Override
2018-03-09 21:37:34 +00:00
public boolean responseMessageBelowArrow() {
return skinParam.responseMessageBelowArrow();
}
2021-06-27 16:50:40 +00:00
@Override
2018-03-09 21:37:34 +00:00
public boolean svgDimensionStyle() {
return skinParam.svgDimensionStyle();
}
2021-06-27 16:50:40 +00:00
@Override
2018-03-09 21:37:34 +00:00
public char getCircledCharacter(Stereotype stereotype) {
return skinParam.getCircledCharacter(stereotype);
}
2021-06-27 16:50:40 +00:00
@Override
2018-07-27 21:56:46 +00:00
public LineBreakStrategy swimlaneWrapTitleWidth() {
return skinParam.swimlaneWrapTitleWidth();
}
2021-06-27 16:50:40 +00:00
@Override
2018-08-26 12:09:50 +00:00
public boolean fixCircleLabelOverlapping() {
return skinParam.fixCircleLabelOverlapping();
}
2021-06-27 16:50:40 +00:00
@Override
2018-12-22 11:11:40 +00:00
public void setUseVizJs(boolean useVizJs) {
skinParam.setUseVizJs(useVizJs);
}
2021-06-27 16:50:40 +00:00
@Override
2018-12-22 11:11:40 +00:00
public boolean isUseVizJs() {
return skinParam.isUseVizJs();
}
2021-06-27 16:50:40 +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
skinParam.copyAllFrom(other);
}
2021-06-27 16:50:40 +00:00
@Override
2019-03-01 22:16:29 +00:00
public Map<String, String> values() {
return skinParam.values();
}
2019-07-14 20:09:26 +00:00
2021-06-27 16:50:40 +00:00
@Override
2019-05-24 19:59:31 +00:00
public HorizontalAlignment getStereotypeAlignment() {
return skinParam.getStereotypeAlignment();
}
2021-06-27 16:50:40 +00:00
@Override
2020-06-21 20:31:45 +00:00
public Padder sequenceDiagramPadder() {
return skinParam.sequenceDiagramPadder();
2019-07-14 20:09:26 +00:00
}
2021-06-27 16:50:40 +00:00
@Override
2019-07-14 20:09:26 +00:00
public StyleBuilder getCurrentStyleBuilder() {
return skinParam.getCurrentStyleBuilder();
}
2021-06-27 16:50:40 +00:00
@Override
2019-07-14 20:09:26 +00:00
public void muteStyle(Style modifiedStyle) {
skinParam.muteStyle(modifiedStyle);
}
2019-03-01 22:16:29 +00:00
2021-06-27 16:50:40 +00:00
@Override
2019-08-26 17:07:21 +00:00
public Collection<String> getAllSpriteNames() {
return skinParam.getAllSpriteNames();
}
2021-06-27 16:50:40 +00:00
@Override
2019-08-26 17:07:21 +00:00
public String getDefaultSkin() {
return skinParam.getDefaultSkin();
}
2021-06-27 16:50:40 +00:00
@Override
2019-08-26 17:07:21 +00:00
public void setDefaultSkin(String newFileName) {
skinParam.setDefaultSkin(newFileName);
}
2021-06-27 16:50:40 +00:00
@Override
2020-06-21 20:31:45 +00:00
public ActorStyle actorStyle() {
return skinParam.actorStyle();
2019-12-10 21:45:49 +00:00
}
2019-11-03 17:40:03 +00:00
2021-06-27 16:50:40 +00:00
@Override
2020-12-06 21:43:09 +00:00
public void setSvgSize(String origin, String sizeToUse) {
skinParam.setSvgSize(origin, sizeToUse);
}
2021-06-27 16:50:40 +00:00
@Override
2020-12-06 21:43:09 +00:00
public String transformStringForSizeHack(String s) {
return skinParam.transformStringForSizeHack(s);
}
2021-06-27 16:50:40 +00:00
@Override
2021-01-10 20:52:19 +00:00
public LengthAdjust getlengthAdjust() {
return skinParam.getlengthAdjust();
}
2022-10-18 20:57:44 +00:00
@Override
public double getParamSameClassWidth() {
return skinParam.getParamSameClassWidth();
}
2022-11-04 17:36:03 +00:00
@Override
public SheetBuilder sheet(FontConfiguration fontConfiguration, HorizontalAlignment horizontalAlignment,
CreoleMode creoleMode) {
return skinParam.sheet(fontConfiguration, horizontalAlignment, creoleMode);
}
@Override
public SheetBuilder sheet(FontConfiguration fontConfiguration, HorizontalAlignment horizontalAlignment,
CreoleMode creoleMode, FontConfiguration stereo) {
return skinParam.sheet(fontConfiguration, horizontalAlignment, creoleMode, stereo);
}
2022-11-30 17:41:17 +00:00
@Override
public Arrows arrows() {
return skinParam.arrows();
}
2013-12-10 19:36:50 +00:00
}