congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
PlotOrientation
Code IndexAdd Tabnine to your IDE (free)

How to use
PlotOrientation
in
org.jfree.chart.plot

Best Java code snippets using org.jfree.chart.plot.PlotOrientation (Showing top 20 results out of 315)

origin: jfree/jfreechart

/**
 * 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);
}
 
origin: jfree/jfreechart

/**
 * 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);
  }
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Returns <code>true</code> if this object is equal to the specified
 * object, and <code>false</code> otherwise.
 *
 * @param obj  the object (<code>null</code> permitted).
 *
 * @return A boolean.
 */
public boolean equals(Object obj) {
  if (this == obj) {
    return true;
  }
  if (!(obj instanceof PlotOrientation)) {
    return false;
  }
  PlotOrientation orientation = (PlotOrientation) obj;
  if (!this.name.equals(orientation.toString())) {
    return false;
  }
  return true;
}
origin: jfree/jfreechart

if (this.orientation.isHorizontal()) {
  sourceY = source.getX();
origin: jfree/jfreechart

  rectWidth = Math.abs(java2dValue1 - java2dValue0);
  barBase = RectangleEdge.LEFT;
} else if (orientation.isVertical()) {
origin: jfree/jfreechart

if (orientation.isHorizontal()) {
  space = dataArea.getHeight();
} else {
origin: jfree/jfreechart

/**
 * 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);
}
origin: jfree/jfreechart

double v = axis.valueToJava2D(value, dataArea, 
    plot.getDomainAxisEdge());
if (orientation.isHorizontal()) {
  line = new Line2D.Double(dataArea.getMinX(), v, dataArea.getMaxX(),
      v);
} else if (orientation.isVertical()) {
  line = new Line2D.Double(v, dataArea.getMinY(), v,
      dataArea.getMaxY());
origin: jfree/jfreechart

if (this.orientation.isHorizontal()) {
  space.ensureAtLeast(this.fixedRangeAxisSpace.getTop(),
      RectangleEdge.TOP);
origin: org.codehaus.jtstand/jtstand-chart

/**
 * 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;
}
origin: jfree/jfreechart

if (orientation.isHorizontal()) {
  bar = new Rectangle2D.Double(
    bottom, left, top - bottom, translatedWidth);
} else if (orientation.isVertical()) {
boolean inverted = rangeAxis.isInverted();
RectangleEdge barBase;
if (orientation.isHorizontal()) {
  if (positive && inverted || !positive && !inverted) {
    barBase = RectangleEdge.RIGHT;
origin: jfree/jfreechart

if (orientation.isHorizontal()) {
  x = barL;
  y = barW0 + state.getBarWidth() / 2.0;
origin: jfree/jfreechart

boolean isVertical = this.plotOrientation.equals(
    PlotOrientation.VERTICAL);
int index = isVertical ? ORIENTATION_VERTICAL
origin: jfree/jfreechart

  if (plot.getOrientation().isVertical()) {
    moveTo(areaState.area, transX1, zero);
  } else if (plot.getOrientation().isHorizontal()) {
    moveTo(areaState.area, zero, transX1);
if (plot.getOrientation().isVertical()) {
  lineTo(areaState.area, transX1, transY1);
} else if (plot.getOrientation().isHorizontal()) {
  lineTo(areaState.area, transY1, transX1);
origin: org.codehaus.jtstand/jtstand-chart

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),
origin: jfree/jfreechart

if (this.orientation.isHorizontal()) {
  space.ensureAtLeast(
    this.fixedDomainAxisSpace.getLeft(), RectangleEdge.LEFT);
  space.ensureAtLeast(this.fixedDomainAxisSpace.getRight(),
      RectangleEdge.RIGHT);
} else if (this.orientation.isVertical()) {
  space.ensureAtLeast(this.fixedDomainAxisSpace.getTop(),
      RectangleEdge.TOP);
origin: org.codehaus.jtstand/jtstand-chart

boolean isVertical = this.plotOrientation.equals(
    PlotOrientation.VERTICAL);
int index = isVertical ? ORIENTATION_VERTICAL
origin: jfree/jfreechart

Line2D line;
PlotOrientation orientation = plot.getOrientation();
if (orientation.equals(PlotOrientation.HORIZONTAL)) {
  line = new Line2D.Double(yy0, xx0, yy1, xx1);
origin: org.codehaus.jtstand/jtstand-chart

Line2D line;
PlotOrientation orientation = plot.getOrientation();
if (orientation.equals(PlotOrientation.HORIZONTAL)) {
  line = new Line2D.Double(yy0, xx0, yy1, xx1);
origin: jfree/jfreechart

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),
org.jfree.chart.plotPlotOrientation

Javadoc

Used to indicate the orientation (horizontal or vertical) of a 2D plot. It is the direction of the y-axis that is the determinant (a conventional plot has a vertical y-axis).

Most used methods

  • equals
    Returns true if this object is equal to the specified object, and false otherwise.
  • isHorizontal
    Returns true if this orientation is HORIZONTAL, and false otherwise.
  • isVertical
    Returns true if this orientation is VERTICAL, and false otherwise.
  • toString
    Returns a string representing the object.

Popular in Java

  • Creating JSON documents from java classes using gson
  • findViewById (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getContentResolver (Context)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Join (org.hibernate.mapping)
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now