Package ca.nengo.ui.configurable.descriptors

Examples of ca.nengo.ui.configurable.descriptors.PInt


     * @param dimension TODO
     * @param isEditable TODO
     */
    public FnConstant(int dimension, boolean isEditable) {
        super("Constant Function", ConstantFunction.class);
        pDimension = new PInt("Input Dimension", dimension);
        pDimension.setEditable(isEditable);
    }
View Full Code Here


                dim = function.getDimension();
            }
        }

        pExpression = new PString(EXPRESSION_STR, EXPRESSION_DESC, expression);
        pDimensions = new PInt(DIMENSION_STR, DIMENSION_DESC, dim);
        pDimensions.setEditable(isInputDimEditable);

        Property[] props = new Property[] { pExpression, pDimensions };
        return new ConfigSchemaImpl(props);
    }
View Full Code Here

     * @return TODO
     * @throws ConfigException TODO
     */
    public static Integer showDialogInteger(String dialogName, int defaultValue)
            throws ConfigException {
        return (Integer) showDialog("Config", new PInt(dialogName, defaultValue));
    }
View Full Code Here

        private int NSV = -1;

        private void configure() {
            try {
                Property pNoiseLevel = new PFloat("Noise level", "Ratio of the noise amplitude to the signal amplitude", noiseLevel);
                Property pNSV = new PInt("Number of Singular Values", NSV);
                ConfigResult result = UserConfigurer.configure(
                        new Property[] { pNoiseLevel, pNSV }, TYPE_NAME, this.getDialogParent(),
                        ConfigMode.STANDARD);

                noiseLevel = (Float) result.getValue(pNoiseLevel);
View Full Code Here

    @Override
    protected void action() throws ActionException {
        try {
            PFloat pTauFilter = new PFloat("Time constant of display filter [0 = off]", tauFilter);
            PInt pSubSampling = new PInt("Subsampling [0 = off]", subSampling);

            if (showUserConfigDialog) {
                ConfigResult result;
                try {
                    result = UserConfigurer.configure(new Property[] { pTauFilter, pSubSampling },
View Full Code Here

    }

    @Override
    protected void action() throws ActionException {
        pFunctionIndex = new PInt("Function index", 0, 0, functionInput
                .getFunctions().length - 1);
        Property[] propDescripters = { pFunctionIndex, pStart,
                pIncrement, pEnd };
        try {
            ConfigResult properties = ConfigManager.configure(propDescripters,
View Full Code Here

TOP

Related Classes of ca.nengo.ui.configurable.descriptors.PInt

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.