/** * @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; }
private RotatableDecoration createTargetDecoration() { PolygonDecoration df = new PolygonDecoration(); df.setFill(true); df.setLineWidth(getMapMode().DPtoLP(1)); df.setTemplate(PolygonDecoration.TRIANGLE_TIP); return df; }
/** * @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; }
/** * @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; }
/** * 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)); } }
/** * @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; }
/** * @generated */ private RotatableDecoration createTargetDecoration() { PolylineDecoration df = new PolylineDecoration(); df.setLineWidth(3); df.setLineStyle(Graphics.LINE_DASH); return df; }
/** * @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; }
/** * @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; }
/** * @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; }
public RotatableDecoration getSourceDecoration() { return sourceDecoration; }
public RotatableDecoration getTargetDecoration() { return targetDecoration; }
private RotatableDecoration getInnerDecoration() { PolygonDecoration srcpd = new PolygonDecoration(); srcpd.setTemplate(JOINDECORATOR); srcpd.setBackgroundColor(ColorConstants.black); return srcpd; }
private RotatableDecoration getOuterDecoration() { PolygonDecoration srcpd = new PolygonDecoration(); srcpd.setTemplate(JOINDECORATOR); srcpd.setBackgroundColor(ColorConstants.white); return srcpd; }
private RotatableDecoration getCrossDecoration() { PolygonDecoration srcpd = new PolygonDecoration(); srcpd.setTemplate(JOINDECORATOR); srcpd.setBackgroundColor(ColorConstants.lightGray); return srcpd; }
/** * @generated */ private RotatableDecoration createSourceDecoration() { PolylineDecoration df = new PolylineDecoration(); df.setLineWidth(1); return df; }
/** * @generated */ private RotatableDecoration createTargetDecoration() { PolylineDecoration df = new PolylineDecoration(); df.setLineWidth(2); return df; }
/** * @generated */ private RotatableDecoration createTargetDecoration() { PolylineDecoration df = new PolylineDecoration(); return df; }