net.sourceforge.plantuml.SkinParamForecolored Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plantuml Show documentation
Show all versions of plantuml Show documentation
PlantUML is a component that allows to quickly write :
* sequence diagram,
* use case diagram,
* class diagram,
* activity diagram,
* component diagram,
* state diagram
* object diagram
/* ========================================================================
* PlantUML : a free UML diagram generator
* ========================================================================
*
* (C) Copyright 2009-2013, Arnaud Roques
*
* Project Info: http://plantuml.sourceforge.net
*
* 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.
*
* [Java is a trademark or registered trademark of Sun Microsystems, Inc.
* in the United States and other countries.]
*
* Original Author: Arnaud Roques
*
* Revision $Revision: 4246 $
*
*/
package net.sourceforge.plantuml;
import net.sourceforge.plantuml.cucadiagram.dot.DotSplines;
import net.sourceforge.plantuml.cucadiagram.dot.GraphvizLayoutStrategy;
import net.sourceforge.plantuml.graphic.HorizontalAlignment;
import net.sourceforge.plantuml.graphic.HtmlColor;
import net.sourceforge.plantuml.svek.PackageStyle;
import net.sourceforge.plantuml.ugraphic.ColorMapper;
import net.sourceforge.plantuml.ugraphic.Sprite;
import net.sourceforge.plantuml.ugraphic.UFont;
import net.sourceforge.plantuml.ugraphic.UStroke;
public class SkinParamForecolored implements ISkinParam {
final private ISkinParam skinParam;
final private HtmlColor forecolor;
public SkinParamForecolored(ISkinParam skinParam, HtmlColor forecolor) {
this.skinParam = skinParam;
this.forecolor = forecolor;
}
public HtmlColor getBackgroundColor() {
return skinParam.getBackgroundColor();
}
public int getCircledCharacterRadius() {
return skinParam.getCircledCharacterRadius();
}
public UFont getFont(FontParam fontParam, String stereotype) {
return skinParam.getFont(fontParam, stereotype);
}
public HtmlColor getFontHtmlColor(FontParam param, String stereotype) {
return skinParam.getFontHtmlColor(param, stereotype);
}
public HtmlColor getHtmlColor(ColorParam param, String stereotype, boolean clickable) {
return forecolor;
}
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();
}
public GraphvizLayoutStrategy getStrategy() {
return skinParam.getStrategy();
}
public HorizontalAlignment getHorizontalAlignment(AlignParam param) {
return skinParam.getHorizontalAlignment(param);
}
public ColorMapper getColorMapper() {
return skinParam.getColorMapper();
}
public boolean shadowing() {
return skinParam.shadowing();
}
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();
}
public boolean useSwimlanes() {
return skinParam.useSwimlanes();
}
public double getNodesep() {
return skinParam.getNodesep();
}
public double getRanksep() {
return skinParam.getRanksep();
}
public double getRoundCorner() {
return skinParam.getRoundCorner();
}
public UStroke getThickness(LineParam param) {
return skinParam.getThickness(param);
}
public double maxMessageSize() {
return skinParam.maxMessageSize();
}
public boolean strictUmlStyle() {
return skinParam.strictUmlStyle();
}
public boolean forceSequenceParticipantUnderlined() {
return skinParam.forceSequenceParticipantUnderlined();
}
}