All Downloads are FREE. Search and download functionalities are using the official Maven repository.

lphystudio.app.graphicalmodelpanel.viewer.BooleanArrayLabel Maven / Gradle / Ivy

The newest version!
package lphystudio.app.graphicalmodelpanel.viewer;

import lphy.core.model.Value;

import javax.swing.*;

//TODO not used
public class BooleanArrayLabel extends JLabel {

    public BooleanArrayLabel(Value values) {

        StringBuilder builder = new StringBuilder();
        builder.append("[");
        builder.append(values.value()[0]);
        for (int i = 1; i < values.value().length; i++) {
            if (i % 8 == 0) {
                builder.append(",
"); } else { builder.append(", "); } builder.append(values.value()[i]); } builder.append("]"); String str = builder.toString(); setText(str); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy