当前位置: 首页>>代码示例>>Java>>正文


Java Stereotype.getLabel方法代码示例

本文整理汇总了Java中net.sourceforge.plantuml.cucadiagram.Stereotype.getLabel方法的典型用法代码示例。如果您正苦于以下问题:Java Stereotype.getLabel方法的具体用法?Java Stereotype.getLabel怎么用?Java Stereotype.getLabel使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在net.sourceforge.plantuml.cucadiagram.Stereotype的用法示例。


在下文中一共展示了Stereotype.getLabel方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: EntityImageUseCase

import net.sourceforge.plantuml.cucadiagram.Stereotype; //导入方法依赖的package包/类
public EntityImageUseCase(ILeaf entity, ISkinParam skinParam) {
	super(entity, skinParam);
	final Stereotype stereotype = entity.getStereotype();

	final TextBlock tmp = new BodyEnhanced(entity.getDisplay(), FontParam.USECASE, skinParam,
			HorizontalAlignment.CENTER, stereotype, true, false, false);

	if (stereotype == null || stereotype.getLabel(false) == null) {
		this.desc = tmp;
	} else {
		final TextBlock stereo = Display.getWithNewlines(stereotype.getLabel(getSkinParam().useGuillemet()))
				.create(new FontConfiguration(getSkinParam(), FontParam.ACTOR_STEREOTYPE, stereotype),
						HorizontalAlignment.CENTER, skinParam);
		this.desc = TextBlockUtils.mergeTB(stereo, tmp, HorizontalAlignment.CENTER);
	}
	this.url = entity.getUrl99();

}
 
开发者ID:Banno,项目名称:sbt-plantuml-plugin,代码行数:19,代码来源:EntityImageUseCase.java

示例2: EntityImageObject

import net.sourceforge.plantuml.cucadiagram.Stereotype; //导入方法依赖的package包/类
public EntityImageObject(ILeaf entity, ISkinParam skinParam) {
	super(entity, skinParam);
	this.lineConfig = entity;
	final Stereotype stereotype = entity.getStereotype();
	this.roundCorner = skinParam.getRoundCorner();
	this.name = TextBlockUtils.withMargin(
			entity.getDisplay().create(new FontConfiguration(getSkinParam(), FontParam.OBJECT, stereotype),
					HorizontalAlignment.CENTER, skinParam), 2, 2);
	if (stereotype == null || stereotype.getLabel(false) == null) {
		this.stereo = null;
	} else {
		this.stereo = Display.getWithNewlines(stereotype.getLabel(getSkinParam().useGuillemet())).create(
				new FontConfiguration(getSkinParam(), FontParam.OBJECT_STEREOTYPE, stereotype),
				HorizontalAlignment.CENTER, skinParam);
	}

	if (entity.getBodier().getFieldsToDisplay().size() == 0) {
		this.fields = new TextBlockLineBefore(new TextBlockEmpty(10, 16));
	} else {
		this.fields = entity.getBodier().getBody(FontParam.OBJECT_ATTRIBUTE, skinParam, false, true, entity.getStereotype());
	}
	this.url = entity.getUrl99();

}
 
开发者ID:Banno,项目名称:sbt-plantuml-plugin,代码行数:25,代码来源:EntityImageObject.java

示例3: EntityImageArcCircle

import net.sourceforge.plantuml.cucadiagram.Stereotype; //导入方法依赖的package包/类
public EntityImageArcCircle(ILeaf entity, ISkinParam skinParam) {
	super(entity, skinParam);

	final Stereotype stereotype = entity.getStereotype();

	this.name = entity.getDisplay().create(new FontConfiguration(getSkinParam(), FontParam.COMPONENT, stereotype),
			HorizontalAlignment.CENTER, skinParam);

	if (stereotype == null || stereotype.getLabel(false) == null) {
		this.stereo = null;
	} else {
		this.stereo = Display.getWithNewlines(stereotype.getLabel(getSkinParam().useGuillemet())).create(
				new FontConfiguration(getSkinParam(), FontParam.COMPONENT_STEREOTYPE, stereotype),
				HorizontalAlignment.CENTER, skinParam);
	}

}
 
开发者ID:Banno,项目名称:sbt-plantuml-plugin,代码行数:18,代码来源:EntityImageArcCircle.java

示例4: EntityImageUseCase

