@@ -62,18 +62,16 @@ public class XYSlamAnnotation implements XYAnnotation {
62
62
private Circle projected = null ;
63
63
64
64
private AnalysisDataModel model = null ;
65
- private float scale ;
66
65
67
66
public XYSlamAnnotation (Color color ) {
68
- this .scale = 1f ;
69
67
70
68
this .pane = new Pane ();
71
69
this .pane .setMaxWidth (999 ); this .pane .setMaxHeight (999 );
72
70
this .pane .setLayoutX (0 ); this .pane .setLayoutY (0 );
73
71
74
72
plan_rotate = Rotate .rotate (0 , 0 , 0 );
75
73
plan_dir = new Polygon ( -4 ,30 , -1 ,30 , -1 ,0 , 1 ,0 , 1 ,30 , 4 ,30 , 0 ,35 );
76
- plan_dir .setFill (Color .IVORY . darker ( ));
74
+ plan_dir .setFill (Color .rgb ( 230 , 230 , 20 , 0.6 ));
77
75
plan_dir .getTransforms ().add (plan_rotate );
78
76
plan_dir .setStrokeType (StrokeType .INSIDE );
79
77
plan_dir .setVisible (false );
@@ -125,7 +123,7 @@ public void layoutAnnotation(ValueAxis xAxis, ValueAxis yAxis) {
125
123
126
124
127
125
if (model .getValue ("SLAMSPD" ) != 0 ) {
128
- setArrowLength (plan_dir ,(float )model .getValue ("SLAMSPD" )*100 );
126
+ setArrowLength (plan_dir ,(float )model .getValue ("SLAMSPD" )*50 );
129
127
plan_dir .setLayoutX (xAxis .getDisplayPosition (model .getValue ("LPOSY" )));
130
128
plan_dir .setLayoutY (yAxis .getDisplayPosition (model .getValue ("LPOSX" )));
131
129
plan_rotate .angleProperty ().set (180 +MSPMathUtils .fromRad (model .getValue ("SLAMDIR" )));
@@ -151,10 +149,6 @@ public void layoutAnnotation(ValueAxis xAxis, ValueAxis yAxis) {
151
149
152
150
}
153
151
154
- public void setScale (float scale ) {
155
- this .scale = scale ;
156
- }
157
-
158
152
public void clear () {
159
153
Platform .runLater (() -> {
160
154
act_dir .setVisible (false );
0 commit comments