added pattern and shape enums in GWT context

This commit is contained in:
Fredrik Teschke committed 2014-03-07 11:01:53 +01:00
1 parent a6581093d8
commit 2dbec9dbbf
3 files changed
+12 -2

No files matched your search

@@ -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);
@@ -0,0 +1,5 @@
package com.sap.sailing.gwt.ui.shared.racemap;
public enum Pattern {
CHECKERED
}
@@ -0,0 +1,5 @@
package com.sap.sailing.gwt.ui.shared.racemap;
public enum Shape {
CYLINDER, CONICAL
}