Пример #1
0
 public boolean setWindForce(int w, int timestamp, Object source) {
   if (windForce.updateValue(w, timestamp, source)) {
     firePropertyChanged(RescueConstants.PROPERTY_WIND_FORCE, timestamp, source);
     return true;
   }
   return false;
 }
Пример #2
0
 public boolean setLongitude(int l, int timestamp, Object source) {
   if (longitude.updateValue(l, timestamp, source)) {
     firePropertyChanged(RescueConstants.PROPERTY_LONGITUDE, timestamp, source);
     return true;
   }
   return false;
 }
Пример #3
0
 public boolean setLength(int l, int timestamp, Object source) {
   if (length.updateValue(l, timestamp, source)) {
     firePropertyChanged(RescueConstants.PROPERTY_LENGTH, timestamp, source);
     return true;
   }
   return false;
 }
Пример #4
0
 public boolean setTail(int t, int timestamp, Object source) {
   if (tail.updateValue(t, timestamp, source)) {
     firePropertyChanged(RescueConstants.PROPERTY_TAIL, timestamp, source);
     return true;
   }
   return false;
 }
Пример #5
0
 public boolean setHead(int h, int timestamp, Object source) {
   if (head.updateValue(h, timestamp, source)) {
     firePropertyChanged(RescueConstants.PROPERTY_HEAD, timestamp, source);
     return true;
   }
   return false;
 }
 void setAnimatedValue(Object obj)
 {
     if (mIntProperty != null)
     {
         mIntProperty.setValue(obj, mIntAnimatedValue);
     } else
     {
         if (mProperty != null)
         {
             mProperty.set(obj, Integer.valueOf(mIntAnimatedValue));
             return;
         }
         if (mSetter != null)
         {
             try
             {
                 mTmpValueArray[0] = Integer.valueOf(mIntAnimatedValue);
                 mSetter.invoke(obj, mTmpValueArray);
                 return;
             }
             // Misplaced declaration of an exception variable
             catch (Object obj)
             {
                 Log.e("PropertyValuesHolder", ((InvocationTargetException) (obj)).toString());
                 return;
             }
             // Misplaced declaration of an exception variable
             catch (Object obj)
             {
                 Log.e("PropertyValuesHolder", ((IllegalAccessException) (obj)).toString());
             }
             return;
         }
     }
 }
Пример #7
0
 public boolean setStartTime(int s, int timestamp, Object source) {
   if (startTime.updateValue(s, timestamp, source)) {
     firePropertyChanged(RescueConstants.PROPERTY_START_TIME, timestamp, source);
     return true;
   }
   return false;
 }
Пример #8
0
 public boolean setWindDirection(int w, int timestamp, Object source) {
   if (windDirection.updateValue(w, timestamp, source)) {
     firePropertyChanged(RescueConstants.PROPERTY_WIND_DIRECTION, timestamp, source);
     return true;
   }
   return false;
 }
  protected BasicStroke getLineStroke() {
    float strokeArr[] = null;
    float mult = width.getProp();

    switch (getLineStyle()) {
      case DOT:
        strokeArr = new float[] {1.0f, 3.0f};
        break;
      case DASH:
        strokeArr = new float[] {5.0f, 5.0f};
        break;
      case DASHDOT:
        strokeArr = new float[] {5.0f, 3.0f, 1.0f, 3.0f};
        break;
      case SOLID:
        break;
    }
    ;

    if (strokeArr != null) for (int i = 0; i < strokeArr.length; i++) strokeArr[i] *= mult;

    return new BasicStroke(
        width.getProp(), BasicStroke.CAP_ROUND, BasicStroke.JOIN_MITER, 10.0f, strokeArr, 0.0f);
  };
Пример #10
0
 public int getLatitude() {
   return latitude.getValue();
 }
Пример #11
0
 public int getLength() {
   return length.getValue();
 }
Пример #12
0
 public int getTail() {
   return tail.getValue();
 }
Пример #13
0
 public int getHead() {
   return head.getValue();
 }
Пример #14
0
 public int getWindForce() {
   return windForce.getValue();
 }
Пример #15
0
 public int getLongitude() {
   return longitude.getValue();
 }
Пример #16
0
 public int getStartTime() {
   return startTime.getValue();
 }
Пример #17
0
 public int getWindDirection() {
   return windDirection.getValue();
 }