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


Java ParticipantType.DATABASE属性代码示例

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


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

示例1: LivingSpace

public LivingSpace(Participant p, ParticipantEnglober englober, Skin skin, ISkinParam skinParam, Real position,
		List<Event> events) {
	this.eventsHistory = new EventsHistory(p, events);
	this.p = p;
	this.skin = skin;
	this.skinParam = skinParam;
	this.englober = englober;
	this.posB = position;
	if (p.getType() == ParticipantType.PARTICIPANT) {
		headType = ComponentType.PARTICIPANT_HEAD;
		tailType = ComponentType.PARTICIPANT_TAIL;
	} else if (p.getType() == ParticipantType.ACTOR) {
		headType = ComponentType.ACTOR_HEAD;
		tailType = ComponentType.ACTOR_TAIL;
	} else if (p.getType() == ParticipantType.BOUNDARY) {
		headType = ComponentType.BOUNDARY_HEAD;
		tailType = ComponentType.BOUNDARY_TAIL;
	} else if (p.getType() == ParticipantType.CONTROL) {
		headType = ComponentType.CONTROL_HEAD;
		tailType = ComponentType.CONTROL_TAIL;
	} else if (p.getType() == ParticipantType.ENTITY) {
		headType = ComponentType.ENTITY_HEAD;
		tailType = ComponentType.ENTITY_TAIL;
	} else if (p.getType() == ParticipantType.DATABASE) {
		headType = ComponentType.DATABASE_HEAD;
		tailType = ComponentType.DATABASE_TAIL;
	} else {
		throw new IllegalArgumentException();
	}
	// this.stairs2.addStep2(0, p.getInitialLife());
	// this.stairs2.addStep2(0, 0);
	this.useContinueLineBecauseOfDelay = useContinueLineBecauseOfDelay(events);
	this.mutingLine = new MutingLine(skin, skinParam, events);
	this.liveBoxes = new LiveBoxes(eventsHistory, skin, skinParam, p);
}
 
开发者ID:Banno,项目名称:sbt-plantuml-plugin,代码行数:35,代码来源:LivingSpace.java

示例2: LivingSpace

