1 33 34 package com.icesoft.tutorial; 35 36 42 43 import java.awt.*; 44 import java.util.TimeZone ; 45 46 public class TimeZoneWrapper { 47 48 53 private String id; 54 55 59 private String mapCommandButtonId; 60 61 64 private Polygon mapPolygon; 65 66 73 public TimeZoneWrapper(String id, String mapId, int[] xCoords, 74 int[] yCoords, int coords) { 75 this.id = id; 76 this.mapCommandButtonId = mapId; 77 mapPolygon = new Polygon(xCoords, yCoords, coords); 78 } 79 80 86 public String getId() { 87 return id; 88 } 89 90 100 public boolean isRelevantComponentId(String componentId) { 101 return componentId.endsWith(mapCommandButtonId); 102 } 103 104 110 public String getMapCommandButtonId() { 111 return mapCommandButtonId; 112 } 113 114 119 public Polygon getMapPolygon() { 120 return mapPolygon; 121 } 122 } 123 | Popular Tags |