mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-25 21:43:49 +00:00
added pattern and shape enums in GWT context
This commit is contained in:
1 parent
a6581093d8
commit
2dbec9dbbf
3 files changed
+12
-2
No files matched your search
+2
-2
@@ -57,9 +57,9 @@ public class MarkVectorGraphics {
|
||||
switch(type) {
|
||||
case BUOY:
|
||||
if(shape != null) {
|
||||
if("Cylinder".equalsIgnoreCase(shape) && pattern != null && "Checkered".equalsIgnoreCase(pattern)) {
|
||||
if(Shape.CYLINDER.name().equalsIgnoreCase(shape) && pattern != null && Pattern.CHECKERED.name().equalsIgnoreCase(pattern)) {
|
||||
drawBuoyWithFinishFlag(ctx, isSelected, color);
|
||||
} else if ("Conical".equalsIgnoreCase(shape)) {
|
||||
} else if (Shape.CONICAL.name().equalsIgnoreCase(shape)) {
|
||||
drawConicalBuoy(ctx, isSelected, color);
|
||||
} else {
|
||||
drawSimpleBuoy(ctx, isSelected, color);
|
||||
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package com.sap.sailing.gwt.ui.shared.racemap;
|
||||
|
||||
public enum Pattern {
|
||||
CHECKERED
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package com.sap.sailing.gwt.ui.shared.racemap;
|
||||
|
||||
public enum Shape {
|
||||
CYLINDER, CONICAL
|
||||
}
|
||||
Reference in new issue
Block a user