mappingconnection.java
来自「eclipse开发笔记」· Java 代码 · 共 19 行
JAVA
19 行
package com.example.figures;
import org.eclipse.draw2d.ColorConstants;
import org.eclipse.draw2d.Graphics;
import org.eclipse.draw2d.PolylineConnection;
import org.eclipse.draw2d.geometry.Point;
import org.eclipse.draw2d.geometry.Rectangle;
import org.eclipse.swt.graphics.Color;
public class MappingConnection extends PolylineConnection {
protected void outlineShape(Graphics g) {
g.pushState();
g.setForegroundColor(ColorConstants.blue);
g.drawLine(this.getStart(), this.getEnd());
g.popState();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?