Package net.sourceforge.ganttproject.shape

Examples of net.sourceforge.ganttproject.shape.ShapePaint


            while (st1.hasMoreTokens()) {
                token = st1.nextToken();
                array[count] = (new Integer(token)).intValue();
                count++;
            }
            task.setShape(new ShapePaint(4, 4, array, Color.white, task
                    .getColor()));
        }

        getManager().registerTask(task);
        TaskContainmentHierarchyFacade taskHierarchy = getManager()
View Full Code Here


                returnTask[i].setColor(colorButton.getBackground());
            if ((((this.taskShape == null) && (shapeComboBox.getSelectedIndex() != 0)))
                    || ((this.taskShape != null) && (!this.taskShape
                            .equals((ShapePaint) shapeComboBox
                                    .getSelectedPaint()))))
                returnTask[i].setShape(new ShapePaint(
                        (ShapePaint) shapeComboBox.getSelectedPaint(),
                        Color.white, returnTask[i].getColor()));
            if (returnTask[i].getShape() != null)
                returnTask[i].setShape(new ShapePaint(returnTask[i].getShape(),
                        Color.white, returnTask[i].getColor()));

            mutator.commit();
            if (onlyOneTask) {
                myDependenciesPanel.getTableModel().commit();
View Full Code Here

            if (c==null) {
                c = getDefaultColor();
            }
            Graphics2D g = (Graphics2D) myGraphics;
            g.setColor(c);
            ShapePaint shapePaint = task.getShape();
            if (myConfig.isCriticalPathOn() && task.isCritical()) {
                shapePaint = new ShapePaint(ShapeConstants.THICK_BACKSLASH,
                        Color.BLACK, c);
            }
           
            if (shapePaint!=null) {
                g.setPaint(shapePaint);
View Full Code Here

TOP

Related Classes of net.sourceforge.ganttproject.shape.ShapePaint

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.