public LivingSpace(Participant p, ParticipantEnglober englober, Skin skin, ISkinParam skinParam, Real position,
		List<Event> events) {
	this.eventsHistory = new EventsHistory(p, events);
	this.p = p;
	this.skin = skin;
	this.skinParam = skinParam;
	this.posB = position;
	if (p.getType() == ParticipantType.PARTICIPANT) {
		headType = ComponentType.PARTICIPANT_HEAD;
		tailType = ComponentType.PARTICIPANT_TAIL;
	} else if (p.getType() == ParticipantType.ACTOR) {
		headType = ComponentType.ACTOR_HEAD;
		tailType = ComponentType.ACTOR_TAIL;
	} else if (p.getType() == ParticipantType.BOUNDARY) {
		headType = ComponentType.BOUNDARY_HEAD;
		tailType = ComponentType.BOUNDARY_TAIL;
	} else if (p.getType() == ParticipantType.CONTROL) {
		headType = ComponentType.CONTROL_HEAD;
		tailType = ComponentType.CONTROL_TAIL;
	} else if (p.getType() == ParticipantType.ENTITY) {
		headType = ComponentType.ENTITY_HEAD;
		tailType = ComponentType.ENTITY_TAIL;
	} else if (p.getType() == ParticipantType.DATABASE) {
		headType = ComponentType.DATABASE_HEAD;
		tailType = ComponentType.DATABASE_TAIL;
	} else {
		throw new IllegalArgumentException();
	}
	this.stairs.addStep(0, p.getInitialLife());
	this.useContinueLineBecauseOfDelay = useContinueLineBecauseOfDelay(events);
	this.mutingLine = new MutingLine(skin, skinParam, events);

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

示例3: prepareParticipant

private void prepareParticipant(StringBounder stringBounder, Participant p) {
	final ComponentType headType;
	final ComponentType tailType;
	if (p.getType() == ParticipantType.PARTICIPANT) {
		headType = ComponentType.PARTICIPANT_HEAD;
		tailType = ComponentType.PARTICIPANT_TAIL;
	} else if (p.getType() == ParticipantType.ACTOR) {
		headType = ComponentType.ACTOR_HEAD;
		tailType = ComponentType.ACTOR_TAIL;
	} else if (p.getType() == ParticipantType.BOUNDARY) {
		headType = ComponentType.BOUNDARY_HEAD;
		tailType = ComponentType.BOUNDARY_TAIL;
	} else if (p.getType() == ParticipantType.CONTROL) {
		headType = ComponentType.CONTROL_HEAD;
		tailType = ComponentType.CONTROL_TAIL;
	} else if (p.getType() == ParticipantType.ENTITY) {
		headType = ComponentType.ENTITY_HEAD;
		tailType = ComponentType.ENTITY_TAIL;
	} else if (p.getType() == ParticipantType.DATABASE) {
		headType = ComponentType.DATABASE_HEAD;
		tailType = ComponentType.DATABASE_TAIL;
	} else if (p.getType() == ParticipantType.COLLECTIONS) {
		headType = ComponentType.COLLECTIONS_HEAD;
		tailType = ComponentType.COLLECTIONS_TAIL;
	} else {
		throw new IllegalArgumentException();
	}

	final ISkinParam skinParam = p.getSkinParamBackcolored(drawableSet.getSkinParam());
	final Display participantDisplay = p.getDisplay(skinParam.forceSequenceParticipantUnderlined());
	final Component head = drawableSet.getSkin().createComponent(headType, null, skinParam, participantDisplay);
	final Component tail = drawableSet.getSkin().createComponent(tailType, null, skinParam, participantDisplay);
	final Component line = drawableSet.getSkin().createComponent(this.defaultLineType, null,
			drawableSet.getSkinParam(), participantDisplay);
	final Component delayLine = drawableSet.getSkin().createComponent(ComponentType.DELAY_LINE, null,
			drawableSet.getSkinParam(), participantDisplay);
	final ParticipantBox box = new ParticipantBox(head, line, tail, delayLine, this.freeX,
			skinParam.maxAsciiMessageLength() > 0 ? 1 : 5);

	final Component comp = drawableSet.getSkin().createComponent(ComponentType.ALIVE_BOX_CLOSE_CLOSE, null,
			drawableSet.getSkinParam(), null);

	final LifeLine lifeLine = new LifeLine(box, comp.getPreferredWidth(stringBounder), drawableSet.getSkinParam()
			.shadowing());
	drawableSet.setLivingParticipantBox(p, new LivingParticipantBox(box, lifeLine));

	this.freeX = box.getMaxX(stringBounder);
}
 
开发者ID:Banno,项目名称:sbt-plantuml-plugin,代码行数:48,代码来源:DrawableSetInitializer.java

示例4: prepareParticipant

private void prepareParticipant(StringBounder stringBounder, Participant p) {
	final ComponentType headType;
	final ComponentType tailType;
	if (p.getType() == ParticipantType.PARTICIPANT) {
		headType = ComponentType.PARTICIPANT_HEAD;
		tailType = ComponentType.PARTICIPANT_TAIL;
	} else if (p.getType() == ParticipantType.ACTOR) {
		headType = ComponentType.ACTOR_HEAD;
		tailType = ComponentType.ACTOR_TAIL;
	} else if (p.getType() == ParticipantType.BOUNDARY) {
		headType = ComponentType.BOUNDARY_HEAD;
		tailType = ComponentType.BOUNDARY_TAIL;
	} else if (p.getType() == ParticipantType.CONTROL) {
		headType = ComponentType.CONTROL_HEAD;
		tailType = ComponentType.CONTROL_TAIL;
	} else if (p.getType() == ParticipantType.ENTITY) {
		headType = ComponentType.ENTITY_HEAD;
		tailType = ComponentType.ENTITY_TAIL;
	} else if (p.getType() == ParticipantType.DATABASE) {
		headType = ComponentType.DATABASE_HEAD;
		tailType = ComponentType.DATABASE_TAIL;
	} else {
		throw new IllegalArgumentException();
	}
	HtmlColor specificBackColor = p.getSpecificBackColor();
	final boolean clickable = p.getUrl() != null;
	final HtmlColor stereoBackColor = drawableSet.getSkinParam().getHtmlColor(p.getBackgroundColorParam(),
			p.getStereotype(), clickable);
	if (stereoBackColor != null && specificBackColor == null) {
		specificBackColor = stereoBackColor;
	}

	final ISkinParam skinParam = new SkinParamBackcolored(drawableSet.getSkinParam(), specificBackColor, clickable);
	final Display participantDisplay = p.getDisplay(skinParam.forceSequenceParticipantUnderlined());
	final Component head = drawableSet.getSkin().createComponent(headType, null, skinParam, participantDisplay);
	final Component tail = drawableSet.getSkin().createComponent(tailType, null, skinParam, participantDisplay);
	final Component line = drawableSet.getSkin().createComponent(this.defaultLineType, null,
			drawableSet.getSkinParam(), participantDisplay);
	final Component delayLine = drawableSet.getSkin().createComponent(ComponentType.DELAY_LINE, null,
			drawableSet.getSkinParam(), participantDisplay);
	final ParticipantBox box = new ParticipantBox(head, line, tail, delayLine, this.freeX);

	final Component comp = drawableSet.getSkin().createComponent(ComponentType.ALIVE_BOX_CLOSE_CLOSE, null,
			drawableSet.getSkinParam(), null);

	final LifeLine lifeLine = new LifeLine(box, comp.getPreferredWidth(stringBounder), drawableSet.getSkinParam()
			.shadowing());
	drawableSet.setLivingParticipantBox(p, new LivingParticipantBox(box, lifeLine));

	this.freeX = box.getMaxX(stringBounder);
}
 
开发者ID:mar9000,项目名称:plantuml,代码行数:51,代码来源:DrawableSetInitializer.java


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