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


Java RotatableDecoration类代码示例

本文整理汇总了Java中org.eclipse.draw2d.RotatableDecoration的典型用法代码示例。如果您正苦于以下问题:Java RotatableDecoration类的具体用法?Java RotatableDecoration怎么用?Java RotatableDecoration使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: createDecoration

import org.eclipse.draw2d.RotatableDecoration; //导入依赖的package包/类
/**
 * @generated NOT
 */
private RotatableDecoration createDecoration() {
    PolygonDecoration df = new PolygonDecoration();
    df.setLineWidth(1);
    PointList list = new PointList();
    list.addPoint(0, 0);
    list.addPoint(-1, 1);
    list.addPoint(0, 0);
    list.addPoint(-1, -1);
    list.addPoint(0, 0);
    list.addPoint(-1, 0);
    list.addPoint(-2, 1);
    list.addPoint(-1, 0);
    list.addPoint(-2, -1);
    list.addPoint(-1, 0);
    df.setTemplate(list);
    
    return df;
}
 
开发者ID:d-case,项目名称:d-case_editor,代码行数:22,代码来源:DcaseLink003EditPart.java

示例2: createTargetDecoration

import org.eclipse.draw2d.RotatableDecoration; //导入依赖的package包/类
private RotatableDecoration createTargetDecoration() {
	PolygonDecoration df = new PolygonDecoration();
	df.setFill(true);
	df.setLineWidth(getMapMode().DPtoLP(1));
	df.setTemplate(PolygonDecoration.TRIANGLE_TIP);
	return df;
}
 
开发者ID:Yakindu,项目名称:statecharts,代码行数:8,代码来源:TransitionFigure.java

示例3: createTargetDecoration

import org.eclipse.draw2d.RotatableDecoration; //导入依赖的package包/类
/**
 * @generated
 */
private RotatableDecoration createTargetDecoration() {
	PolygonDecoration df = new PolygonDecoration();
	df.setFill(true);
	PointList pl = new PointList();
	pl.addPoint(getMapMode().DPtoLP(0), getMapMode().DPtoLP(0));
	pl.addPoint(getMapMode().DPtoLP(-2), getMapMode().DPtoLP(2));
	pl.addPoint(getMapMode().DPtoLP(-2), getMapMode().DPtoLP(-2));
	pl.addPoint(getMapMode().DPtoLP(0), getMapMode().DPtoLP(0));
	df.setTemplate(pl);
	df.setScale(getMapMode().DPtoLP(7), getMapMode().DPtoLP(3));
	return df;
}
 
开发者ID:bluezio,项目名称:simplified-bpmn-example,代码行数:16,代码来源:SequenceFlow2EditPart.java

示例4: createTargetDecoration

import org.eclipse.draw2d.RotatableDecoration; //导入依赖的package包/类
/**
 * @generated
 */
private RotatableDecoration createTargetDecoration() {
	PolygonDecoration df = new PolygonDecoration();
	df.setFill(true);
	df.setBackgroundColor(ColorConstants.white);
	PointList pl = new PointList();
	pl.addPoint(getMapMode().DPtoLP(0), getMapMode().DPtoLP(0));
	pl.addPoint(getMapMode().DPtoLP(-2), getMapMode().DPtoLP(2));
	pl.addPoint(getMapMode().DPtoLP(-2), getMapMode().DPtoLP(-2));
	pl.addPoint(getMapMode().DPtoLP(0), getMapMode().DPtoLP(0));
	df.setTemplate(pl);
	df.setScale(getMapMode().DPtoLP(7), getMapMode().DPtoLP(3));
	return df;
}
 
开发者ID:bluezio,项目名称:simplified-bpmn-example,代码行数:17,代码来源:MessageFlow2EditPart.java

示例5: setMiddleDecoration

import org.eclipse.draw2d.RotatableDecoration; //导入依赖的package包/类
/**
 * Sets the decoration to be used at the middle of the {@link Connection}.
 * 
 * @param dec
 *            the new decoration
 */
public void setMiddleDecoration(RotatableDecoration dec) {
    if (middleDec == dec)
        return;
    if (middleDec != null)
        remove(middleDec);
    middleDec = dec;
    if (middleDec != null) {
        add(middleDec, new NodeConnectionLocator(this, ConnectionLocator.MIDDLE));
    }
}
 
开发者ID:McGill-DP-Group,项目名称:seg.jUCMNav,代码行数:17,代码来源:KPIModelLinkRefConnection.java

示例6: createTargetDecoration

import org.eclipse.draw2d.RotatableDecoration; //导入依赖的package包/类
/**
 * @generated
 */
private RotatableDecoration createTargetDecoration() {
	PolygonDecoration df = new PolygonDecoration();
	df.setFill(true);
	df.setLineWidth(2);
	df.setBackgroundColor(ColorConstants.white);
	PointList pl = new PointList();
	pl.addPoint(getMapMode().DPtoLP(0), getMapMode().DPtoLP(0));
	pl.addPoint(getMapMode().DPtoLP(-2), getMapMode().DPtoLP(2));
	pl.addPoint(getMapMode().DPtoLP(-2), getMapMode().DPtoLP(-2));
	df.setTemplate(pl);
	df.setScale(getMapMode().DPtoLP(7), getMapMode().DPtoLP(3));
	return df;
}
 
