Move icons to icons directory. Now, start working on tests to check that all the icons has his image.

This commit is contained in:
Paulo Gustavo Veiga
2011-03-21 01:04:43 -03:00
parent d5ac7376b3
commit 1790a20d6a
80 changed files with 204 additions and 264 deletions

View File

@@ -119,12 +119,6 @@
<version>1.5.6</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework.ws</groupId>
<artifactId>spring-ws-core-tiger</artifactId>
<version>1.5.6</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate</artifactId>
@@ -167,12 +161,6 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.octo.captcha</groupId>
<artifactId>jcaptcha</artifactId>
<version>1.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.acegisecurity</groupId>
<artifactId>acegi-security</artifactId>

View File

@@ -35,16 +35,13 @@ final public class FreemindIconConverter {
private final static Map<String, MindmapIcon> freeIdToIcon = new HashMap<String, MindmapIcon>();
private final static Map<MindmapIcon, String> iconToFreeId = new HashMap<MindmapIcon, String>();
private static final MindmapIcon DEFAULT_ICON = MindmapIcons.getIconByFamily(IconFamily.BULLET).get(3);
private FreemindIconConverter() {
}
@Nullable
public static String toWiseId(@NotNull String iconId) {
final MindmapIcon result = freeIdToIcon.get(iconId);
return result!=null?result.getId():null;
return result != null ? result.getId() : null;
}
@Nullable
@@ -55,19 +52,18 @@ final public class FreemindIconConverter {
static {
// Load bullets image mapping ...
// Map numbers icons family ...
final List<MindmapIcon> bulletsImages = MindmapIcons.getIconByFamily(IconFamily.BULLET);
for (int i = 0; i < bulletsImages.size(); i++) {
final MindmapIcon icon = bulletsImages.get(i);
iconToFreeId.put(icon, "full-" + i);
}
final List<MindmapIcon> bulbImages = MindmapIcons.getIconByFamily(IconFamily.BULB);
iconToFreeId.put(bulbImages.get(0), "idea");
final List<MindmapIcon> tickImages = MindmapIcons.getIconByFamily(IconFamily.TICK);
iconToFreeId.put(tickImages.get(0), "button_ok");
iconToFreeId.put(tickImages.get(1), "button_cancel");
// Generic mapping ...
iconToFreeId.put(MindmapIcons.BULB_LIGHT_ON, "idea");
iconToFreeId.put(MindmapIcons.TICK_TICK, "button_ok");
iconToFreeId.put(MindmapIcons.TICK_CROSS, "button_cancel");
// Map arrow icons ...
iconToFreeId.put(MindmapIcons.ARROW_UP, "up");

View File

@@ -20,11 +20,14 @@ package com.wisemapping.model;
import org.jetbrains.annotations.NotNull;
import java.lang.IllegalStateException;
import java.lang.reflect.Field;
import java.util.*;
public class MindmapIcons {
private static Map<IconFamily, List<MindmapIcon>> images = new HashMap<IconFamily, List<MindmapIcon>>();
private static Map<IconFamily, List<MindmapIcon>> iconsByFamily;
public static final MindmapIcon FACE_PLAIN = new MindmapIcon(IconFamily.SMILEY, "plain");
public static final MindmapIcon FACE_SAD = new MindmapIcon(IconFamily.SMILEY, "sad");
@@ -41,179 +44,116 @@ public class MindmapIcons {
public static final MindmapIcon ARROW_LEFT = new MindmapIcon(IconFamily.ARROW, "left");
public static final MindmapIcon ARROW_RIGHT = new MindmapIcon(IconFamily.ARROW, "right");
static {
images.put(IconFamily.BULLET, getImagesBullet());
images.put(IconFamily.FLAG, getImagesFlag());
images.put(IconFamily.NUMBER, getImagesNumber());
images.put(IconFamily.TAG, getImagesTag());
images.put(IconFamily.TASK, getImagesTask());
images.put(IconFamily.SMILEY, getImagesFaces());
images.put(IconFamily.BULB, getImagesBulb());
images.put(IconFamily.ARROW, getImagesArrow());
images.put(IconFamily.ARROWC, getImagesArrowC());
images.put(IconFamily.CONN, getImagesConn());
images.put(IconFamily.THUMB, getImagesThumbs());
images.put(IconFamily.TICK, getImagesTick());
images.put(IconFamily.ONOFF, getImagesOnOff());
images.put(IconFamily.MONEY, getImagesMoney());
images.put(IconFamily.CHART, getImagesChart());
public static final MindmapIcon TASK_ONE = new MindmapIcon(IconFamily.TASK, "one");
public static final MindmapIcon TASK_TWO = new MindmapIcon(IconFamily.TASK, "two");
public static final MindmapIcon TASK_THREE = new MindmapIcon(IconFamily.TASK, "three");
public static final MindmapIcon TASK_FOUR = new MindmapIcon(IconFamily.TASK, "four");
public static final MindmapIcon TASK_FIVE = new MindmapIcon(IconFamily.TASK, "five");
public static final MindmapIcon ARROWC_UNDO = new MindmapIcon(IconFamily.ARROWC, "undo");
public static final MindmapIcon ARROWC_ANTICLOCK_WISE = new MindmapIcon(IconFamily.ARROWC, "rotate_anticlockwise");
public static final MindmapIcon ARROWC_CLOCK_WISE = new MindmapIcon(IconFamily.ARROWC, "rotate_clockwise");
public static final MindmapIcon ARROWC_LEFT = new MindmapIcon(IconFamily.ARROWC, "turn_left");
public static final MindmapIcon ARROWC_RIGHT = new MindmapIcon(IconFamily.ARROWC, "turn_right");
public static final MindmapIcon BULB_LIGHT_ON = new MindmapIcon(IconFamily.BULB, "light_on");
public static final MindmapIcon BULB_LIGHT__OFF = new MindmapIcon(IconFamily.BULB, "light_off");
public static final MindmapIcon TICK_TICK = new MindmapIcon(IconFamily.TICK, "tick");
public static final MindmapIcon TICK_CROSS = new MindmapIcon(IconFamily.TICK, "cross");
public static final MindmapIcon CHART_BAR = new MindmapIcon(IconFamily.CHART, "bar");
public static final MindmapIcon CHART_LINE = new MindmapIcon(IconFamily.CHART, "line");
public static final MindmapIcon CHART_CURVE = new MindmapIcon(IconFamily.CHART, "curve");
public static final MindmapIcon CHART_PIE = new MindmapIcon(IconFamily.CHART, "pie");
public static final MindmapIcon CHART_ORGANISATION = new MindmapIcon(IconFamily.CHART, "organisation");
public static final MindmapIcon ONOFF_CLOCK = new MindmapIcon(IconFamily.ONOFF, "clock");
public static final MindmapIcon ONOFF_CLOCK__RED = new MindmapIcon(IconFamily.ONOFF, "clock_red");
public static final MindmapIcon ONOFF_ADD = new MindmapIcon(IconFamily.ONOFF, "add");
public static final MindmapIcon ONOFF_DELETE = new MindmapIcon(IconFamily.ONOFF, "delete");
public static final MindmapIcon TAG_BLUE = new MindmapIcon(IconFamily.TAG, "blue");
public static final MindmapIcon TAG_GREEN = new MindmapIcon(IconFamily.TAG, "green");
public static final MindmapIcon TAG_ORANGE = new MindmapIcon(IconFamily.TAG, "orange");
public static final MindmapIcon TAG_RED = new MindmapIcon(IconFamily.TAG, "red");
public static final MindmapIcon TAG_PINK = new MindmapIcon(IconFamily.TAG, "pink");
public static final MindmapIcon TAG_YELLOW = new MindmapIcon(IconFamily.TAG, "yellow");
public static final MindmapIcon NUMBER_ONE = new MindmapIcon(IconFamily.NUMBER, "one");
public static final MindmapIcon NUMBER_TWO = new MindmapIcon(IconFamily.NUMBER, "two");
public static final MindmapIcon NUMBER_THREE = new MindmapIcon(IconFamily.NUMBER, "three");
public static final MindmapIcon NUMBER_FOUR = new MindmapIcon(IconFamily.NUMBER, "four");
public static final MindmapIcon NUMBER_FIVE = new MindmapIcon(IconFamily.NUMBER, "five");
public static final MindmapIcon NUMBER_SIX = new MindmapIcon(IconFamily.NUMBER, "six");
public static final MindmapIcon NUMBER_SEVEN = new MindmapIcon(IconFamily.NUMBER, "seven");
public static final MindmapIcon NUMBER_EIGHT = new MindmapIcon(IconFamily.NUMBER, "eight");
public static final MindmapIcon NUMBER_NINE = new MindmapIcon(IconFamily.NUMBER, "nine");
public static final MindmapIcon FLAG_BLUE = new MindmapIcon(IconFamily.FLAG, "blue");
public static final MindmapIcon FLAG_GREEN = new MindmapIcon(IconFamily.FLAG, "green");
public static final MindmapIcon FLAG_ORANGE = new MindmapIcon(IconFamily.FLAG, "orange");
public static final MindmapIcon FLAG_PINK = new MindmapIcon(IconFamily.FLAG, "pink");
public static final MindmapIcon FLAG_PURPLE = new MindmapIcon(IconFamily.FLAG, "purple");
public static final MindmapIcon FLAG_YELLOW = new MindmapIcon(IconFamily.FLAG, "yellow");
public static final MindmapIcon BULLET_BLACK = new MindmapIcon(IconFamily.BULLET, "black");
public static final MindmapIcon BULLET_BLUE = new MindmapIcon(IconFamily.BULLET, "blue");
public static final MindmapIcon BULLET_BLUEGREEN = new MindmapIcon(IconFamily.BULLET, "green");
public static final MindmapIcon BULLET_BLUEORANGE = new MindmapIcon(IconFamily.BULLET, "orange");
public static final MindmapIcon BULLET_BLUERED = new MindmapIcon(IconFamily.BULLET, "red");
public static final MindmapIcon BULLET_BLUEPINK = new MindmapIcon(IconFamily.BULLET, "pink");
public static final MindmapIcon BULLET_BLUEPURPLE = new MindmapIcon(IconFamily.BULLET, "purple");
public static final MindmapIcon MONEY_GENERIC = new MindmapIcon(IconFamily.MONEY, "money");
public static final MindmapIcon MONEY_DOLLAR = new MindmapIcon(IconFamily.MONEY, "dollar");
public static final MindmapIcon MONEY_EURO = new MindmapIcon(IconFamily.MONEY, "euro");
public static final MindmapIcon MONEY_POUND = new MindmapIcon(IconFamily.MONEY, "pound");
public static final MindmapIcon MONEY_YEN = new MindmapIcon(IconFamily.MONEY, "yen");
public static final MindmapIcon MONEY_COINS = new MindmapIcon(IconFamily.MONEY, "coins");
public static final MindmapIcon MONEY_RUBY = new MindmapIcon(IconFamily.MONEY, "ruby");
public static final MindmapIcon MONEY_CONNECT = new MindmapIcon(IconFamily.CONN, "connect");
public static final MindmapIcon MONEY_DISCONNECT = new MindmapIcon(IconFamily.CONN, "disconnect");
@NotNull
public static List<MindmapIcon> getIconByFamily(@NotNull IconFamily family) {
load();
return iconsByFamily.get(family);
}
private static List<MindmapIcon> getImagesFaces() {
final List<MindmapIcon> images = new ArrayList<MindmapIcon>();
images.add(FACE_PLAIN);
images.add(FACE_SAD);
images.add(FACE_CRYING);
images.add(FACE_SMILE);
images.add(FACE_SURPRISE);
images.add(FACE_WINK);
return images;
}
private static void load() {
try {
if (iconsByFamily == null) {
iconsByFamily = new HashMap<IconFamily, List<MindmapIcon>>();
private static List<MindmapIcon> getImagesArrow() {
final List<MindmapIcon> result = new ArrayList<MindmapIcon>();
result.add(ARROW_UP);
result.add(ARROW_DOWN);
result.add(ARROW_LEFT);
result.add(ARROW_RIGHT);
return result;
}
Field[] fields = MindmapIcons.class.getDeclaredFields();
for (Field field : fields) {
final Object object = field.get(null);
private static List<MindmapIcon> getImagesArrowC() {
final List<MindmapIcon> result = new ArrayList<MindmapIcon>();
result.add(new MindmapIcon(IconFamily.ARROWC, "undo"));
result.add(new MindmapIcon(IconFamily.ARROWC, "rotate_anticlockwise"));
result.add(new MindmapIcon(IconFamily.ARROWC, "rotate_clockwise"));
result.add(new MindmapIcon(IconFamily.ARROWC, "turn_left"));
result.add(new MindmapIcon(IconFamily.ARROWC, "turn_right"));
return result;
}
if (object instanceof MindmapIcon) {
private static List<MindmapIcon> getImagesBulb() {
final List<MindmapIcon> images = new ArrayList<MindmapIcon>();
images.add(new MindmapIcon(IconFamily.BULB, "light_on"));
images.add(new MindmapIcon(IconFamily.BULB, "light_off"));
return images;
}
private static List<MindmapIcon> getImagesTick() {
final List<MindmapIcon> images = new ArrayList<MindmapIcon>();
images.add(new MindmapIcon(IconFamily.TICK, "tick"));
images.add(new MindmapIcon(IconFamily.TICK, "cross"));
return images;
}
private static List<MindmapIcon> getImagesChart() {
final List<MindmapIcon> images = new ArrayList<MindmapIcon>();
images.add(new MindmapIcon(IconFamily.CHART, "bar"));
images.add(new MindmapIcon(IconFamily.CHART, "line"));
images.add(new MindmapIcon(IconFamily.CHART, "curve"));
images.add(new MindmapIcon(IconFamily.CHART, "pie"));
images.add(new MindmapIcon(IconFamily.CHART, "organisation"));
return images;
}
private static List<MindmapIcon> getImagesOnOff() {
final List<MindmapIcon> images = new ArrayList<MindmapIcon>();
images.add(new MindmapIcon(IconFamily.ONOFF, "clock"));
images.add(new MindmapIcon(IconFamily.ONOFF, "clock_red"));
images.add(new MindmapIcon(IconFamily.ONOFF, "add"));
images.add(new MindmapIcon(IconFamily.ONOFF, "delete"));
return images;
}
private static List<MindmapIcon> getImagesMoney() {
final List<MindmapIcon> images = new ArrayList<MindmapIcon>();
images.add(new MindmapIcon(IconFamily.MONEY, "money"));
images.add(new MindmapIcon(IconFamily.MONEY, "dollar"));
images.add(new MindmapIcon(IconFamily.MONEY, "euro"));
images.add(new MindmapIcon(IconFamily.MONEY, "pound"));
images.add(new MindmapIcon(IconFamily.MONEY, "yen"));
images.add(new MindmapIcon(IconFamily.MONEY, "coins"));
images.add(new MindmapIcon(IconFamily.MONEY, "ruby"));
return images;
}
private static List<MindmapIcon> getImagesThumbs() {
final List<MindmapIcon> images = new ArrayList<MindmapIcon>();
images.add(THUMB__UP);
images.add(THUMB_DOWN);
return images;
}
private static List<MindmapIcon> getImagesConn() {
final List<MindmapIcon> images = new ArrayList<MindmapIcon>();
images.add(new MindmapIcon(IconFamily.CONN, "connect"));
images.add(new MindmapIcon(IconFamily.CONN, "disconnect"));
return images;
}
private static List<MindmapIcon> getImagesBullet() {
final List<MindmapIcon> images = new ArrayList<MindmapIcon>();
images.add(new MindmapIcon(IconFamily.BULLET, "black"));
images.add(new MindmapIcon(IconFamily.BULLET, "blue"));
images.add(new MindmapIcon(IconFamily.BULLET, "green"));
images.add(new MindmapIcon(IconFamily.BULLET, "orange"));
images.add(new MindmapIcon(IconFamily.BULLET, "red"));
images.add(new MindmapIcon(IconFamily.BULLET, "pink"));
images.add(new MindmapIcon(IconFamily.BULLET, "purple"));
return images;
}
private static List<MindmapIcon> getImagesFlag() {
final List<MindmapIcon> images = new ArrayList<MindmapIcon>();
images.add(new MindmapIcon(IconFamily.FLAG, "blue"));
images.add(new MindmapIcon(IconFamily.FLAG, "green"));
images.add(new MindmapIcon(IconFamily.FLAG, "orange"));
images.add(new MindmapIcon(IconFamily.FLAG, "pink"));
images.add(new MindmapIcon(IconFamily.FLAG, "purple"));
images.add(new MindmapIcon(IconFamily.FLAG, "yellow"));
return images;
}
private static List<MindmapIcon> getImagesNumber() {
final List<MindmapIcon> images = new ArrayList<MindmapIcon>();
images.add(new MindmapIcon(IconFamily.NUMBER, "one"));
images.add(new MindmapIcon(IconFamily.NUMBER, "two"));
images.add(new MindmapIcon(IconFamily.NUMBER, "three"));
images.add(new MindmapIcon(IconFamily.NUMBER, "four"));
images.add(new MindmapIcon(IconFamily.NUMBER, "five"));
images.add(new MindmapIcon(IconFamily.NUMBER, "six"));
images.add(new MindmapIcon(IconFamily.NUMBER, "seven"));
images.add(new MindmapIcon(IconFamily.NUMBER, "eight"));
images.add(new MindmapIcon(IconFamily.NUMBER, "nine"));
return images;
}
private static List<MindmapIcon> getImagesTag() {
final List<MindmapIcon> images = new ArrayList<MindmapIcon>();
images.add(new MindmapIcon(IconFamily.TAG, "blue"));
images.add(new MindmapIcon(IconFamily.TAG, "green"));
images.add(new MindmapIcon(IconFamily.TAG, "orange"));
images.add(new MindmapIcon(IconFamily.TAG, "red"));
images.add(new MindmapIcon(IconFamily.TAG, "pink"));
images.add(new MindmapIcon(IconFamily.TAG, "yellow"));
return images;
}
private static List<MindmapIcon> getImagesTask() {
final List<MindmapIcon> images = new ArrayList<MindmapIcon>();
images.add(new MindmapIcon(IconFamily.TASK, "one"));
images.add(new MindmapIcon(IconFamily.TASK, "two"));
images.add(new MindmapIcon(IconFamily.TASK, "three"));
images.add(new MindmapIcon(IconFamily.TASK, "four"));
images.add(new MindmapIcon(IconFamily.TASK, "five"));
return images;
}
final MindmapIcon icon = (MindmapIcon) object;
final IconFamily iconFamily = icon.getFamily();
List<MindmapIcon> mindmapIcons = iconsByFamily.get(iconFamily);
if (mindmapIcons == null) {
mindmapIcons = new ArrayList<MindmapIcon>();
iconsByFamily.put(iconFamily, mindmapIcons);
}
mindmapIcons.add(icon);
}
}
public static List<MindmapIcon> getIconByFamily(IconFamily family) {
return images.get(family);
}
} catch (IllegalAccessException e) {
throw new IllegalStateException(e);
}
}
public static MindmapIcon findById(final @NotNull String id) {
for (IconFamily imageFamily : images.keySet()) {
final List<MindmapIcon> mindmapIcons = images.get(imageFamily);
for (IconFamily imageFamily : iconsByFamily.keySet()) {
final List<MindmapIcon> mindmapIcons = iconsByFamily.get(imageFamily);
for (MindmapIcon mindmapIcon : mindmapIcons) {
if (mindmapIcon.getId().equals(id)) {
return mindmapIcon;

View File

Before

Width:  |  Height:  |  Size: 733 B

After

Width:  |  Height:  |  Size: 733 B

View File

Before

Width:  |  Height:  |  Size: 62 B

After

Width:  |  Height:  |  Size: 62 B

View File

Before

Width:  |  Height:  |  Size: 379 B

After

Width:  |  Height:  |  Size: 379 B

View File

Before

Width:  |  Height:  |  Size: 345 B

After

Width:  |  Height:  |  Size: 345 B

View File

Before

Width:  |  Height:  |  Size: 484 B

After

Width:  |  Height:  |  Size: 484 B

View File

Before

Width:  |  Height:  |  Size: 409 B

After

Width:  |  Height:  |  Size: 409 B

View File

Before

Width:  |  Height:  |  Size: 608 B

After

Width:  |  Height:  |  Size: 608 B

View File

Before

Width:  |  Height:  |  Size: 602 B

After

Width:  |  Height:  |  Size: 602 B

View File

Before

Width:  |  Height:  |  Size: 516 B

After

Width:  |  Height:  |  Size: 516 B

View File

Before

Width:  |  Height:  |  Size: 489 B

After

Width:  |  Height:  |  Size: 489 B

View File

Before

Width:  |  Height:  |  Size: 372 B

After

Width:  |  Height:  |  Size: 372 B

View File

Before

Width:  |  Height:  |  Size: 211 B

After

Width:  |  Height:  |  Size: 211 B

View File

Before

Width:  |  Height:  |  Size: 289 B

After

Width:  |  Height:  |  Size: 289 B

View File

Before

Width:  |  Height:  |  Size: 295 B

After

Width:  |  Height:  |  Size: 295 B

View File

Before

Width:  |  Height:  |  Size: 283 B

After

Width:  |  Height:  |  Size: 283 B

View File

Before

Width:  |  Height:  |  Size: 286 B

After

Width:  |  Height:  |  Size: 286 B

View File

Before

Width:  |  Height:  |  Size: 294 B

After

Width:  |  Height:  |  Size: 294 B

View File

Before

Width:  |  Height:  |  Size: 287 B

After

Width:  |  Height:  |  Size: 287 B

View File

Before

Width:  |  Height:  |  Size: 541 B

After

Width:  |  Height:  |  Size: 541 B

View File

Before

Width:  |  Height:  |  Size: 710 B

After

Width:  |  Height:  |  Size: 710 B

View File

Before

Width:  |  Height:  |  Size: 526 B

After

Width:  |  Height:  |  Size: 526 B

View File

Before

Width:  |  Height:  |  Size: 444 B

After

Width:  |  Height:  |  Size: 444 B

View File

Before

Width:  |  Height:  |  Size: 918 B

After

Width:  |  Height:  |  Size: 918 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 882 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 889 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 732 B

View File

Before

Width:  |  Height:  |  Size: 748 B

After

Width:  |  Height:  |  Size: 748 B

View File

Before

Width:  |  Height:  |  Size: 655 B

After

Width:  |  Height:  |  Size: 655 B

View File

Before

Width:  |  Height:  |  Size: 728 B

After

Width:  |  Height:  |  Size: 728 B

View File

Before

Width:  |  Height:  |  Size: 715 B

After

Width:  |  Height:  |  Size: 715 B

View File

Before

Width:  |  Height:  |  Size: 796 B

After

Width:  |  Height:  |  Size: 796 B

View File

Before

Width:  |  Height:  |  Size: 992 B

After

Width:  |  Height:  |  Size: 992 B

View File

Before

Width:  |  Height:  |  Size: 936 B

After

Width:  |  Height:  |  Size: 936 B

View File

Before

Width:  |  Height:  |  Size: 855 B

After

Width:  |  Height:  |  Size: 855 B

View File

Before

Width:  |  Height:  |  Size: 949 B

After

Width:  |  Height:  |  Size: 949 B

View File

Before

Width:  |  Height:  |  Size: 905 B

After

Width:  |  Height:  |  Size: 905 B

View File

Before

Width:  |  Height:  |  Size: 919 B

After

Width:  |  Height:  |  Size: 919 B

View File

Before

Width:  |  Height:  |  Size: 784 B

After

Width:  |  Height:  |  Size: 784 B

View File

Before

Width:  |  Height:  |  Size: 894 B

After

Width:  |  Height:  |  Size: 894 B

View File

Before

Width:  |  Height:  |  Size: 918 B

After

Width:  |  Height:  |  Size: 918 B

View File

Before

Width:  |  Height:  |  Size: 896 B

After

Width:  |  Height:  |  Size: 896 B

View File

Before

Width:  |  Height:  |  Size: 919 B

After

Width:  |  Height:  |  Size: 919 B

View File

Before

Width:  |  Height:  |  Size: 917 B

After

Width:  |  Height:  |  Size: 917 B

View File

Before

Width:  |  Height:  |  Size: 914 B

After

Width:  |  Height:  |  Size: 914 B

View File

Before

Width:  |  Height:  |  Size: 671 B

After

Width:  |  Height:  |  Size: 671 B

View File

Before

Width:  |  Height:  |  Size: 672 B

After

Width:  |  Height:  |  Size: 672 B

View File

Before

Width:  |  Height:  |  Size: 669 B

After

Width:  |  Height:  |  Size: 669 B

View File

Before

Width:  |  Height:  |  Size: 651 B

After

Width:  |  Height:  |  Size: 651 B

View File

Before

Width:  |  Height:  |  Size: 656 B

After

Width:  |  Height:  |  Size: 656 B

View File

Before

Width:  |  Height:  |  Size: 671 B

After

Width:  |  Height:  |  Size: 671 B

View File

@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<icons>
<family name="">
<icon id="" img=""/>
</family>
</icons>

Binary file not shown.

After

Width:  |  Height:  |  Size: 782 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 700 B

View File

Before

Width:  |  Height:  |  Size: 738 B

After

Width:  |  Height:  |  Size: 738 B

View File

Before

Width:  |  Height:  |  Size: 630 B

After

Width:  |  Height:  |  Size: 630 B

View File

Before

Width:  |  Height:  |  Size: 605 B

After

Width:  |  Height:  |  Size: 605 B

View File

Before

Width:  |  Height:  |  Size: 565 B

After

Width:  |  Height:  |  Size: 565 B

View File

Before

Width:  |  Height:  |  Size: 562 B

After

Width:  |  Height:  |  Size: 562 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 592 B

View File

Before

Width:  |  Height:  |  Size: 586 B

After

Width:  |  Height:  |  Size: 586 B

View File

Before

Width:  |  Height:  |  Size: 824 B

After

Width:  |  Height:  |  Size: 824 B

View File

Before

Width:  |  Height:  |  Size: 836 B

After

Width:  |  Height:  |  Size: 836 B

View File

Before

Width:  |  Height:  |  Size: 613 B

After

Width:  |  Height:  |  Size: 613 B

View File

Before

Width:  |  Height:  |  Size: 586 B

After

Width:  |  Height:  |  Size: 586 B

View File

Before

Width:  |  Height:  |  Size: 579 B

After

Width:  |  Height:  |  Size: 579 B

View File

Before

Width:  |  Height:  |  Size: 599 B

After

Width:  |  Height:  |  Size: 599 B

View File

Before

Width:  |  Height:  |  Size: 592 B

After

Width:  |  Height:  |  Size: 592 B

View File

Before

Width:  |  Height:  |  Size: 586 B

After

Width:  |  Height:  |  Size: 586 B

View File

Before

Width:  |  Height:  |  Size: 601 B

After

Width:  |  Height:  |  Size: 601 B

View File

Before

Width:  |  Height:  |  Size: 619 B

After

Width:  |  Height:  |  Size: 619 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 537 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 666 B

View File

@@ -0,0 +1,20 @@
package com.wisemapping.test.model;
import com.wisemapping.model.IconFamily;
import com.wisemapping.model.MindmapIcon;
import com.wisemapping.model.MindmapIcons;
import org.testng.Assert;
import org.testng.annotations.Test;
import java.util.List;
@Test
public class ImagesTest {
@Test
void checkImagesByFamily() throws IllegalAccessException {
List<MindmapIcon> iconByFamily = MindmapIcons.getIconByFamily(IconFamily.BULLET);
Assert.assertEquals(iconByFamily.size(), 7);
}
}

View File

@@ -6,4 +6,9 @@
<package name="com.wisemapping.test.freemind"/>
</packages>
</test>
<test name="Model Tests">
<packages>
<package name="com.wisemapping.test.model"/>
</packages>
</test>
</suite>