Interface IErrorBarPainter.ISegment
-
- All Superinterfaces:
java.io.Serializable
- Enclosing interface:
- IErrorBarPainter
public static interface IErrorBarPainter.ISegment extends java.io.SerializableFacace interface for accessing a connection segment of.ErrorBarPainterThis is the
and the color of that segment.IPointPainter- Version:
- $Revision: 1.27 $
- Author:
- Achim Westermann
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddPropertyChangeListener(java.lang.String property, java.beans.PropertyChangeListener listener)Registers the given property change listener to receiveinstances upon a change of the given property.PropertyChangeEventjava.awt.ColorgetColor()Returns the color of this segment or null if none has been configured in the underlying.IPointPainterConfigurableUIjava.lang.StringgetName()Returns a descriptive name that may be used in UI interfaces.IPointPainterConfigurableUI<?>getPointPainter()Returns the point painter of this segment.java.lang.StringgetPropertySegmentColor()Returns the property name of the color property to use with.addPropertyChangeListener(String, PropertyChangeListener)java.lang.StringgetPropertySegmentPointPainter()Returns the property name of the point painter property to use with.addPropertyChangeListener(String, PropertyChangeListener)voidsetColor(java.awt.Color color)Sets the color of this segment.voidsetPointPainter(IPointPainterConfigurableUI<?> pointPainter)Sets the point painter of this segment.
-
-
-
Method Detail
-
addPropertyChangeListener
void addPropertyChangeListener(java.lang.String property, java.beans.PropertyChangeListener listener)Registers the given property change listener to receiveinstances upon a change of the given property.PropertyChangeEventNote that implementations should delegate this call to
(the instance that belongs to this inner non-static class) for integrity with the fact that anIErrorBarPainter.addPropertyChangeListener(String, PropertyChangeListener)is just a facade to the outer class.IErrorBarPainter.ISegment- Parameters:
property- one of the properties:getPropertySegmentColor(),getPropertySegmentPointPainter().listener- the instances interested in a change of the property.
-
getColor
java.awt.Color getColor()
Returns the color of this segment or null if none has been configured in the underlying.IPointPainterConfigurableUI- Returns:
- the color of this segment or null if none has been configured in the underlying
.IPointPainterConfigurableUI
-
getName
java.lang.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
IPointPainterConfigurableUI<?> getPointPainter()
Returns the point painter of this segment.- Returns:
- the point painter used.
-
getPropertySegmentColor
java.lang.String getPropertySegmentColor()
Returns the property name of the color property to use with.addPropertyChangeListener(String, PropertyChangeListener)This is the
for the instance returned byIErrorBarPainter.PROPERTY_CONNECTION_COLOR,IErrorBarPainter.getSegmentConnection()for the instance returned byIErrorBarPainter.PROPERTY_ENDPOINT_COLORandIErrorBarPainter.getSegmentEnd()for the instance returned byIErrorBarPainter.PROPERTY_STARTPOINT_COLORfor integrity with those properties meaning the same.IErrorBarPainter.getSegmentStart()- Returns:
- the property name of the color property to use with
.addPropertyChangeListener(String, PropertyChangeListener)
-
getPropertySegmentPointPainter
java.lang.String getPropertySegmentPointPainter()
Returns the property name of the point painter property to use with.addPropertyChangeListener(String, PropertyChangeListener)This is the
for the instance returned byIErrorBarPainter.PROPERTY_CONNECTION,IErrorBarPainter.getSegmentConnection()for the instance returned byIErrorBarPainter.PROPERTY_ENDPOINTandIErrorBarPainter.getSegmentEnd()for the instance returned byIErrorBarPainter.PROPERTY_STARTPOINTfor integrity with those properties meaning the same.IErrorBarPainter.getSegmentStart()- Returns:
- the property name of the color property to use with
.addPropertyChangeListener(String, PropertyChangeListener)
-
setColor
void setColor(java.awt.Color color)
Sets the color of this segment.- Parameters:
color- the color to use.
-
setPointPainter
void setPointPainter(IPointPainterConfigurableUI<?> pointPainter)
Sets the point painter of this segment.- Parameters:
pointPainter- the point painter to use.
-
-