/** * Returns {@code true} if this orientation is {@code HORIZONTAL}, * and {@code false} otherwise. * * @return A boolean. * * @since 1.0.18 */ public boolean isHorizontal() { return this.equals(PlotOrientation.HORIZONTAL); }
/** * Returns {@code true} if this orientation is {@code VERTICAL}, * and {@code false} otherwise. * * @return A boolean. * * @since 1.0.18 */ public boolean isVertical() { return this.equals(PlotOrientation.VERTICAL); }
/** * Ensures that serialization returns the unique instances. * * @return The object. * * @throws ObjectStreamException if there is a problem. */ private Object readResolve() throws ObjectStreamException { Object result = null; if (this.equals(PlotOrientation.HORIZONTAL)) { result = PlotOrientation.HORIZONTAL; } else if (this.equals(PlotOrientation.VERTICAL)) { result = PlotOrientation.VERTICAL; } return result; }
boolean isVertical = this.plotOrientation.equals( PlotOrientation.VERTICAL); int index = isVertical ? ORIENTATION_VERTICAL
boolean isVertical = this.plotOrientation.equals( PlotOrientation.VERTICAL); int index = isVertical ? ORIENTATION_VERTICAL
Rectangle2D block; PlotOrientation orientation = plot.getOrientation(); if (orientation.equals(PlotOrientation.HORIZONTAL)) { block = new Rectangle2D.Double(Math.min(yy0, yy1), Math.min(xx0, xx1), Math.abs(yy1 - yy0),
Line2D line; PlotOrientation orientation = plot.getOrientation(); if (orientation.equals(PlotOrientation.HORIZONTAL)) { line = new Line2D.Double(yy0, xx0, yy1, xx1);
Line2D line; PlotOrientation orientation = plot.getOrientation(); if (orientation.equals(PlotOrientation.HORIZONTAL)) { line = new Line2D.Double(yy0, xx0, yy1, xx1);
Rectangle2D block; PlotOrientation orientation = plot.getOrientation(); if (orientation.equals(PlotOrientation.HORIZONTAL)) { block = new Rectangle2D.Double(Math.min(yy0, yy1), Math.min(xx0, xx1), Math.abs(yy1 - yy0),
GCategoryPlot plot = new GCategoryPlot(); plot.setOrientation(orientation); if (orientation.equals(PlotOrientation.HORIZONTAL)) { plot.setColumnRenderingOrder(SortOrder.DESCENDING);