开发者ID:adisandro,项目名称:MMINT,代码行数:17,代码来源:ExtendibleElementSupertypeEditPart.java

示例7: createTargetDecoration

import org.eclipse.draw2d.RotatableDecoration; //导入依赖的package包/类
/**
 * @generated
 */
private RotatableDecoration createTargetDecoration() {
	PolylineDecoration df = new PolylineDecoration();
	df.setLineWidth(3);
	df.setLineStyle(Graphics.LINE_DASH);
	return df;
}
 
开发者ID:adisandro,项目名称:MMINT,代码行数:10,代码来源:ModelElementEndpointReference2EditPart.java

示例8: createTargetDecoration

import org.eclipse.draw2d.RotatableDecoration; //导入依赖的package包/类
/**
 * @generated
 */
private RotatableDecoration createTargetDecoration() {
	PolygonDecoration df = new PolygonDecoration();
	df.setFill(true);
	PointList pl = new PointList();
	pl.addPoint(getMapMode().DPtoLP(-1), getMapMode().DPtoLP(1));
	pl.addPoint(getMapMode().DPtoLP(0), getMapMode().DPtoLP(0));
	pl.addPoint(getMapMode().DPtoLP(-1), getMapMode().DPtoLP(-1));
	pl.addPoint(getMapMode().DPtoLP(-2), getMapMode().DPtoLP(0));
	pl.addPoint(getMapMode().DPtoLP(-1), getMapMode().DPtoLP(1));
	df.setTemplate(pl);
	df.setScale(getMapMode().DPtoLP(7), getMapMode().DPtoLP(3));
	return df;
}
 
开发者ID:adisandro,项目名称:MMINT,代码行数:17,代码来源:DecompositionEditPart.java

示例9: createTargetDecoration

import org.eclipse.draw2d.RotatableDecoration; //导入依赖的package包/类
/**
 * @generated
 */
private RotatableDecoration createTargetDecoration() {
	PolygonDecoration df = new PolygonDecoration();
	df.setFill(true);
	df.setBackgroundColor(ColorConstants.white);
	PointList pl = new PointList();
	pl.addPoint(getMapMode().DPtoLP(0), getMapMode().DPtoLP(1));
	pl.addPoint(getMapMode().DPtoLP(-1), getMapMode().DPtoLP(1));
	pl.addPoint(getMapMode().DPtoLP(-1), getMapMode().DPtoLP(-1));
	pl.addPoint(getMapMode().DPtoLP(0), getMapMode().DPtoLP(-1));
	pl.addPoint(getMapMode().DPtoLP(0), getMapMode().DPtoLP(1));
	df.setTemplate(pl);
	df.setScale(getMapMode().DPtoLP(7), getMapMode().DPtoLP(3));
	return df;
}
 
开发者ID:adisandro,项目名称:MMINT,代码行数:18,代码来源:ClassNestedInEditPart.java

示例10: createTargetDecoration

import org.eclipse.draw2d.RotatableDecoration; //导入依赖的package包/类
/**
 * @generated
 */
private RotatableDecoration createTargetDecoration() {
    PolygonDecoration df = new PolygonDecoration();
    df.setLineWidth(1);
    
    // sets a triangular background color in white
    df.setBackgroundColor(Display.getDefault().getSystemColor(SWT.COLOR_WHITE));

    return df;
}
 
开发者ID:d-case,项目名称:d-case_editor,代码行数:13,代码来源:DcaseLink002EditPart.java

示例11: getSourceDecoration

import org.eclipse.draw2d.RotatableDecoration; //导入依赖的package包/类
public RotatableDecoration getSourceDecoration() {
    return sourceDecoration;
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:4,代码来源:DecorationFactory.java

示例12: getTargetDecoration

import org.eclipse.draw2d.RotatableDecoration; //导入依赖的package包/类
public RotatableDecoration getTargetDecoration() {
    return targetDecoration;
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:4,代码来源:DecorationFactory.java

示例13: getSourceDecoration

import org.eclipse.draw2d.RotatableDecoration; //导入依赖的package包/类
public RotatableDecoration getSourceDecoration() {
	return sourceDecoration;
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:4,代码来源:DecorationFactory.java

示例14: getTargetDecoration

import org.eclipse.draw2d.RotatableDecoration; //导入依赖的package包/类
public RotatableDecoration getTargetDecoration() {
	return targetDecoration;
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:4,代码来源:DecorationFactory.java

示例15: getInnerDecoration

import org.eclipse.draw2d.RotatableDecoration; //导入依赖的package包/类
private RotatableDecoration getInnerDecoration() {
	PolygonDecoration srcpd = new PolygonDecoration();
	srcpd.setTemplate(JOINDECORATOR);
	srcpd.setBackgroundColor(ColorConstants.black);
	return srcpd;
}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:7,代码来源:RelationshipPart.java


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