line = new Line2D.Double(dataArea.getMinX(), v, dataArea.getMaxX(), v); } else if (orientation.isVertical()) { line = new Line2D.Double(v, dataArea.getMinY(), v, dataArea.getMaxY());
/** * 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 (plot.getOrientation().isVertical()) { moveTo(areaState.area, transX1, zero); } else if (plot.getOrientation().isHorizontal()) { if (plot.getOrientation().isVertical()) { lineTo(areaState.area, transX1, transY1); } else if (plot.getOrientation().isHorizontal()) {
bar = new Rectangle2D.Double( bottom, left, top - bottom, translatedWidth); } else if (orientation.isVertical()) {
rectWidth = Math.abs(java2dValue1 - java2dValue0); barBase = RectangleEdge.LEFT; } else if (orientation.isVertical()) {
space.ensureAtLeast(this.fixedDomainAxisSpace.getRight(), RectangleEdge.RIGHT); } else if (this.orientation.isVertical()) { space.ensureAtLeast(this.fixedDomainAxisSpace.getTop(), RectangleEdge.TOP);