org.jfree.chart.renderer.AreaRendererEndType Java Examples

The following examples show how to use org.jfree.chart.renderer.AreaRendererEndType. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AreaRendererTest.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Check that the equals() method distinguishes all fields.
 */
@Test
public void testEquals() {
    AreaRenderer r1 = new AreaRenderer();
    AreaRenderer r2 = new AreaRenderer();
    assertEquals(r1, r2);

    r1.setEndType(AreaRendererEndType.LEVEL);
    assertFalse(r1.equals(r2));
    r2.setEndType(AreaRendererEndType.LEVEL);
    assertTrue(r1.equals(r2));
}
 
Example #2
Source File: AreaRendererTest.java    From ccu-historian with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Check that the equals() method distinguishes all fields.
 */
@Test
public void testEquals() {
    AreaRenderer r1 = new AreaRenderer();
    AreaRenderer r2 = new AreaRenderer();
    assertEquals(r1, r2);

    r1.setEndType(AreaRendererEndType.LEVEL);
    assertFalse(r1.equals(r2));
    r2.setEndType(AreaRendererEndType.LEVEL);
    assertTrue(r1.equals(r2));
}
 
Example #3
Source File: AreaRendererTest.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Check that the equals() method distinguishes all fields.
 */
@Test
public void testEquals() {
    AreaRenderer r1 = new AreaRenderer();
    AreaRenderer r2 = new AreaRenderer();
    assertEquals(r1, r2);

    r1.setEndType(AreaRendererEndType.LEVEL);
    assertFalse(r1.equals(r2));
    r2.setEndType(AreaRendererEndType.LEVEL);
    assertTrue(r1.equals(r2));
}
 
Example #4
Source File: AreaRendererTest.java    From SIMVA-SoS with Apache License 2.0 5 votes vote down vote up
/**
 * Check that the equals() method distinguishes all fields.
 */
@Test
public void testEquals() {
    AreaRenderer r1 = new AreaRenderer();
    AreaRenderer r2 = new AreaRenderer();
    assertEquals(r1, r2);

    r1.setEndType(AreaRendererEndType.LEVEL);
    assertFalse(r1.equals(r2));
    r2.setEndType(AreaRendererEndType.LEVEL);
    assertTrue(r1.equals(r2));
}
 
Example #5
Source File: AreaRendererTests.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Check that the equals() method distinguishes all fields.
 */
public void testEquals() {
    AreaRenderer r1 = new AreaRenderer();
    AreaRenderer r2 = new AreaRenderer();
    assertEquals(r1, r2);
    
    r1.setEndType(AreaRendererEndType.LEVEL);
    assertFalse(r1.equals(r2));
    r2.setEndType(AreaRendererEndType.LEVEL);
    assertTrue(r1.equals(r2));
}
 
Example #6
Source File: AreaRendererEndTypeTests.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * A test for the equals() method.
 */
public void testEquals() {
    assertEquals(AreaRendererEndType.LEVEL, AreaRendererEndType.LEVEL);
    assertEquals(AreaRendererEndType.TAPER, AreaRendererEndType.TAPER);
    assertEquals(
        AreaRendererEndType.TRUNCATE, AreaRendererEndType.TRUNCATE
    );
}
 
Example #7
Source File: AreaRendererTest.java    From ECG-Viewer with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Check that the equals() method distinguishes all fields.
 */
@Test
public void testEquals() {
    AreaRenderer r1 = new AreaRenderer();
    AreaRenderer r2 = new AreaRenderer();
    assertEquals(r1, r2);

    r1.setEndType(AreaRendererEndType.LEVEL);
    assertFalse(r1.equals(r2));
    r2.setEndType(AreaRendererEndType.LEVEL);
    assertTrue(r1.equals(r2));
}
 
Example #8
Source File: AreaRendererTests.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Check that the equals() method distinguishes all fields.
 */
public void testEquals() {
    AreaRenderer r1 = new AreaRenderer();
    AreaRenderer r2 = new AreaRenderer();
    assertEquals(r1, r2);

    r1.setEndType(AreaRendererEndType.LEVEL);
    assertFalse(r1.equals(r2));
    r2.setEndType(AreaRendererEndType.LEVEL);
    assertTrue(r1.equals(r2));
}
 
