Package fr.soleil.salsa.view.tool

Examples of fr.soleil.salsa.view.tool.Axis


        boolean valueChanged = false;

        if (event.getType() == TableModelEvent.UPDATE) {
            if (column != -1 && row != -1) {
                String choosedAxisValue = mainTable.getValueAt(row, column).toString();
                Axis newAxis;
                if (choosedAxisValue.equals("")) {
                    newAxis = null;
                    if (datasList.get(row).getAxis() != newAxis) {
                        valueChanged = true;
                        datasList.get(row).setAxis(newAxis);
View Full Code Here


     *
     * @param axis
     * @return
     */
    public Axis convertAxis(DisplayAxis axis) {
        Axis result = null;
        if (axis != null) {
            switch (axis) {
                case X:
                    result = Axis.X;
                    break;
View Full Code Here

        int column = event.getColumn();

        if (event.getType() == TableModelEvent.UPDATE) {
            if (column != -1 && row != -1) {
                String choosedAxisValue = mainTable.getValueAt(row, column).toString();
                Axis newAxis;
                if (choosedAxisValue.equals("")) {
                    newAxis = null;
                    datasList.get(row).setDefaultAxis1D(newAxis);
                    if (display != null && datasList != null) {
                        notifyController();
                    }
                    return;
                }
                else {
                    newAxis = Axis.valueOf(choosedAxisValue);
                }
                if (display.getType().equals(Display.Type.TYPE_1D) && newAxis != null) {
                    if (newAxis.equals(Axis.X)) {
                        for (Data data : datasList) {
                            if (display.getDataAxis(data) != null) {
                                if (display.getDataAxis(data).equals(newAxis)
                                        && datasList.indexOf(data) != row) {
                                    data.setDefaultAxis1D(null);
View Full Code Here

        boolean valueChanged = false;

        if (event.getType() == TableModelEvent.UPDATE) {
            if (column != -1 && row != -1) {
                String choosedAxisValue = mainTable.getValueAt(row, column).toString();
                Axis newAxis;
                if (choosedAxisValue.equals("")) {
                    newAxis = null;
                    if (datasList.get(row).getAxis() != newAxis) {
                        valueChanged = true;
                        datasList.get(row).setAxis(newAxis);
View Full Code Here

     *
     * @param axis
     * @return
     */
    public Axis convertAxis(DisplayAxis axis) {
        Axis result = null;
        if (axis != null) {
            switch (axis) {
                case X:
                    result = Axis.X;
                    break;
View Full Code Here

            }
            else {
                // If no display is recorded, this is the default behavior.
                List<ISensor> sensorsList = useConfig ? config.getSensorsList() : scanResult
                        .getSensorsList();
                Axis axis = null;
                for (ISensor sensor : sensorsList) {
                    if (sensor.isEnabled()) {
                        Data tempData = new Data();
                        tempData.setName(sensor.getName().toLowerCase());
                        if (!isConfig2D) {
View Full Code Here

     *
     * @param axis
     * @return
     */
    public Axis convertAxis(DisplayAxis axis) {
        Axis result = null;
        if (axis != null) {
            switch (axis) {
                case X:
                    result = Axis.X;
                    break;
View Full Code Here

        boolean valueChanged = false;

        if (event.getType() == TableModelEvent.UPDATE) {
            if (column != -1 && row != -1) {
                String choosedAxisValue = mainTable.getValueAt(row, column).toString();
                Axis newAxis;
                if (choosedAxisValue.equals("")) {
                    newAxis = null;
                    if (datasList.get(row).getAxis() != newAxis) {
                        valueChanged = true;
                        datasList.get(row).setAxis(newAxis);
View Full Code Here

     *
     * @param axis
     * @return
     */
    public Axis convertAxis(DisplayAxis axis) {
        Axis result = null;
        if (axis != null) {
            switch (axis) {
                case X:
                    result = Axis.X;
                    break;
View Full Code Here

        int column = event.getColumn();

        if (event.getType() == TableModelEvent.UPDATE) {
            if (column != -1 && row != -1) {
                String choosedAxisValue = mainTable.getValueAt(row, column).toString();
                Axis newAxis;
                if (choosedAxisValue.equals("")) {
                    newAxis = null;
                    datasList.get(row).setAxis(newAxis);
                    if (display != null && datasList != null) {
                        notifyController();
                    }
                    return;
                }
                else {
                    newAxis = Axis.valueOf(choosedAxisValue);
                }
                if (display.getType().equals(Display.Type.TYPE_1D) && newAxis != null) {
                    if (newAxis.equals(Axis.X)) {
                        for (Data data : datasList) {
                            if (display.getDataAxis(data) != null) {
                                if (display.getDataAxis(data).equals(newAxis)
                                        && datasList.indexOf(data) != row) {
                                    data.setAxis(null);
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.view.tool.Axis

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.