info.monitorenter.gui.chart
Interface IErrorBarPainter.ISegment

All Superinterfaces:
Serializable
Enclosing interface:
IErrorBarPainter

public static interface IErrorBarPainter.ISegment
extends Serializable

Facace interface for accessing a connection segment of ErrorBarPainter.

This is the IPointPainter and the color of that segment.

Version:
$Revision: 1.17 $
Author:
Achim Westermann

Method Summary
 void addPropertyChangeListener(String property, PropertyChangeListener listener)
          Registers the given property change listener to receive PropertyChangeEvent instances upon a change of the given property.
 Color getColor()
          Returns the color of this segment.
 String getName()
          Returns a descriptive name that may be used in UI interfaces.
 IPointPainter getPointPainter()
          Returns the point painter of this segment.
 String getPropertySegmentColor()
          Returns the property name of the color property to use with addPropertyChangeListener(String, PropertyChangeListener).
 String getPropertySegmentPointPainter()
          Returns the property name of the point painter property to use with addPropertyChangeListener(String, PropertyChangeListener).
 void setColor(Color color)
          Sets the color of this segment.
 void setPointPainter(IPointPainter pointPainter)
          Sets the point painter of this segment.
 

Method Detail

addPropertyChangeListener

void addPropertyChangeListener(String property,
                               PropertyChangeListener listener)
Registers the given property change listener to receive PropertyChangeEvent instances upon a change of the given property.

Note that implementations should delegate this call to IErrorBarPainter.addPropertyChangeListener(String, PropertyChangeListener) (the instance that belongs to this inner non-static class) for integrity with the fact that an IErrorBarPainter.ISegment is just a facade to the outer class.

Parameters:
property - one of the properties: getPropertySegmentColor(), getPropertySegmentPointPainter().
listener - the instances interested in a change of the property.

getColor

Color getColor()
Returns the color of this segment.

Returns:
the color used.

getName

String getName()
Returns a descriptive name that may be used in UI interfaces.

Returns:
a descriptive name that may be used in UI interfaces.

getPointPainter

IPointPainter getPointPainter()
Returns the point painter of this segment.

Returns:
the point painter used.

getPropertySegmentColor

String getPropertySegmentColor()
Returns the property name of the color property to use with addPropertyChangeListener(String, PropertyChangeListener).

This is the IErrorBarPainter.PROPERTY_CONNECTION_COLOR for the instance returned by IErrorBarPainter.getSegmentConnection(), IErrorBarPainter.PROPERTY_ENDPOINT_COLOR for the instance returned by IErrorBarPainter.getSegmentEnd() and IErrorBarPainter.PROPERTY_STARTPOINT_COLOR for the instance returned by IErrorBarPainter.getSegmentStart() for integrity with those properties meaning the same.

Returns:
the property name of the color property to use with addPropertyChangeListener(String, PropertyChangeListener).

getPropertySegmentPointPainter

String getPropertySegmentPointPainter()
Returns the property name of the point painter property to use with addPropertyChangeListener(String, PropertyChangeListener).

This is the IErrorBarPainter.PROPERTY_CONNECTION for the instance returned by IErrorBarPainter.getSegmentConnection(), IErrorBarPainter.PROPERTY_ENDPOINT for the instance returned by IErrorBarPainter.getSegmentEnd() and IErrorBarPainter.PROPERTY_STARTPOINT for the instance returned by IErrorBarPainter.getSegmentStart() for integrity with those properties meaning the same.

Returns:
the property name of the color property to use with addPropertyChangeListener(String, PropertyChangeListener).

setColor

void setColor(Color color)
Sets the color of this segment.

Parameters:
color - the color to use.

setPointPainter

void setPointPainter(IPointPainter pointPainter)
Sets the point painter of this segment.

Parameters:
pointPainter - the point painter to use.


Copyright © 2001 - 2007 LGPL, All Rights Footloose.