Example #9
Source File: AreaRendererEndTypeTests.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * A test for the equals() method.
 */
public void testEquals() {
    assertEquals(AreaRendererEndType.LEVEL, AreaRendererEndType.LEVEL);
    assertEquals(AreaRendererEndType.TAPER, AreaRendererEndType.TAPER);
    assertEquals(
        AreaRendererEndType.TRUNCATE, AreaRendererEndType.TRUNCATE
    );
}
 
Example #10
Source File: AreaRenderer.java    From openstock with GNU General Public License v3.0 4 votes vote down vote up
/**
 * Creates a new renderer.
 */
public AreaRenderer() {
    super();
    this.endType = AreaRendererEndType.TAPER;
    setBaseLegendShape(new Rectangle2D.Double(-4.0, -4.0, 8.0, 8.0));
}
 
Example #11
Source File: AreaRenderer.java    From buffer_bci with GNU General Public License v3.0 4 votes vote down vote up
/**
 * Creates a new renderer.
 */
public AreaRenderer() {
    super();
    this.endType = AreaRendererEndType.TAPER;
    setBaseLegendShape(new Rectangle2D.Double(-4.0, -4.0, 8.0, 8.0));
}
 
Example #12
Source File: AreaRenderer.java    From buffer_bci with GNU General Public License v3.0 4 votes vote down vote up
/**
 * Creates a new renderer.
 */
public AreaRenderer() {
    super();
    this.endType = AreaRendererEndType.TAPER;
    setBaseLegendShape(new Rectangle2D.Double(-4.0, -4.0, 8.0, 8.0));
}
 
Example #13
Source File: AreaRenderer.java    From opensim-gui with Apache License 2.0 4 votes vote down vote up
/**
 * Creates a new renderer.
 */
public AreaRenderer() {
    super();
    this.endType = AreaRendererEndType.TAPER;
}
 
Example #14
Source File: AreaRenderer.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Creates a new renderer.
 */
public AreaRenderer() {
    super();
    this.endType = AreaRendererEndType.TAPER;
}
 
Example #15
Source File: AreaRenderer.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Creates a new renderer.
 */
public AreaRenderer() {
    super();
    this.endType = AreaRendererEndType.TAPER;
    setBaseLegendShape(new Rectangle2D.Double(-4.0, -4.0, 8.0, 8.0));
}
 
Example #16
Source File: AreaRenderer.java    From ECG-Viewer with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Creates a new renderer.
 */
public AreaRenderer() {
    super();
    this.endType = AreaRendererEndType.TAPER;
    setBaseLegendShape(new Rectangle2D.Double(-4.0, -4.0, 8.0, 8.0));
}
 
Example #17
Source File: AreaRenderer.java    From SIMVA-SoS with Apache License 2.0 4 votes vote down vote up
/**
 * Creates a new renderer.
 */
public AreaRenderer() {
    super();
    this.endType = AreaRendererEndType.TAPER;
    setBaseLegendShape(new Rectangle2D.Double(-4.0, -4.0, 8.0, 8.0));
}
 
Example #18
Source File: AreaRenderer.java    From ccu-historian with GNU General Public License v3.0 4 votes vote down vote up
/**
 * Creates a new renderer.
 */
public AreaRenderer() {
    super();
    this.endType = AreaRendererEndType.TAPER;
    setBaseLegendShape(new Rectangle2D.Double(-4.0, -4.0, 8.0, 8.0));
}
 
Example #19
Source File: AreaRenderer.java    From astor with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Sets a token that controls how the renderer draws the end points, and
 * sends a {@link RendererChangeEvent} to all registered listeners.
 *
 * @param type  the end type (<code>null</code> not permitted).
 *
 * @see #getEndType()
 */
public void setEndType(AreaRendererEndType type) {
    if (type == null) {
        throw new IllegalArgumentException("Null 'type' argument.");
    }
    this.endType = type;
    fireChangeEvent();
}
 
Example #20
Source File: AreaRenderer.java    From astor with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Sets a token that controls how the renderer draws the end points, and 
 * sends a {@link RendererChangeEvent} to all registered listeners.
 * 
 * @param type  the end type (<code>null</code> not permitted).
 *
 * @see #getEndType()
 */
public void setEndType(AreaRendererEndType type) {
    if (type == null) {
        throw new IllegalArgumentException("Null 'type' argument.");   
    }
    this.endType = type;
    notifyListeners(new RendererChangeEvent(this));
}
 