import net.sourceforge.plantuml.cucadiagram.Stereotype; //导入方法依赖的package包/类
public EntityImageUseCase(ILeaf entity, ISkinParam skinParam) {
	super(entity, skinParam);
	final Stereotype stereotype = entity.getStereotype();

	final TextBlock tmp = new BodyEnhanced(entity.getDisplay(), FontParam.USECASE, skinParam,
			HorizontalAlignment.CENTER, stereotype, true, false);

	if (stereotype == null || stereotype.getLabel() == null) {
		this.desc = tmp;
	} else {
		final TextBlock stereo = TextBlockUtils.create(
				Display.getWithNewlines(stereotype.getLabel()),
				new FontConfiguration(SkinParamUtils.getFont(getSkinParam(),
						FontParam.ACTOR_STEREOTYPE, stereotype), SkinParamUtils.getFontColor(getSkinParam(),
				FontParam.ACTOR_STEREOTYPE, null), getSkinParam().getHyperlinkColor()), HorizontalAlignment.CENTER, skinParam);
		this.desc = TextBlockUtils.mergeTB(stereo, tmp, HorizontalAlignment.CENTER);
	}
	this.url = entity.getUrl99();

}
 
开发者ID:mar9000,项目名称:plantuml,代码行数:21,代码来源:EntityImageUseCase.java

示例5: EntityImageArcCircle

import net.sourceforge.plantuml.cucadiagram.Stereotype; //导入方法依赖的package包/类
public EntityImageArcCircle(ILeaf entity, ISkinParam skinParam) {
	super(entity, skinParam);

	final Stereotype stereotype = entity.getStereotype();

	this.name = TextBlockUtils.create(
			entity.getDisplay(),
			new FontConfiguration(SkinParamUtils.getFont(getSkinParam(),
					FontParam.COMPONENT, stereotype), SkinParamUtils.getFontColor(getSkinParam(),
			FontParam.COMPONENT, stereotype), getSkinParam().getHyperlinkColor()), HorizontalAlignment.CENTER, skinParam);

	if (stereotype == null || stereotype.getLabel() == null) {
		this.stereo = null;
	} else {
		this.stereo = TextBlockUtils.create(
				Display.getWithNewlines(stereotype.getLabel()),
				new FontConfiguration(SkinParamUtils.getFont(getSkinParam(),
						FontParam.COMPONENT_STEREOTYPE, stereotype), SkinParamUtils.getFontColor(getSkinParam(),
				FontParam.COMPONENT_STEREOTYPE, null), getSkinParam().getHyperlinkColor()), HorizontalAlignment.CENTER, skinParam);
	}

}
 
开发者ID:mar9000,项目名称:plantuml,代码行数:23,代码来源:EntityImageArcCircle.java

示例6: getEntityPosition

import net.sourceforge.plantuml.cucadiagram.Stereotype; //导入方法依赖的package包/类
public EntityPosition getEntityPosition() {
	checkNotGroup();
	if (leafType != LeafType.STATE) {
		return EntityPosition.NORMAL;
	}
	final Stereotype stereotype = getStereotype();
	if (stereotype == null) {
		return EntityPosition.NORMAL;
	}
	final String label = stereotype.getLabel();
	if ("<<entrypoint>>".equalsIgnoreCase(label)) {
		return EntityPosition.ENTRY_POINT;
	}
	if ("<<exitpoint>>".equalsIgnoreCase(label)) {
		return EntityPosition.EXIT_POINT;
	}
	return EntityPosition.NORMAL;

}
 
开发者ID:mar9000,项目名称:plantuml,代码行数:20,代码来源:EntityImpl.java

示例7: createStereotype

import net.sourceforge.plantuml.cucadiagram.Stereotype; //导入方法依赖的package包/类
private static TextBlock createStereotype(Display texts, FontConfiguration fontConfiguration,
		HorizontalAlignment horizontalAlignment, SpriteContainer spriteContainer, int position) {
	final Stereotype stereotype = (Stereotype) texts.get(position);
	if (stereotype.isSpotted()) {
		final CircledCharacter circledCharacter = new CircledCharacter(stereotype.getCharacter(),
				stereotype.getRadius(), stereotype.getCircledFont(), stereotype.getHtmlColor(), null,
				fontConfiguration.getColor());
		if (stereotype.getLabel() == null) {
			return new TextBlockSpotted(circledCharacter, texts.subList(1, texts.size()), fontConfiguration,
					horizontalAlignment, spriteContainer);
		}
		return new TextBlockSpotted(circledCharacter, texts, fontConfiguration, horizontalAlignment,
				spriteContainer);
	}
	return new TextBlockSimple(texts, fontConfiguration, horizontalAlignment, spriteContainer, 0);
}
 
