2013-12-10 19:36:50 +00:00
|
|
|
/* ========================================================================
|
|
|
|
* PlantUML : a free UML diagram generator
|
|
|
|
* ========================================================================
|
|
|
|
*
|
2016-01-09 12:15:40 +00:00
|
|
|
* (C) Copyright 2009-2017, 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
|
|
|
*
|
|
|
|
* 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;
|
|
|
|
|
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;
|
|
|
|
import net.sourceforge.plantuml.graphic.HorizontalAlignment;
|
|
|
|
import net.sourceforge.plantuml.graphic.HtmlColor;
|
2015-04-07 18:18:37 +00:00
|
|
|
import net.sourceforge.plantuml.graphic.IHtmlColorSet;
|
2015-05-03 15:36:36 +00:00
|
|
|
import net.sourceforge.plantuml.graphic.SkinParameter;
|
2015-09-28 20:42:17 +00:00
|
|
|
import net.sourceforge.plantuml.graphic.color.Colors;
|
2016-11-04 21:39:29 +00:00
|
|
|
import net.sourceforge.plantuml.skin.ArrowDirection;
|
2013-12-10 19:36:50 +00:00
|
|
|
import net.sourceforge.plantuml.svek.ConditionStyle;
|
|
|
|
import net.sourceforge.plantuml.svek.PackageStyle;
|
|
|
|
import net.sourceforge.plantuml.ugraphic.ColorMapper;
|
|
|
|
import net.sourceforge.plantuml.ugraphic.UFont;
|
|
|
|
import net.sourceforge.plantuml.ugraphic.UStroke;
|
2016-01-30 12:20:07 +00:00
|
|
|
import net.sourceforge.plantuml.ugraphic.sprite.Sprite;
|
2013-12-10 19:36:50 +00:00
|
|
|
|
|
|
|
public class SkinParamDelegator implements ISkinParam {
|
|
|
|
|
|
|
|
final private ISkinParam skinParam;
|
|
|
|
|
|
|
|
public SkinParamDelegator(ISkinParam skinParam) {
|
|
|
|
this.skinParam = skinParam;
|
|
|
|
}
|
|
|
|
|
2015-04-07 18:18:37 +00:00
|
|
|
public HtmlColor getHyperlinkColor() {
|
|
|
|
return skinParam.getHyperlinkColor();
|
|
|
|
}
|
|
|
|
|
2013-12-10 19:36:50 +00:00
|
|
|
public HtmlColor getBackgroundColor() {
|
|
|
|
return skinParam.getBackgroundColor();
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getCircledCharacterRadius() {
|
|
|
|
return skinParam.getCircledCharacterRadius();
|
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2016-01-09 12:15:40 +00:00
|
|
|
public HtmlColor getFontHtmlColor(Stereotype stereotype, FontParam... param) {
|
|
|
|
return skinParam.getFontHtmlColor(stereotype, param);
|
2013-12-10 19:36:50 +00:00
|
|
|
}
|
|
|
|
|
2015-04-07 18:18:37 +00:00
|
|
|
public HtmlColor getHtmlColor(ColorParam param, Stereotype stereotype, boolean clickable) {
|
2013-12-10 19:36:50 +00:00
|
|
|
return skinParam.getHtmlColor(param, stereotype, clickable);
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getValue(String key) {
|
|
|
|
return skinParam.getValue(key);
|
|
|
|
}
|
|
|
|
|
|
|
|
public int classAttributeIconSize() {
|
|
|
|
return skinParam.classAttributeIconSize();
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getDpi() {
|
|
|
|
return skinParam.getDpi();
|
|
|
|
}
|
|
|
|
|
|
|
|
public DotSplines getDotSplines() {
|
|
|
|
return skinParam.getDotSplines();
|
|
|
|
}
|
|
|
|
|
2016-04-04 19:05:10 +00:00
|
|
|
public String getDotExecutable() {
|
|
|
|
return skinParam.getDotExecutable();
|
2013-12-10 19:36:50 +00:00
|
|
|
}
|
|
|
|
|
2016-11-04 21:39:29 +00:00
|
|
|
public HorizontalAlignment getHorizontalAlignment(AlignParam param, ArrowDirection arrowDirection) {
|
|
|
|
return skinParam.getHorizontalAlignment(param, arrowDirection);
|
2013-12-10 19:36:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public ColorMapper getColorMapper() {
|
|
|
|
return skinParam.getColorMapper();
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean shadowing() {
|
|
|
|
return skinParam.shadowing();
|
2015-05-03 15:36:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public boolean shadowing2(SkinParameter skinParameter) {
|
|
|
|
return skinParam.shadowing2(skinParameter);
|
2013-12-10 19:36:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public PackageStyle getPackageStyle() {
|
|
|
|
return skinParam.getPackageStyle();
|
|
|
|
}
|
|
|
|
|
|
|
|
public Sprite getSprite(String name) {
|
|
|
|
return skinParam.getSprite(name);
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean useUml2ForComponent() {
|
|
|
|
return skinParam.useUml2ForComponent();
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean stereotypePositionTop() {
|
|
|
|
return skinParam.stereotypePositionTop();
|
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
|
|
|
public double getNodesep() {
|
|
|
|
return skinParam.getNodesep();
|
|
|
|
}
|
|
|
|
|
|
|
|
public double getRanksep() {
|
|
|
|
return skinParam.getRanksep();
|
|
|
|
}
|
|
|
|
|
2016-12-14 21:01:03 +00:00
|
|
|
public double getRoundCorner(String param, Stereotype stereotype) {
|
|
|
|
return skinParam.getRoundCorner(param, stereotype);
|
2013-12-10 19:36:50 +00:00
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2017-02-26 16:26:11 +00:00
|
|
|
public LineBreakStrategy maxMessageSize() {
|
2013-12-10 19:36:50 +00:00
|
|
|
return skinParam.maxMessageSize();
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean strictUmlStyle() {
|
|
|
|
return skinParam.strictUmlStyle();
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean forceSequenceParticipantUnderlined() {
|
|
|
|
return skinParam.forceSequenceParticipantUnderlined();
|
|
|
|
}
|
|
|
|
|
|
|
|
public ConditionStyle getConditionStyle() {
|
|
|
|
return skinParam.getConditionStyle();
|
|
|
|
}
|
|
|
|
|
|
|
|
public double minClassWidth() {
|
|
|
|
return skinParam.minClassWidth();
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean sameClassWidth() {
|
|
|
|
return skinParam.sameClassWidth();
|
|
|
|
}
|
|
|
|
|
2015-04-07 18:18:37 +00:00
|
|
|
public Rankdir getRankdir() {
|
|
|
|
return skinParam.getRankdir();
|
|
|
|
}
|
2015-09-28 20:42:17 +00:00
|
|
|
|
2015-04-07 18:18:37 +00:00
|
|
|
public boolean useOctagonForActivity(Stereotype stereotype) {
|
|
|
|
return skinParam.useOctagonForActivity(stereotype);
|
|
|
|
}
|
|
|
|
|
|
|
|
public IHtmlColorSet getIHtmlColorSet() {
|
|
|
|
return skinParam.getIHtmlColorSet();
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean useUnderlineForHyperlink() {
|
|
|
|
return skinParam.useUnderlineForHyperlink();
|
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
|
|
|
public double getPadding() {
|
|
|
|
return skinParam.getPadding();
|
|
|
|
}
|
|
|
|
|
|
|
|
public int groupInheritance() {
|
|
|
|
return skinParam.groupInheritance();
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean useGuillemet() {
|
|
|
|
return skinParam.useGuillemet();
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean handwritten() {
|
|
|
|
return skinParam.handwritten();
|
|
|
|
}
|
|
|
|
|
2015-05-31 18:56:03 +00:00
|
|
|
public String getSvgLinkTarget() {
|
|
|
|
return skinParam.getSvgLinkTarget();
|
|
|
|
}
|
|
|
|
|
2015-09-06 17:28:59 +00:00
|
|
|
public String getMonospacedFamily() {
|
|
|
|
return skinParam.getMonospacedFamily();
|
|
|
|
}
|
|
|
|
|
2015-09-28 20:42:17 +00:00
|
|
|
public Colors getColors(ColorParam param, Stereotype stereotype) {
|
|
|
|
return skinParam.getColors(param, stereotype);
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getTabSize() {
|
|
|
|
return skinParam.getTabSize();
|
|
|
|
}
|
2015-04-07 18:18:37 +00:00
|
|
|
|
2015-11-01 18:37:20 +00:00
|
|
|
public boolean shadowingForNote(Stereotype stereotype) {
|
|
|
|
return shadowingForNote(stereotype);
|
|
|
|
}
|
|
|
|
|
2016-02-07 21:13:01 +00:00
|
|
|
public int maxAsciiMessageLength() {
|
|
|
|
return skinParam.maxAsciiMessageLength();
|
|
|
|
}
|
|
|
|
|
2016-05-11 21:31:47 +00:00
|
|
|
public int colorArrowSeparationSpace() {
|
|
|
|
return skinParam.colorArrowSeparationSpace();
|
|
|
|
}
|
|
|
|
|
2016-11-04 21:39:29 +00:00
|
|
|
public SplitParam getSplitParam() {
|
|
|
|
return skinParam.getSplitParam();
|
|
|
|
}
|
|
|
|
|
2016-12-01 20:29:25 +00:00
|
|
|
public int swimlaneWidth() {
|
|
|
|
return skinParam.swimlaneWidth();
|
|
|
|
}
|
|
|
|
|
2017-02-15 21:34:36 +00:00
|
|
|
public UmlDiagramType getUmlDiagramType() {
|
|
|
|
return skinParam.getUmlDiagramType();
|
|
|
|
}
|
|
|
|
|
|
|
|
public HtmlColor getHoverPathColor() {
|
|
|
|
return skinParam.getHoverPathColor();
|
|
|
|
}
|
|
|
|
|
2017-02-26 16:26:11 +00:00
|
|
|
public double getPadding(PaddingParam param) {
|
|
|
|
return skinParam.getPadding(param);
|
|
|
|
}
|
|
|
|
|
2013-12-10 19:36:50 +00:00
|
|
|
}
|