Examples of ChartItem


Examples of net.sourceforge.ganttproject.chart.item.ChartItem

        return null;
    }

    public ChartItem getChartItemWithCoordinates(int x, int y) {
      y = y + getVerticalOffset();
        ChartItem result = findTaskProgressItem(x, y);
        if (result == null) {
            result = findTaskBoundaryItem(x, y);
        }
        return result;
    }
View Full Code Here

Examples of net.sourceforge.ganttproject.chart.item.ChartItem

        }
        return result;
    }

    private ChartItem findTaskProgressItem(int x, int y) {
        ChartItem result = null;
        GraphicPrimitiveContainer.GraphicPrimitive primitive = myTaskRendererImpl
                .getPrimitiveContainer().getLayer(1).getPrimitive(x, 4,
                        y - getChartUIConfiguration().getHeaderHeight(), 0);
        if (primitive instanceof GraphicPrimitiveContainer.Rectangle) {
            GraphicPrimitiveContainer.Rectangle rect = (GraphicPrimitiveContainer.Rectangle) primitive;
View Full Code Here

Examples of net.sourceforge.ganttproject.chart.item.ChartItem

        }
        return result;
    }

    private ChartItem findTaskBoundaryItem(int x, int y) {
        ChartItem result = null;
        GraphicPrimitiveContainer.GraphicPrimitive primitive = myTaskRendererImpl
                .getPrimitiveContainer().getPrimitive(x,
                        y - getChartUIConfiguration().getHeaderHeight());
        if (primitive==null) {
            primitive = myTaskRendererImpl.getPrimitiveContainer().getLayer(2).getPrimitive(x, y-getChartUIConfiguration().getHeaderHeight());
View Full Code Here

Examples of net.sourceforge.ganttproject.chart.item.ChartItem

    class MouseSupport {
        protected Task findTaskUnderMousePointer(int xpos, int ypos) {
            // int taskID = detectPosition(xpos, ypos, false);
            // return taskID==-1 ? null : getTaskManager().getTask(taskID);
            ChartItem chartItem = myChartModel.getChartItemWithCoordinates(
                    xpos, ypos);
            return chartItem == null ? null : chartItem.getTask();
        }
View Full Code Here

Examples of net.sourceforge.ganttproject.chart.item.ChartItem

                    xpos, ypos);
            return chartItem == null ? null : chartItem.getTask();
        }

        protected ChartItem getChartItemUnderMousePoint(int xpos, int ypos) {
            ChartItem result = myChartModel.getChartItemWithCoordinates(xpos,
                    ypos);
            return result;
        }
View Full Code Here

Examples of net.sourceforge.ganttproject.chart.item.ChartItem

            return result;
        }

        protected void processLeftButton(MouseEvent e) {
            boolean isMineEvent = true;
            ChartItem itemUnderPoint = myMouseSupport.getChartItemUnderMousePoint(e.getX(), e.getY());
            if (itemUnderPoint instanceof TaskBoundaryChartItem) {
                TaskBoundaryChartItem taskBoundary = (TaskBoundaryChartItem) itemUnderPoint;
                if (taskBoundary.isStartBoundary()) {
                    getChartImplementation().beginChangeTaskStartInteraction(e, taskBoundary);
                }
View Full Code Here

Examples of net.sourceforge.ganttproject.chart.item.ChartItem

        }

        // Move the move on the area
        public void mouseMoved(MouseEvent e) {
            ChartItem itemUnderPoint = myMouseSupport
                    .getChartItemUnderMousePoint(e.getX(), e.getY());
            Task taskUnderPoint = itemUnderPoint == null ? null
                    : itemUnderPoint.getTask();
            // System.err.println("[OldMouseMotionListenerImpl] mouseMoved:
            // taskUnderPoint="+taskUnderPoint);
            if (taskUnderPoint == null) {
                setDefaultCursor();
            } else {
View Full Code Here

Examples of net.sourceforge.processdash.ev.ui.TaskScheduleChartUtil.ChartItem

        List<ChartItem> chartList = TaskScheduleChartUtil.getChartsForTaskList(
            evModel.getID(), getDataRepository(), filterInEffect, isRollup,
            hideNames, p);

        for (Iterator i = chartList.iterator(); i.hasNext();) {
            ChartItem chart = (ChartItem) i.next();
            if (chart == null) {
                i.remove();
                continue;
            }
            try {
View Full Code Here

Examples of org.maltparserx.core.flow.item.ChartItem

   

  }
 
  protected ChartItem initChartItem(ChartItemSpecification chartItemSpecification) throws MaltChainedException {
    ChartItem chartItem = null;
    try {
      chartItem = chartItemSpecification.getChartItemClass().newInstance();
      chartItem.initialize(this, chartItemSpecification);
    } catch (InstantiationException e) {
      throw new FlowException("The chart item '"+chartItemSpecification.getChartItemName()+"' could not be created. ", e);
    } catch (IllegalAccessException e) {
      throw new FlowException("The chart item '"+chartItemSpecification.getChartItemName()+"' could not be created. ", e);
    }
View Full Code Here

Examples of synalp.generation.ChartItem

    HashMap<ChartItem, String> ret = new HashMap<ChartItem, String>();
    BufferedWriter testfile = new BufferedWriter(new FileWriter(
        TEST_FILENAME));
    int chartitemsize = chartitems.size();
    for (int i = 0; i < chartitemsize; i++) {
      ChartItem temp = chartitems.get(i);
      String sentence = Utils.print(temp.getLemmas(), " ");
      testfile.write(sentence);
      testfile.newLine();
      ret.put(temp, sentence);
    }
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.