开发者ID:mar9000,项目名称:plantuml,代码行数:17,代码来源:TextBlockUtils.java

示例8: EntityImageLollipopInterfaceEye2

import net.sourceforge.plantuml.cucadiagram.Stereotype; //导入方法依赖的package包/类
public EntityImageLollipopInterfaceEye2(ILeaf entity, ISkinParam skinParam, PortionShower portionShower) {
	super(entity, skinParam);
	final Stereotype stereotype = entity.getStereotype();

	final USymbol symbol = entity.getUSymbol() == null ? (skinParam.useUml2ForComponent() ? USymbol.COMPONENT2
			: USymbol.COMPONENT1) : entity.getUSymbol();
	if (symbol == null) {
		throw new IllegalArgumentException();
	}

	this.desc = new BodyEnhanced(entity.getDisplay(), symbol.getFontParam(), skinParam, HorizontalAlignment.CENTER,
			stereotype, symbol.manageHorizontalLine(), false, false);

	this.url = entity.getUrl99();

	HtmlColor backcolor = getEntity().getColors(getSkinParam()).getColor(ColorType.BACK);
	if (backcolor == null) {
		backcolor = SkinParamUtils.getColor(getSkinParam(), symbol.getColorParamBack(), getStereo());
	}
	// backcolor = HtmlColorUtils.BLUE;
	final HtmlColor forecolor = SkinParamUtils.getColor(getSkinParam(), symbol.getColorParamBorder(), getStereo());
	this.ctx = new SymbolContext(backcolor, forecolor).withStroke(new UStroke(1.5)).withShadow(
			getSkinParam().shadowing());

	if (stereotype != null && stereotype.getLabel(false) != null
			&& portionShower.showPortion(EntityPortion.STEREOTYPE, entity)) {
		stereo = Display.getWithNewlines(stereotype.getLabel(getSkinParam().useGuillemet())).create(
				new FontConfiguration(getSkinParam(), symbol.getFontParamStereotype(), stereotype),
				HorizontalAlignment.CENTER, skinParam);
	} else {
		stereo = TextBlockUtils.empty(0, 0);
	}

}
 
开发者ID:Banno,项目名称:sbt-plantuml-plugin,代码行数:35,代码来源:EntityImageLollipopInterfaceEye2.java

示例9: EntityImageComponent

import net.sourceforge.plantuml.cucadiagram.Stereotype; //导入方法依赖的package包/类
public EntityImageComponent(ILeaf entity, ISkinParam skinParam, PortionShower portionShower) {
	super(entity, skinParam);
	final Stereotype stereotype = entity.getStereotype();
	final USymbol symbol = entity.getUSymbol() == null ? (skinParam.useUml2ForComponent() ? USymbol.COMPONENT2
			: USymbol.COMPONENT1) : entity.getUSymbol();
	if (symbol == null) {
		throw new IllegalArgumentException();
	}

	final TextBlock desc = new BodyEnhanced(entity.getDisplay(), symbol.getFontParam(), skinParam,
			HorizontalAlignment.CENTER, stereotype, symbol.manageHorizontalLine(), false);

	this.url = entity.getUrl99();

	HtmlColor backcolor = getEntity().getSpecificBackColor();
	if (backcolor == null) {
		backcolor = SkinParamUtils.getColor(getSkinParam(), symbol.getColorParamBack(), getStereo());
	}
	// backcolor = HtmlColorUtils.BLUE;
	final HtmlColor forecolor = SkinParamUtils.getColor(getSkinParam(), symbol.getColorParamBorder(), getStereo());
	final SymbolContext ctx = new SymbolContext(backcolor, forecolor).withStroke(new UStroke(1.5)).withShadow(
			getSkinParam().shadowing());

	TextBlock stereo = TextBlockUtils.empty(0, 0);

	if (stereotype != null && stereotype.getLabel() != null
			&& portionShower.showPortion(EntityPortion.STEREOTYPE, entity)) {
		stereo = TextBlockUtils.create(
				Display.getWithNewlines(stereotype.getLabel()),
				new FontConfiguration(SkinParamUtils.getFont(getSkinParam(),
						symbol.getFontParamStereotype(), stereotype), SkinParamUtils.getFontColor(getSkinParam(),
				symbol.getFontParamStereotype(), null), getSkinParam().getHyperlinkColor()), HorizontalAlignment.CENTER, skinParam);
	}

	asSmall = symbol.asSmall(desc, stereo, ctx);
}
 
