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; }
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; }
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; }
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; }
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; } } }
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; }
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); };
public int getLatitude() { return latitude.getValue(); }
public int getLength() { return length.getValue(); }
public int getTail() { return tail.getValue(); }
public int getHead() { return head.getValue(); }
public int getWindForce() { return windForce.getValue(); }
public int getLongitude() { return longitude.getValue(); }
public int getStartTime() { return startTime.getValue(); }
public int getWindDirection() { return windDirection.getValue(); }