Package org.apache.isis.viewer.dnd.drawing

Examples of org.apache.isis.viewer.dnd.drawing.Shape.addPoint()


    private void drawOrderIndicator(final Canvas canvas, final TableAxis axis, final int x) {
        Shape arrow;
        arrow = new Shape();
        if (((CollectionContent) getContent()).getReverseSortOrder()) {
            arrow.addPoint(0, 7);
            arrow.addPoint(3, 0);
            arrow.addPoint(6, 7);
        } else {
            arrow.addPoint(0, 0);
            arrow.addPoint(6, 0);
View Full Code Here


    private void drawOrderIndicator(final Canvas canvas, final TableAxis axis, final int x) {
        Shape arrow;
        arrow = new Shape();
        if (((CollectionContent) getContent()).getReverseSortOrder()) {
            arrow.addPoint(0, 7);
            arrow.addPoint(3, 0);
            arrow.addPoint(6, 7);
        } else {
            arrow.addPoint(0, 0);
            arrow.addPoint(6, 0);
            arrow.addPoint(3, 7);
View Full Code Here

        Shape arrow;
        arrow = new Shape();
        if (((CollectionContent) getContent()).getReverseSortOrder()) {
            arrow.addPoint(0, 7);
            arrow.addPoint(3, 0);
            arrow.addPoint(6, 7);
        } else {
            arrow.addPoint(0, 0);
            arrow.addPoint(6, 0);
            arrow.addPoint(3, 7);
        }
View Full Code Here

        if (((CollectionContent) getContent()).getReverseSortOrder()) {
            arrow.addPoint(0, 7);
            arrow.addPoint(3, 0);
            arrow.addPoint(6, 7);
        } else {
            arrow.addPoint(0, 0);
            arrow.addPoint(6, 0);
            arrow.addPoint(3, 7);
        }
        // canvas.drawRectangle(x + axis.getColumnWidth(i) - 10, 3, 7, 8,
        // Toolkit.getColor("secondary3"));
View Full Code Here

            arrow.addPoint(0, 7);
            arrow.addPoint(3, 0);
            arrow.addPoint(6, 7);
        } else {
            arrow.addPoint(0, 0);
            arrow.addPoint(6, 0);
            arrow.addPoint(3, 7);
        }
        // canvas.drawRectangle(x + axis.getColumnWidth(i) - 10, 3, 7, 8,
        // Toolkit.getColor("secondary3"));
        canvas.drawShape(arrow, x, 3, Toolkit.getColor(ColorsAndFonts.COLOR_SECONDARY2));
View Full Code Here

            arrow.addPoint(3, 0);
            arrow.addPoint(6, 7);
        } else {
            arrow.addPoint(0, 0);
            arrow.addPoint(6, 0);
            arrow.addPoint(3, 7);
        }
        // canvas.drawRectangle(x + axis.getColumnWidth(i) - 10, 3, 7, 8,
        // Toolkit.getColor("secondary3"));
        canvas.drawShape(arrow, x, 3, Toolkit.getColor(ColorsAndFonts.COLOR_SECONDARY2));
    }
View Full Code Here

    @Override
    public void draw(final Canvas canvas) {
        Shape pointer;
        if (isOpen) {
            pointer = new Shape(0, left / 2);
            pointer.addPoint(left - 2 - 2, left / 2);
            pointer.addPoint(left / 2 - 2, left - 2);
        } else {
            pointer = new Shape(2, 2);
            pointer.addPoint(2, left - 2);
            pointer.addPoint(left / 2, 2 + (left - 2) / 2);
View Full Code Here

    public void draw(final Canvas canvas) {
        Shape pointer;
        if (isOpen) {
            pointer = new Shape(0, left / 2);
            pointer.addPoint(left - 2 - 2, left / 2);
            pointer.addPoint(left / 2 - 2, left - 2);
        } else {
            pointer = new Shape(2, 2);
            pointer.addPoint(2, left - 2);
            pointer.addPoint(left / 2, 2 + (left - 2) / 2);
        }
View Full Code Here

            pointer = new Shape(0, left / 2);
            pointer.addPoint(left - 2 - 2, left / 2);
            pointer.addPoint(left / 2 - 2, left - 2);
        } else {
            pointer = new Shape(2, 2);
            pointer.addPoint(2, left - 2);
            pointer.addPoint(left / 2, 2 + (left - 2) / 2);
        }
        if (canOpen == CAN_OPEN) {
            canvas.drawSolidShape(pointer, Toolkit.getColor(ColorsAndFonts.COLOR_PRIMARY1));
        } else if (canOpen == UNKNOWN) {
View Full Code Here

            pointer.addPoint(left - 2 - 2, left / 2);
            pointer.addPoint(left / 2 - 2, left - 2);
        } else {
            pointer = new Shape(2, 2);
            pointer.addPoint(2, left - 2);
            pointer.addPoint(left / 2, 2 + (left - 2) / 2);
        }
        if (canOpen == CAN_OPEN) {
            canvas.drawSolidShape(pointer, Toolkit.getColor(ColorsAndFonts.COLOR_PRIMARY1));
        } else if (canOpen == UNKNOWN) {
            canvas.drawShape(pointer, Toolkit.getColor(ColorsAndFonts.COLOR_PRIMARY1));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.