Package net.sourceforge.ganttproject.chart.GraphicPrimitiveContainer

Examples of net.sourceforge.ganttproject.chart.GraphicPrimitiveContainer.Line


//                        curX, getLineTopPosition(), curX, getLineTopPosition()+10);
//                firstWeekendDay = true;
//            }

            if (curDate.equals(myToday) && myRedlineOption.isChecked()) {
                Line redLine = getPrimitiveContainer().createLine(
                        curX+2, getLineBottomPosition()+1, curX+2, getHeight());
                redLine.setForegroundColor(Color.RED);
            }
            if ((curDate.equals(getChartModel().getTaskManager().getProjectStart()) ||
                    curDate.equals(getChartModel().getTaskManager().getProjectEnd())) &&
                isProjectBoundariesOptionOn()) {
                Line blueLine = getPrimitiveContainer().createLine(
                        curX, getLineBottomPosition()+1, curX, getHeight());
                blueLine.setForegroundColor(Color.BLUE);
            }

            curX = nextOffset.getOffsetPixels();
            curDate = nextOffset.getOffsetEnd();
            //System.err.println("curDate="+curDate+" curX="+curX);
View Full Code Here


        }
        else if (unitStart.equals(lineDate)) {
            redLineOffset=0;
        }
        if (redLineOffset>=0) {
            Line redLine = getPrimitiveContainer().createLine(myPosX + redLineOffset+horizontalOffset,
                    0, myPosX + redLineOffset+horizontalOffset, getHeight());
            redLine.setForegroundColor(color);
        }
       
    }
View Full Code Here

TOP

Related Classes of net.sourceforge.ganttproject.chart.GraphicPrimitiveContainer.Line

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.