コード例 #1
0
 /** @since Available in iOS 4.0 and later. */
 public CMTextJustification getHorizontalJustification() {
   if (has(Keys.HorizontalJustification())) {
     CFNumber val = get(Keys.HorizontalJustification(), CFNumber.class);
     return CMTextJustification.valueOf(val.longValue());
   }
   return null;
 }
コード例 #2
0
 /** @since Available in iOS 4.0 and later. */
 public CMTextFormatDescriptionExtension setHorizontalJustification(
     CMTextJustification horizontalJustification) {
   set(Keys.HorizontalJustification(), CFNumber.valueOf(horizontalJustification.value()));
   return this;
 }