Example #21
Source File: AreaRenderer.java    From opensim-gui with Apache License 2.0 3 votes vote down vote up
/**
 * Sets a token that controls how the renderer draws the end points, and 
 * sends a {@link RendererChangeEvent} to all registered listeners.
 * 
 * @param type  the end type (<code>null</code> not permitted).
 *
 * @see #getEndType()
 */
public void setEndType(AreaRendererEndType type) {
    if (type == null) {
        throw new IllegalArgumentException("Null 'type' argument.");   
    }
    this.endType = type;
    notifyListeners(new RendererChangeEvent(this));
}
 
Example #22
Source File: AreaRenderer.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Sets a token that controls how the renderer draws the end points, and
 * sends a {@link RendererChangeEvent} to all registered listeners.
 *
 * @param type  the end type (<code>null</code> not permitted).
 *
 * @see #getEndType()
 */
public void setEndType(AreaRendererEndType type) {
    ParamChecks.nullNotPermitted(type, "type");
    this.endType = type;
    fireChangeEvent();
}
 
Example #23
Source File: AreaRenderer.java    From ECG-Viewer with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Sets a token that controls how the renderer draws the end points, and
 * sends a {@link RendererChangeEvent} to all registered listeners.
 *
 * @param type  the end type (<code>null</code> not permitted).
 *
 * @see #getEndType()
 */
public void setEndType(AreaRendererEndType type) {
    ParamChecks.nullNotPermitted(type, "type");
    this.endType = type;
    fireChangeEvent();
}
 
Example #24
Source File: AreaRenderer.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Returns a token that controls how the renderer draws the end points.
 * The default value is {@link AreaRendererEndType#TAPER}.
 *
 * @return The end type (never <code>null</code>).
 *
 * @see #setEndType
 */
public AreaRendererEndType getEndType() {
    return this.endType;
}
 
Example #25
Source File: AreaRenderer.java    From openstock with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Returns a token that controls how the renderer draws the end points.
 * The default value is {@link AreaRendererEndType#TAPER}.
 *
 * @return The end type (never <code>null</code>).
 *
 * @see #setEndType
 */
public AreaRendererEndType getEndType() {
    return this.endType;
}
 
Example #26
Source File: AreaRenderer.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Sets a token that controls how the renderer draws the end points, and
 * sends a {@link RendererChangeEvent} to all registered listeners.
 *
 * @param type  the end type (<code>null</code> not permitted).
 *
 * @see #getEndType()
 */
public void setEndType(AreaRendererEndType type) {
    ParamChecks.nullNotPermitted(type, "type");
    this.endType = type;
    fireChangeEvent();
}
 
Example #27
Source File: AreaRenderer.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Returns a token that controls how the renderer draws the end points.
 * The default value is {@link AreaRendererEndType#TAPER}.
 *
 * @return The end type (never <code>null</code>).
 *
 * @see #setEndType
 */
public AreaRendererEndType getEndType() {
    return this.endType;
}
 
Example #28
Source File: AreaRenderer.java    From openstock with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Sets a token that controls how the renderer draws the end points, and
 * sends a {@link RendererChangeEvent} to all registered listeners.
 *
 * @param type  the end type (<code>null</code> not permitted).
 *
 * @see #getEndType()
 */
public void setEndType(AreaRendererEndType type) {
    ParamChecks.nullNotPermitted(type, "type");
    this.endType = type;
    fireChangeEvent();
}
 
Example #29
Source File: AreaRenderer.java    From opensim-gui with Apache License 2.0 2 votes vote down vote up
/**
 * Returns a token that controls how the renderer draws the end points.
 * The default value is {@link AreaRendererEndType#TAPER}.
 * 
 * @return The end type (never <code>null</code>).
 *
 * @see #setEndType
 */
public AreaRendererEndType getEndType() {
    return this.endType;   
}
 
Example #30
Source File: AreaRenderer.java    From ccu-historian with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Returns a token that controls how the renderer draws the end points.
 * The default value is {@link AreaRendererEndType#TAPER}.
 *
 * @return The end type (never <code>null</code>).
 *
 * @see #setEndType
 */
public AreaRendererEndType getEndType() {
    return this.endType;
}