开发者ID:mar9000,项目名称:plantuml,代码行数:37,代码来源:EntityImageComponent.java

示例10: EntityImageLollipopInterfaceEye2

import net.sourceforge.plantuml.cucadiagram.Stereotype; //导入方法依赖的package包/类
public EntityImageLollipopInterfaceEye2(ILeaf entity, ISkinParam skinParam, PortionShower portionShower) {
	super(entity, skinParam);
	final Stereotype stereotype = entity.getStereotype();

	final USymbol symbol = entity.getUSymbol() == null ? (skinParam.useUml2ForComponent() ? USymbol.COMPONENT2
			: USymbol.COMPONENT1) : entity.getUSymbol();
	if (symbol == null) {
		throw new IllegalArgumentException();
	}

	this.desc = new BodyEnhanced(entity.getDisplay(), symbol.getFontParam(), skinParam, HorizontalAlignment.CENTER,
			stereotype, symbol.manageHorizontalLine(), false);

	this.url = entity.getUrl99();

	HtmlColor backcolor = getEntity().getSpecificBackColor();
	if (backcolor == null) {
		backcolor = SkinParamUtils.getColor(getSkinParam(), symbol.getColorParamBack(), getStereo());
	}
	// backcolor = HtmlColorUtils.BLUE;
	final HtmlColor forecolor = SkinParamUtils.getColor(getSkinParam(), symbol.getColorParamBorder(), getStereo());
	this.ctx = new SymbolContext(backcolor, forecolor).withStroke(new UStroke(1.5)).withShadow(
			getSkinParam().shadowing());

	if (stereotype != null && stereotype.getLabel() != null
			&& portionShower.showPortion(EntityPortion.STEREOTYPE, entity)) {
		stereo = TextBlockUtils.create(
				Display.getWithNewlines(stereotype.getLabel()),
				new FontConfiguration(SkinParamUtils.getFont(getSkinParam(),
						symbol.getFontParamStereotype(), stereotype), SkinParamUtils.getFontColor(getSkinParam(),
				symbol.getFontParamStereotype(), null), getSkinParam().getHyperlinkColor()), HorizontalAlignment.CENTER, skinParam);
	} else {
		stereo = TextBlockUtils.empty(0, 0);
	}

}
 
开发者ID:mar9000,项目名称:plantuml,代码行数:37,代码来源:EntityImageLollipopInterfaceEye2.java

示例11: EntityImageClassHeader2

import net.sourceforge.plantuml.cucadiagram.Stereotype; //导入方法依赖的package包/类
public EntityImageClassHeader2(ILeaf entity, ISkinParam skinParam, PortionShower portionShower) {
	super(entity, skinParam);

	final boolean italic = entity.getEntityType() == LeafType.ABSTRACT_CLASS
			|| entity.getEntityType() == LeafType.INTERFACE;

	final HtmlColor color = SkinParamUtils.getFontColor(getSkinParam(), FontParam.CLASS, getStereo());
	final Stereotype stereotype = entity.getStereotype();
	final String generic = entity.getGeneric();
	FontConfiguration fontConfigurationName = new FontConfiguration(getSkinParam(), FontParam.CLASS, stereotype);
	if (italic) {
		fontConfigurationName = fontConfigurationName.italic();
	}
	TextBlock name = entity.getDisplay().createWithNiceCreoleMode(fontConfigurationName,
			HorizontalAlignment.CENTER, skinParam);
	final VisibilityModifier modifier = entity.getVisibilityModifier();
	if (modifier == null) {
		name = TextBlockUtils.withMargin(name, 3, 3, 0, 0);
	} else {
		final Rose rose = new Rose();
		final HtmlColor back = rose.getHtmlColor(skinParam, modifier.getBackground());
		final HtmlColor fore = rose.getHtmlColor(skinParam, modifier.getForeground());

		final TextBlock uBlock = modifier.getUBlock(skinParam.classAttributeIconSize(), fore, back);
		name = TextBlockUtils.mergeLR(uBlock, name, VerticalAlignment.CENTER);
		name = TextBlockUtils.withMargin(name, 3, 3, 0, 0);
	}

	final TextBlock stereo;
	if (stereotype == null || stereotype.getLabel(false) == null
			|| portionShower.showPortion(EntityPortion.STEREOTYPE, entity) == false) {
		stereo = null;
	} else {
		stereo = TextBlockUtils.withMargin(
				Display.create(stereotype.getLabels(skinParam.useGuillemet())).create(
						new FontConfiguration(getSkinParam(), FontParam.CLASS_STEREOTYPE, stereotype),
						HorizontalAlignment.CENTER, skinParam), 1, 0);
	}

	TextBlock genericBlock;
	if (generic == null) {
		genericBlock = null;
	} else {
		genericBlock = Display.getWithNewlines(generic).create(
				new FontConfiguration(getSkinParam(), FontParam.CLASS_STEREOTYPE, stereotype),
				HorizontalAlignment.CENTER, skinParam);
		genericBlock = TextBlockUtils.withMargin(genericBlock, 1, 1);
		final HtmlColor classBackground = SkinParamUtils
				.getColor(getSkinParam(), ColorParam.background, stereotype);
		// final HtmlColor classBorder = getColor(ColorParam.classBorder, stereotype);
		final HtmlColor classBorder = SkinParamUtils.getFontColor(getSkinParam(), FontParam.CLASS_STEREOTYPE,
				stereotype);
		genericBlock = new TextBlockGeneric(genericBlock, classBackground, classBorder);
		genericBlock = TextBlockUtils.withMargin(genericBlock, 1, 1);
	}

	final TextBlock circledCharacter;
	if (portionShower.showPortion(EntityPortion.CIRCLED_CHARACTER, (ILeaf) getEntity())) {
		circledCharacter = TextBlockUtils.withMargin(getCircledCharacter(entity, skinParam), 4, 0, 5, 5);
	} else {
		circledCharacter = null;
	}
	this.headerLayout = new HeaderLayout(circledCharacter, stereo, name, genericBlock);
}
 
