|
|
@ -204,12 +204,12 @@ public class BoardContentUtils { |
|
|
|
icon = ImageIO.read(new File(templatePath + "/shoufei.png")); |
|
|
|
g.drawImage(icon,70,2,33,40,null); |
|
|
|
|
|
|
|
imgDTO = ImageDTO.createImageDTO("长清大学城收费站",new Color(255,255,0),new Font("Default", Font.BOLD, 20), 105, 2); |
|
|
|
imgDTO = ImageDTO.createImageDTO("孝里收费站",new Color(255,255,0),new Font("Default", Font.BOLD, 20), 105, 2); |
|
|
|
g.setColor(imgDTO.getColor()); //根据图片的背景设置水印颜色
|
|
|
|
g.setFont(imgDTO.getFont()); //设置字体
|
|
|
|
g.drawString(imgDTO.getText(), imgDTO.getX(), imgDTO.getY()); //画出水印
|
|
|
|
|
|
|
|
imgDTO = ImageDTO.createImageDTO("14.7KM 10分钟",new Color(255,255,0),new Font("Default", Font.BOLD, 20), 105, 22); |
|
|
|
imgDTO = ImageDTO.createImageDTO("15.2KM 10分钟",new Color(255,255,0),new Font("Default", Font.BOLD, 20), 105, 22); |
|
|
|
g.setColor(imgDTO.getColor()); //根据图片的背景设置水印颜色
|
|
|
|
g.setFont(imgDTO.getFont()); //设置字体
|
|
|
|
g.drawString(imgDTO.getText(), imgDTO.getX(), imgDTO.getY()); //画出水印
|
|
|
@ -230,7 +230,7 @@ public class BoardContentUtils { |
|
|
|
g.setFont(imgDTO.getFont()); //设置字体
|
|
|
|
g.drawString(imgDTO.getText(), imgDTO.getX(), imgDTO.getY()); //画出水印
|
|
|
|
|
|
|
|
imgDTO = ImageDTO.createImageDTO("17.7KM 15分钟",new Color(255,255,0),new Font("Default", Font.BOLD, 20), 485, 22); |
|
|
|
imgDTO = ImageDTO.createImageDTO("7.7KM 5分钟",new Color(255,255,0),new Font("Default", Font.BOLD, 20), 485, 22); |
|
|
|
g.setColor(imgDTO.getColor()); //根据图片的背景设置水印颜色
|
|
|
|
g.setFont(imgDTO.getFont()); //设置字体
|
|
|
|
g.drawString(imgDTO.getText(), imgDTO.getX(), imgDTO.getY()); //画出水印
|
|
|
@ -313,10 +313,10 @@ public class BoardContentUtils { |
|
|
|
|
|
|
|
// DcBoardImgLane boardImgLane = new DcBoardImgLane(BoardIconEnum.SPEED_LIMIT_120,BoardIconEnum.SPEED_LIMIT_120,BoardIconEnum.SPEED_LIMIT_100,BoardIconEnum.SPEED_LIMIT_80,BoardIconEnum.EMERGENCY_LANE);
|
|
|
|
|
|
|
|
// DcBoardImgLane boardImgLane = new DcBoardImgLane(BoardIconEnum.STRAIGHT_TRAVEL,BoardIconEnum.LEFT_DETOUR,BoardIconEnum.LANE_PROHIBITION,BoardIconEnum.RIGHT_DETOUR,BoardIconEnum.EMERGENCY_LANE);
|
|
|
|
DcBoardImgLane boardImgLane = new DcBoardImgLane(BoardIconEnum.LANE_PROHIBITION,BoardIconEnum.RIGHT_DETOUR,BoardIconEnum.STRAIGHT_TRAVEL,BoardIconEnum.STRAIGHT_TRAVEL,BoardIconEnum.EMERGENCY_LANE); |
|
|
|
|
|
|
|
//车道通行场景
|
|
|
|
// BoardContentUtils.writeLaneImage(boardImgLane);
|
|
|
|
BoardContentUtils.writeLaneImage(boardImgLane); |
|
|
|
|
|
|
|
|
|
|
|
//服务设施场景
|
|
|
|