Lines Matching defs:map

308     public AttributeValues merge(Map<? extends Attribute, ?>map) {
309 return merge(map, MASK_ALL);
312 public AttributeValues merge(Map<? extends Attribute, ?>map,
314 if (map instanceof AttributeMap &&
315 ((AttributeMap) map).getValues() != null) {
316 merge(((AttributeMap)map).getValues(), mask);
317 } else if (map != null && !map.isEmpty()) {
318 for (Map.Entry<? extends Attribute, ?> e: map.entrySet()) {
353 public static AttributeValues fromMap(Map<? extends Attribute, ?> map) {
354 return fromMap(map, MASK_ALL);
357 public static AttributeValues fromMap(Map<? extends Attribute, ?> map,
359 return new AttributeValues().merge(map, mask);
757 // creating a map from the values for it. This is a compromise between
758 // creating the whole map and just checking a particular value.
760 public static float getJustification(Map<?, ?> map) {
761 if (map != null) {
762 if (map instanceof AttributeMap &&
763 ((AttributeMap) map).getValues() != null) {
764 return ((AttributeMap)map).getValues().justification;
766 Object obj = map.get(TextAttribute.JUSTIFICATION);
774 public static NumericShaper getNumericShaping(Map<?, ?> map) {
775 if (map != null) {
776 if (map instanceof AttributeMap &&
777 ((AttributeMap) map).getValues() != null) {
778 return ((AttributeMap)map).getValues().numericShaping;
780 Object obj = map.get(TextAttribute.NUMERIC_SHAPING);
815 public static AffineTransform getBaselineTransform(Map<?, ?> map) {
816 if (map != null) {
818 if (map instanceof AttributeMap &&
819 ((AttributeMap) map).getValues() != null) {
820 av = ((AttributeMap)map).getValues();
821 } else if (map.get(TextAttribute.TRANSFORM) != null) {
822 av = AttributeValues.fromMap((Map<Attribute, ?>)map); // yuck
831 public static AffineTransform getCharTransform(Map<?, ?> map) {
832 if (map != null) {
834 if (map instanceof AttributeMap &&
835 ((AttributeMap) map).getValues() != null) {
836 av = ((AttributeMap)map).getValues();
837 } else if (map.get(TextAttribute.TRANSFORM) != null) {
838 av = AttributeValues.fromMap((Map<Attribute, ?>)map); // yuck