public void set(EAttribute a, AttributeValues src) {
   if (a.att == null) {
     throw new InternalError("can't set derived attribute: " + a);
   }
   if (src == null || src == DEFAULT) {
     setDefault(a);
   } else {
     if ((src.defined & a.mask) != 0) {
       i_set(a, src);
       update(a);
     }
   }
 }
 public AttributeValues merge(AttributeValues src, int mask) {
   int m = mask & src.defined;
   for (EAttribute ea : EAttribute.atts) {
     if (m == 0) {
       break;
     }
     if ((m & ea.mask) != 0) {
       m &= ~ea.mask;
       i_set(ea, src);
       update(ea);
     }
   }
   return this;
 }
 public void set(EAttribute a, Object o) {
   if (a.att == null) {
     throw new InternalError("can't set derived attribute: " + a);
   }
   if (o != null) {
     try {
       i_set(a, o);
       update(a);
       return;
     } catch (Exception e) {
     }
   }
   setDefault(a);
 }
 public void setInputMethodUnderline(int f) {
   this.imUnderline = (byte) f;
   update(EINPUT_METHOD_UNDERLINE);
 }
 public void setInputMethodHighlight(InputMethodHighlight f) {
   this.imHighlight = f;
   update(EINPUT_METHOD_HIGHLIGHT);
 }
 public void setJustification(float f) {
   this.justification = f;
   update(EJUSTIFICATION);
 }
 public void setPosture(float f) {
   this.posture = f;
   update(EPOSTURE);
 }
 public void setTransform(AffineTransform f) {
   this.transform = (f == null || f.isIdentity()) ? DEFAULT.transform : new AffineTransform(f);
   updateDerivedTransforms();
   update(ETRANSFORM);
 }
 public void setLigatures(int f) {
   this.ligatures = (byte) f;
   update(ELIGATURES);
 }
示例#10
0
 public void setKerning(int f) {
   this.kerning = (byte) f;
   update(EKERNING);
 }
示例#11
0
 public void setBackground(Paint f) {
   this.background = f;
   update(EBACKGROUND);
 }
示例#12
0
 public void setForeground(Paint f) {
   this.foreground = f;
   update(EFOREGROUND);
 }
示例#13
0
 public void setCharReplacement(GraphicAttribute f) {
   this.charReplacement = f;
   update(ECHAR_REPLACEMENT);
 }
示例#14
0
 public void setFont(Font f) {
   this.font = f;
   update(EFONT);
 }
示例#15
0
 public void setSuperscript(int f) {
   this.superscript = (byte) f;
   update(ESUPERSCRIPT);
 }
示例#16
0
 public void setTransform(TransformAttribute f) {
   this.transform = (f == null || f.isIdentity()) ? DEFAULT.transform : f.getTransform();
   updateDerivedTransforms();
   update(ETRANSFORM);
 }
示例#17
0
 public void setSwapColors(boolean f) {
   this.swapColors = f;
   update(ESWAP_COLORS);
 }
示例#18
0
 public void setNumericShaping(NumericShaper f) {
   this.numericShaping = f;
   update(ENUMERIC_SHAPING);
 }
示例#19
0
 public void setUnderline(int f) {
   this.underline = (byte) f;
   update(EUNDERLINE);
 }
示例#20
0
 public void setTracking(float f) {
   this.tracking = (byte) f;
   update(ETRACKING);
 }
示例#21
0
 public void setFamily(String f) {
   this.family = f;
   update(EFAMILY);
 }
示例#22
0
 public void setStrikethrough(boolean f) {
   this.strikethrough = f;
   update(ESTRIKETHROUGH);
 }
示例#23
0
 public void setSize(float f) {
   this.size = f;
   update(ESIZE);
 }
示例#24
0
 public void setRunDirection(int f) {
   this.runDirection = (byte) f;
   update(ERUN_DIRECTION);
 }
示例#25
0
 public void setBidiEmbedding(int f) {
   this.bidiEmbedding = (byte) f;
   update(EBIDI_EMBEDDING);
 }
示例#26
0
 public void setWeight(float f) {
   this.weight = f;
   update(EWEIGHT);
 }
示例#27
0
 public void setWidth(float f) {
   this.width = f;
   update(EWIDTH);
 }