开发者ID:Banno,项目名称:sbt-plantuml-plugin,代码行数:65,代码来源:EntityImageClassHeader2.java

示例12: EntityImageDescription

import net.sourceforge.plantuml.cucadiagram.Stereotype; //导入方法依赖的package包/类
public EntityImageDescription(ILeaf entity, ISkinParam skinParam, PortionShower portionShower) {
	super(entity, entity.getColors(skinParam).mute(skinParam));
	final Stereotype stereotype = entity.getStereotype();
	USymbol symbol = entity.getUSymbol() == null ? (getSkinParam().useUml2ForComponent() ? USymbol.COMPONENT2
			: USymbol.COMPONENT1) : entity.getUSymbol();
	if (symbol == null) {
		throw new IllegalArgumentException();
	}
	shapeType = symbol == USymbol.FOLDER ? ShapeType.FOLDER : ShapeType.RECTANGLE;

	final Display codeDisplay = Display.getWithNewlines(entity.getCode());
	final TextBlock desc = (entity.getDisplay().equals(codeDisplay) && symbol instanceof USymbolFolder)
			|| entity.getDisplay().isWhite() ? TextBlockUtils.empty(0, 0) : new BodyEnhanced(entity.getDisplay(),
			symbol.getFontParam(), getSkinParam(), HorizontalAlignment.CENTER, stereotype,
			symbol.manageHorizontalLine(), false, false);

	this.url = entity.getUrl99();

	HtmlColor backcolor = getEntity().getColors(getSkinParam()).getColor(ColorType.BACK);
	if (backcolor == null) {
		backcolor = SkinParamUtils.getColor(getSkinParam(), symbol.getColorParamBack(), getStereo());
	}
	// backcolor = HtmlColorUtils.BLUE;
	final HtmlColor forecolor = SkinParamUtils.getColor(getSkinParam(), symbol.getColorParamBorder(), getStereo());
	final SymbolContext ctx = new SymbolContext(backcolor, forecolor).withStroke(new UStroke(1.5)).withShadow(
			getSkinParam().shadowing2(symbol.getSkinParameter()));

	TextBlock stereo = TextBlockUtils.empty(0, 0);

	if (stereotype != null && stereotype.getSprite() != null
			&& getSkinParam().getSprite(stereotype.getSprite()) != null) {
		symbol = symbol.withStereoAlignment(HorizontalAlignment.RIGHT);
		stereo = getSkinParam().getSprite(stereotype.getSprite()).asTextBlock(stereotype.getHtmlColor(), 1);
	} else if (stereotype != null && stereotype.getLabel(false) != null
			&& portionShower.showPortion(EntityPortion.STEREOTYPE, entity)) {
		stereo = Display.getWithNewlines(stereotype.getLabel(getSkinParam().useGuillemet())).create(
				new FontConfiguration(getSkinParam(), symbol.getFontParamStereotype(), stereotype),
				HorizontalAlignment.CENTER, getSkinParam());
	}

	name = new BodyEnhanced(codeDisplay, symbol.getFontParam(), getSkinParam(), HorizontalAlignment.CENTER,
			stereotype, symbol.manageHorizontalLine(), false, false);

	asSmall = symbol.asSmall(name, desc, stereo, ctx);
}
 
