提交 56ced196 编写于 作者: M Mathieu Bastian

Fix display issue with arrays in appearance

上级 cafdf5e5
......@@ -28,6 +28,10 @@
<artifactId>org-openide-dialogs</artifactId>
<groupId>org.netbeans.api</groupId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>graph-api</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>appearance-api</artifactId>
......
......@@ -72,6 +72,7 @@ import org.gephi.appearance.api.PartitionFunction;
import org.gephi.appearance.plugin.palette.Palette;
import org.gephi.appearance.plugin.palette.PaletteGenerator;
import org.gephi.appearance.plugin.palette.PaletteManager;
import org.gephi.graph.api.AttributeUtils;
import org.gephi.ui.appearance.plugin.palette.PaletteGeneratorPanel;
import org.gephi.ui.components.PaletteIcon;
import org.gephi.ui.utils.UIUtils;
......@@ -162,7 +163,7 @@ public class PartitionColorTransformerPanel extends javax.swing.JPanel {
int j = 0;
for (Object value : values) {
String displayName = value == null ? "null" : value.toString();
String displayName = value == null ? "null" : value.getClass().isArray() ? AttributeUtils.printArray(value) : value.toString();
int count = function.getPartition().count(value);
float percentage = function.getPartition().percentage(value) / 100f;
model.setValueAt(value, j, 0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册