Exemplo n.º 1
0
 private void readObject(ObjectInputStream objectinputstream) {
   try {
     stroke = (Stroke) objectinputstream.readObject();
     text = (String) objectinputstream.readObject();
     hasBorder = objectinputstream.readBoolean();
     hasGradient = objectinputstream.readBoolean();
     fillColor = objectinputstream.readInt();
     gradientColor = objectinputstream.readInt();
     mode =
         (com.socialin.android.brushlib.view.DrawingView.DrawingMode)
             objectinputstream.readObject();
     styleData = objectinputstream.readObject();
     invokeSecureMethod(styleData);
     init();
     stroke.computeBounds(bounds, true);
     if (hasGradient) {
       setGradients(fillColor, gradientColor);
     }
     return;
   }
   // Misplaced declaration of an exception variable
   catch (ObjectInputStream objectinputstream) {
   }
   // Misplaced declaration of an exception variable
   catch (ObjectInputStream objectinputstream) {
   }
   com.socialin.android.d.b(
       TAG,
       new Object[] {
         (new StringBuilder("Got unexpected exception: "))
             .append(objectinputstream.getMessage())
             .toString()
       });
 }
Exemplo n.º 2
0
 public void setStroke(Stroke stroke1) {
   stroke = stroke1;
   stroke1.computeBounds(bounds, true);
 }