开发者ID:Banno,项目名称:sbt-plantuml-plugin,代码行数:46,代码来源:EntityImageDescription.java

示例13: EntityImageClassHeader2

import net.sourceforge.plantuml.cucadiagram.Stereotype; //导入方法依赖的package包/类
public EntityImageClassHeader2(ILeaf entity, ISkinParam skinParam, PortionShower portionShower) {
	super(entity, skinParam);

	final boolean italic = entity.getEntityType() == LeafType.ABSTRACT_CLASS
			|| entity.getEntityType() == LeafType.INTERFACE;

	final HtmlColor color = SkinParamUtils.getFontColor(getSkinParam(), FontParam.CLASS, getStereo());
	final Stereotype stereotype = entity.getStereotype();
	final String generic = entity.getGeneric();
	FontConfiguration fontConfigurationName = new FontConfiguration(SkinParamUtils.getFont(getSkinParam(), FontParam.CLASS, stereotype),
			color, getSkinParam().getHyperlinkColor());
	if (italic) {
		fontConfigurationName = fontConfigurationName.italic();
	}
	final TextBlock name = TextBlockUtils.withMargin(TextBlockUtils.create(entity.getDisplay(),
			fontConfigurationName, HorizontalAlignment.CENTER, skinParam), 3, 3, 0, 0);

	final TextBlock stereo;
	if (stereotype == null || stereotype.getLabel() == null
			|| portionShower.showPortion(EntityPortion.STEREOTYPE, entity) == false) {
		stereo = null;
	} else {
		stereo = TextBlockUtils.withMargin(TextBlockUtils.create(
				Display.create(stereotype.getLabels()),
				new FontConfiguration(SkinParamUtils.getFont(getSkinParam(),
						FontParam.CLASS_STEREOTYPE, stereotype), SkinParamUtils.getFontColor(getSkinParam(),
				FontParam.CLASS_STEREOTYPE, stereotype), getSkinParam().getHyperlinkColor()), HorizontalAlignment.CENTER, skinParam), 1, 0);
	}

	TextBlock genericBlock;
	if (generic == null) {
		genericBlock = null;
	} else {
		genericBlock = TextBlockUtils.create(
				Display.getWithNewlines(generic),
				new FontConfiguration(SkinParamUtils.getFont(getSkinParam(),
						FontParam.CLASS_STEREOTYPE, stereotype), SkinParamUtils.getFontColor(getSkinParam(),
				FontParam.CLASS_STEREOTYPE, stereotype), skinParam.getHyperlinkColor()), HorizontalAlignment.CENTER, skinParam);
		genericBlock = TextBlockUtils.withMargin(genericBlock, 1, 1);
		final HtmlColor classBackground = SkinParamUtils
				.getColor(getSkinParam(), ColorParam.background, stereotype);
		// final HtmlColor classBorder = getColor(ColorParam.classBorder, stereotype);
		final HtmlColor classBorder = SkinParamUtils.getFontColor(getSkinParam(), FontParam.CLASS_STEREOTYPE,
				stereotype);
		genericBlock = new TextBlockGeneric(genericBlock, classBackground, classBorder);
		genericBlock = TextBlockUtils.withMargin(genericBlock, 1, 1);
	}

	final TextBlock circledCharacter;
	if (portionShower.showPortion(EntityPortion.CIRCLED_CHARACTER, (ILeaf) getEntity())) {
		circledCharacter = TextBlockUtils.withMargin(getCircledCharacter(entity, skinParam), 4, 0, 5, 5);
	} else {
		circledCharacter = null;
	}
	this.headerLayout = new HeaderLayout(circledCharacter, stereo, name, genericBlock);
}
 
开发者ID:mar9000,项目名称:plantuml,代码行数:57,代码来源:EntityImageClassHeader2.java


注:本文中的net.sourceforge.plantuml.cucadiagram.Stereotype.getLabel方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。