| | |
| | | } |
| | | return width; |
| | | } |
| | | |
| | | /** |
| | | * 创建水滴图片 |
| | | * @param key |
| | | * @param waterDrop |
| | | * @param scorceF |
| | | * @param member_id |
| | | * @param suffixDate |
| | | */ |
| | | public static void creteWaterDropPic(String key, String waterDrop, float scorceF, String member_id, String suffixDate) { |
| | | int CANVAS_W = 1000; |
| | | int CANVAS_H = 96; |
| | |
| | | barImageY = 5; |
| | | } |
| | | if (key.indexOf("ResponseFidelityDiagnosis_V2") != -1) { |
| | | CANVAS_H = 400; |
| | | waterDropImageX = -30; |
| | | scorce100 = 800; |
| | | barImageY = 5; |
| | | waterDropImageY = 0; |
| | | } |
| | | if (key.indexOf("ResponseFidelityDiagnosisSAQGs") != -1) { |
| | | CANVAS_H = 400; |
| | | waterDropImageX = -30; |
| | | scorce100 = 800; |
| | |
| | | |
| | | int waterDropOffsetX = setWaterDrop(waterDrop, waterDropImageX, waterDropImageY, scorce100, scorce, g2d, waterDropImage); |
| | | |
| | | if (key.indexOf("ResponseFidelityDiagnosis_V2") != -1) { |
| | | if (key.indexOf("ResponseFidelityDiagnosis_V2") != -1 || key.indexOf("ResponseFidelityDiagnosisSAQGs") != -1) { |
| | | setTextV2(String.valueOf(Math.round(scorceF)), g2d, waterDropOffsetX); |
| | | }else{ |
| | | setText(String.valueOf(Math.round(scorceF)), g2d, waterDropOffsetX); |