double v = axis.valueToJava2D(value, dataArea, plot.getDomainAxisEdge()); if (orientation.isHorizontal()) { line = new Line2D.Double(dataArea.getMinX(), v, dataArea.getMaxX(), v);
if (this.orientation.isHorizontal()) { sourceY = source.getX();
/** * Draws the bar for one item in the dataset. * * @param g2 the graphics device. * @param state the renderer state. * @param dataArea the plot area. * @param plot the plot. * @param domainAxis the domain (category) axis. * @param rangeAxis the range (value) axis. * @param data the data. * @param row the row index (zero-based). * @param column the column index (zero-based). * @param pass the pass index. */ @Override public void drawItem(Graphics2D g2, CategoryItemRendererState state, Rectangle2D dataArea, CategoryPlot plot, CategoryAxis domainAxis, ValueAxis rangeAxis, CategoryDataset data, int row, int column, int pass) { PlotOrientation orientation = plot.getOrientation(); if (orientation.isHorizontal()) { drawHorizontalItem(g2, state, dataArea, plot, domainAxis, rangeAxis, data, row, column); } else if (orientation.isVertical()) { drawVerticalItem(g2, state, dataArea, plot, domainAxis, rangeAxis, data, row, column); } }
if (orientation.isHorizontal()) { boolean inverted = rangeAxis.isInverted(); RectangleEdge barBase; if (orientation.isHorizontal()) { if (positive && inverted || !positive && !inverted) { barBase = RectangleEdge.RIGHT;
if (orientation.isHorizontal()) { space = dataArea.getHeight(); } else {
if (plot.getOrientation().isVertical()) { moveTo(areaState.area, transX1, zero); } else if (plot.getOrientation().isHorizontal()) { moveTo(areaState.area, zero, transX1); } else if (plot.getOrientation().isHorizontal()) { lineTo(areaState.area, transY1, transX1);
if (this.orientation.isHorizontal()) { space.ensureAtLeast(this.fixedRangeAxisSpace.getTop(), RectangleEdge.TOP);
if (orientation.isHorizontal()) { x = barL; y = barW0 + state.getBarWidth() / 2.0;
if (this.orientation.isHorizontal()) { space.ensureAtLeast( this.fixedDomainAxisSpace.getLeft(), RectangleEdge.LEFT);