⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 doublestructproperty.java

📁 JAVA 数学程序库 提供常规的数值计算程序包
💻 JAVA
字号:
package jmathlib.core.graphics.properties;

import jmathlib.core.graphics.*;
import jmathlib.core.interpreter.*;

public class DoubleStructProperty extends Property
{
	private String[] str;
    private double[] values;

	public DoubleStructProperty(PropertySet parent, String name, String[] str, double[] values)
	{
		super(parent, name);

		if (str.length != values.length)
            Errors.throwMathLibException("DoubleStrigProperty: size mismatch");
        
        this.str    = str;
        this.values = values;
    

    }

    public void set(Object newValue) throws PropertyException
    {
        System.out.println("doubleStruct");
        
        // ????????????????
        // ????????????????
        // ????????????????
        // ????????????????
        
        throw new PropertyException("not implemented");
    }

	public Object get()
	{
		return getValues();
	}


	public double[] getValues()
	{
		return values;
	}

	public String toString()
	{
        String r = "[";
        
        for (int i=0; i<values.length; i++)
        {
            r += " "+str[i]+ "=" + values[i] +" ";
        }
        r += "]";
		return r;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -