Package pivot.wtk

Examples of pivot.wtk.Insets


    /**
     * Sets the padding that will be reserved around the table pane during
     * layout.
     */
    public final void setPadding(int padding) {
        setPadding(new Insets(padding));
    }
View Full Code Here


    public final void setPadding(Dictionary<String, ?> padding) {
        if (padding == null) {
            throw new IllegalArgumentException("padding is null.");
        }

        setPadding(new Insets(padding));
    }
View Full Code Here

        int columnCount = columns.getLength();

        int[] columnWidths = new int[columnCount];
        boolean[] defaultWidthColumns = new boolean[columnCount];

        Insets padding = (Insets)tablePane.getStyles().get("padding");
        int horizontalSpacing = (Integer)tablePane.getStyles().get("horizontalSpacing");

        int reservedWidth = padding.left + padding.right +
            Math.max(columnCount - 1, 0) * horizontalSpacing;
        int totalRelativeWeight = 0;
View Full Code Here

        int columnCount = tablePane.getColumns().getLength();

        int rowHeights[] = new int[rowCount];
        boolean[] defaultHeightRows = new boolean[rowCount];

        Insets padding = (Insets)tablePane.getStyles().get("padding");
        int verticalSpacing = (Integer)tablePane.getStyles().get("verticalSpacing");

        int reservedHeight = padding.top + padding.bottom +
            Math.max(rowCount - 1, 0) * verticalSpacing;
        int totalRelativeWeight = 0;
View Full Code Here

        titleBarBackgroundColor = theme.getColor(10);
        titleBarBorderColor = theme.getColor(7);
        shadeButtonColor = theme.getColor(7);
        shadeButtonBackgroundColor = theme.getColor(4);
        borderColor = theme.getColor(7);
        padding = new Insets(4);

        // Set the derived colors
        titleBarBevelColor = TerraTheme.brighten(titleBarBackgroundColor);

        titleBarFlowPane = new FlowPane(Orientation.HORIZONTAL);
        titleBarFlowPane.getComponentMouseButtonListeners().add(titleBarMouseHandler);

        titleBarFlowPane.getStyles().put("horizontalAlignment", HorizontalAlignment.JUSTIFY);
        titleBarFlowPane.getStyles().put("verticalAlignment", VerticalAlignment.CENTER);
        titleBarFlowPane.getStyles().put("padding", new Insets(3));
        titleBarFlowPane.getStyles().put("spacing", 3);

        titleFlowPane = new FlowPane(Orientation.HORIZONTAL);
        titleFlowPane.getStyles().put("horizontalAlignment", HorizontalAlignment.LEFT);
View Full Code Here

    public final void setPadding(Dictionary<String, ?> padding) {
        if (padding == null) {
            throw new IllegalArgumentException("padding is null.");
        }

        setPadding(new Insets(padding));
    }
View Full Code Here

        setPadding(new Insets(padding));
    }

    public final void setPadding(int padding) {
        setPadding(new Insets(padding));
    }
View Full Code Here

        disabledColor = theme.getColor(7);
        backgroundColor = theme.getColor(10);
        disabledBackgroundColor = theme.getColor(10);
        borderColor = theme.getColor(7);
        disabledBorderColor = theme.getColor(7);
        padding = new Insets(2, 3, 2, 3);
        preferredAspectRatio = Float.NaN;
        toolbar = false;

        // Set the derived colors
        bevelColor = TerraTheme.brighten(backgroundColor);
View Full Code Here

    public final void setPadding(Dictionary<String, ?> padding) {
        if (padding == null) {
            throw new IllegalArgumentException("padding is null.");
        }

        setPadding(new Insets(padding));
    }
View Full Code Here

        setPadding(new Insets(padding));
    }

    public final void setPadding(int padding) {
        setPadding(new Insets(padding));
    }
View Full Code Here

TOP

Related Classes of pivot.wtk.Insets

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.