Package net.sourceforge.ganttproject.chart

Examples of net.sourceforge.ganttproject.chart.ChartModel


            implements ChartImplementation {

        public void paintComponent(Graphics g, List/*<Task>*/ visibleTasks) {
          synchronized(ChartModelBase.STATIC_MUTEX) {
              GanttGraphicArea.super.paintComponent(g);
              ChartModel model = myChartModel;
              model.setTaskContainment(appli.getTaskContainment());
              // model.setBounds(getSize());
              // System.err.println("[NewChartComponentImpl] paintComponent. unit
              // width="+getViewState().getBottomUnitWidth());
              model.setBottomUnitWidth(getViewState().getBottomUnitWidth());
              model.setRowHeight(((GanttTree2) tree).getTreeTable()
                      .getRowHeight());
              model.setTopTimeUnit(getViewState().getTopTimeUnit());
              model.setBottomTimeUnit(getViewState().getBottomTimeUnit());
              model.setVisibleTasks(visibleTasks);
              model.paint(g);
              if (getActiveInteraction() != null) {
                  getActiveInteraction().paint(g);
              }
          }
        }
View Full Code Here


        }

        public void paintComponent(Graphics g) {
          synchronized(ChartModelBase.STATIC_MUTEX) {
              GanttGraphicArea.super.paintComponent(g);
              ChartModel model = myChartModel;
              model.setTaskContainment(appli.getTaskContainment());
              // model.setBounds(getSize());
              // System.err.println("[NewChartComponentImpl] paintComponent. unit
              // width="+getViewState().getBottomUnitWidth());
              model.setBottomUnitWidth(getViewState().getBottomUnitWidth());
              model.setRowHeight(((GanttTree2) tree).getTreeTable()
                      .getRowHeight());
              model.setTopTimeUnit(getViewState().getTopTimeUnit());
              model.setBottomTimeUnit(getViewState().getBottomTimeUnit());
              VisibleNodesFilter visibleNodesFilter = new VisibleNodesFilter();
              List visibleTasks = visibleNodesFilter.getVisibleNodes(tree
                      .getJTree(), getScrollBar(), getHeight(), tree
                      .getTreeTable().getRowHeight());
              model.setVisibleTasks(visibleTasks);
                //myChartModel.setExplicitlyHiddenTasks(tree.getHiddenTasks());
                model.setVerticalOffset(getScrollBar() % tree.getTreeTable().getRowHeight());
              model.paint(g);
              if (getActiveInteraction() != null) {
                  getActiveInteraction().paint(g);
              }
          }
        }
View Full Code Here

TOP

Related Classes of net.sourceforge.ganttproject.chart.ChartModel

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.