com.ijchart.xychart.marker
Class IntervalValueMarker

java.lang.Object
  extended by com.ijchart.xychart.marker.AbstractMarker
      extended by com.ijchart.xychart.marker.IntervalValueMarker
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class IntervalValueMarker
extends AbstractMarker
implements java.lang.Cloneable, java.io.Serializable

Title: IJChart

Description: a chart library for the Java(tm) platform.

Represents an interval to be highlighted in some way.

Copyright: Copyright (c) 2013

Company:

Version:
1.0
Author:
zhang feng min,shanghai china. Contract me by email.
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.ijchart.xychart.marker.AbstractMarker
DEFAULT_FILL_PAINT, DEFAULT_TEXT_POSITION
 
Constructor Summary
IntervalValueMarker(double start, double end)
           Constructs an interval marker.
IntervalValueMarker(double start, double end, java.awt.Paint fillPaint, java.awt.Paint borderPaint, java.awt.Stroke borderStroke, float fillAlpha)
           Constructs an interval marker.
 
Method Summary
 java.lang.Object clone()
           Returns a clone of the marker.
 boolean equals(java.lang.Object obj)
           Tests the marker for equality with an arbitrary object.
 double getEndValue()
           Returns the end value for the interval.
 DefaultGradientPaintTransformer getGradientPaintTransformer()
           Returns the gradient paint transformer.
 double getStartValue()
           Returns the start value for the interval.
 int hashCode()
           Returns a hash code value for the object.
 void setEndValue(double value)
           Sets the end value for the marker and sends a MarkerChangeEvent to all registered listeners.
 void setGradientPaintTransformer(DefaultGradientPaintTransformer transformer)
           Sets the gradient paint transformer and sends a MarkerChangeEvent to all registered listeners.
 void setStartValue(double value)
           Sets the start value for the marker and sends a MarkerChangeEvent to all registered listeners.
 
Methods inherited from class com.ijchart.xychart.marker.AbstractMarker
addChangeListener, fireMarkerChanged, getBorderPaint, getBorderStroke, getFillAlpha, getFillPaint, getListeners, getMargin, getText, getTextFont, getTextHorizontalAlign, getTextPaint, getTextPosition, getTextVerticalAlign, isDrawBorder, isDrawText, isFillShape, notifyListeners, removeChangeListener, setBorderPaint, setBorderStroke, setDrawBorder, setDrawText, setFillAlpha, setFillPaint, setFillShape, setMargin, setText, setTextFont, setTextHorizontalAlign, setTextPaint, setTextPosition, setTextVerticalAlign, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IntervalValueMarker

public IntervalValueMarker(double start,
                           double end)
Constructs an interval marker.

Parameters:
start - double The start of the interval.
end - double The end of the interval.

IntervalValueMarker

public IntervalValueMarker(double start,
                           double end,
                           java.awt.Paint fillPaint,
                           java.awt.Paint borderPaint,
                           java.awt.Stroke borderStroke,
                           float fillAlpha)
Constructs an interval marker.

Parameters:
start - double The start of the interval.
end - double The end of the interval.
fillPaint - Paint The fill paint (null not permitted).
borderPaint - Paint The border paint (null permitted).
borderStroke - Stroke The border stroke (null permitted).
fillAlpha - float The alpha transparency (must be in the range 0.0f to 1.0f).
Method Detail

getStartValue

public double getStartValue()
Returns the start value for the interval.

Returns:
double The start value.

setStartValue

public void setStartValue(double value)
Sets the start value for the marker and sends a MarkerChangeEvent to all registered listeners.

Parameters:
value - double The value.

getEndValue

public double getEndValue()
Returns the end value for the interval.

Returns:
double The end value.

setEndValue

public void setEndValue(double value)
Sets the end value for the marker and sends a MarkerChangeEvent to all registered listeners.

Parameters:
value - double The value.

getGradientPaintTransformer

public DefaultGradientPaintTransformer getGradientPaintTransformer()
Returns the gradient paint transformer.

Returns:
DefaultGradientPaintTransformer The gradient paint transformer (possibly null).

setGradientPaintTransformer

public void setGradientPaintTransformer(DefaultGradientPaintTransformer transformer)
Sets the gradient paint transformer and sends a MarkerChangeEvent to all registered listeners.

Parameters:
transformer - DefaultGradientPaintTransformer The transformer (null permitted).

equals

public boolean equals(java.lang.Object obj)
Tests the marker for equality with an arbitrary object.

Overrides:
equals in class AbstractMarker
Parameters:
obj - the object (null permitted).
Returns:
A boolean.

hashCode

public int hashCode()
Returns a hash code value for the object.

Overrides:
hashCode in class AbstractMarker
Returns:
int The hashcode value.

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Returns a clone of the marker.

Overrides:
clone in class AbstractMarker
Returns:
A clone.
Throws:
java.lang.CloneNotSupportedException - Not thrown by this class, but the exception is declared for the use of subclasses.