public static Object getImage(String prefix, Collection<?> tops, Collection<?> bottoms) { return getImage(prefix, tops, bottoms, false); }
public static Object getImage(MappingRoot mappingRoot, String prefix, Collection<?> collection) { return getImage(mappingRoot, prefix, collection, false); }
public static Object getImage(String prefix, Collection<?> tops, Collection<?> bottoms) { return getImage(prefix, tops, bottoms, false); }
public static Object getImage(MappingRoot mappingRoot, String prefix, Collection<?> collection) { return getImage(mappingRoot, prefix, collection, false); }
public static Object getImage(String prefix, Collection<?> tops, Collection<?> bottoms, boolean supportNone) { return getImage(prefix, tops.size(), bottoms.size(), supportNone); }
public static Object getImage(String prefix, Collection<?> tops, Collection<?> bottoms, boolean supportNone) { return getImage(prefix, tops.size(), bottoms.size(), supportNone); }
public static Object getImage(MappingRoot mappingRoot, String prefix, Collection<?> collection, boolean supportNone) { int topsSize = 0; int bottomsSize = 0; for (Object object : collection) { if (mappingRoot.isTopObject(object)) { ++topsSize; } else if (mappingRoot.isBottomObject(object)) { ++bottomsSize; } } return getImage(prefix, topsSize, bottomsSize, supportNone); }
public static Object getImage(MappingRoot mappingRoot, String prefix, Collection<?> collection, boolean supportNone) { int topsSize = 0; int bottomsSize = 0; for (Object object : collection) { if (mappingRoot.isTopObject(object)) { ++topsSize; } else if (mappingRoot.isBottomObject(object)) { ++bottomsSize; } } return getImage(prefix, topsSize, bottomsSize, supportNone); }
/** * This returns Mapping.gif. */ @Override public Object getImage(Object object) { Mapping mapping = (Mapping)object; MappingRoot mappingRoot = mapping.getMappingRoot(); boolean isTypeMapping = mappingRoot != null && mappingRoot.getDomain() == null; return getImage (isTypeMapping ? "full/obj16/Type" : "full/obj16/", mapping.getTops(), mapping.getBottoms(), !isTypeMapping); }
/** * This returns Mapping.gif. */ @Override public Object getImage(Object object) { Mapping mapping = (Mapping)object; MappingRoot mappingRoot = mapping.getMappingRoot(); boolean isTypeMapping = mappingRoot != null && mappingRoot.getDomain() == null; return getImage (isTypeMapping ? "full/obj16/Type" : "full/obj16/", mapping.getTops(), mapping.getBottoms(), !isTypeMapping); }