info.monitorenter.gui.chart
Interface IPointPainterConfigurableUI<T extends IPointPainter<T>>

Type Parameters:
T - needed for generics Comparable.compareTo(Object).
All Superinterfaces:
java.lang.Comparable<T>, IPointPainter<T>, java.io.Serializable
All Known Implementing Classes:
APointPainter, PointPainterDisc, PointPainterLine, PointPainterVerticalBar

public interface IPointPainterConfigurableUI<T extends IPointPainter<T>>
extends IPointPainter<T>

Adds configuration of UI like strokes and color to IPointPainter.

Author:
Achim Westermann

Method Summary
 java.awt.Color getColor()
          Returns the color to paint with or null if no special color is desired.
 java.awt.Color getColorFill()
          Returns the color to paint fillings with or null if no special color is desired.
 java.awt.Stroke getStroke()
          Returns the stroke to paint with.
 int getTransparency()
          Returns the transparency to use for painting.
 int getTransparencyFill()
          Returns the transparency to use for fill painting.
 java.awt.Color setColor(java.awt.Color color)
          Sets the color to paint with or null if no special color is desired.
 java.awt.Color setColorFill(java.awt.Color fillColor)
          Sets the color to paint fillings with or null if no special fill color is desired.
 java.awt.Stroke setStroke(java.awt.Stroke stroke)
          Sets the stroke to paint with or null if no special color is desired.
 int setTransparency(int transparency0to255)
          Sets the transparency to use for painting.
 int setTransparencyFill(int transparency0to255)
          Sets the transparency to use for fill painting.
 
Methods inherited from interface info.monitorenter.gui.chart.IPointPainter
endPaintIteration, paintPoint, startPaintIteration
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getColor

java.awt.Color getColor()
Returns the color to paint with or null if no special color is desired.

Returns:
the color to paint with null if no special color is desired.

getColorFill

java.awt.Color getColorFill()
Returns the color to paint fillings with or null if no special color is desired.

Returns:
the color to paint fillings with null if no special color is desired.

getStroke

java.awt.Stroke getStroke()
Returns the stroke to paint with.

Returns:
the stroke to paint with.

getTransparency

int getTransparency()
Returns the transparency to use for painting.

This value will be computed from the color used. If that color is not configured (null) a value of 0.0 is returned even if the color from the Graphics used for painting has a different setting!

Returns:
the transparency used between 0 and 255.

getTransparencyFill

int getTransparencyFill()
Returns the transparency to use for fill painting.

This value will be computed from the color used. If that color is not configured (null) a value of 0.0 is returned even if the color from the Graphics used for painting has a different setting!

Returns:
the fill transparency used between 0 and 255.

setColor

java.awt.Color setColor(java.awt.Color color)
Sets the color to paint with or null if no special color is desired.

In the latter case the color of the Graphics provided for paint operations will be used.

Parameters:
color - the color to paint with or null if no special color is desired.
Returns:
the previous color to paint with null if no special color is desired.

setColorFill

java.awt.Color setColorFill(java.awt.Color fillColor)
Sets the color to paint fillings with or null if no special fill color is desired.

In the latter case the color of the Graphics provided for paint fill operations will be used.

Parameters:
fillColor - the color to paint fillings with or null if no special color is desired.
Returns:
the previous color to paint fillings with null if no special color is desired.

setStroke

java.awt.Stroke setStroke(java.awt.Stroke stroke)
Sets the stroke to paint with or null if no special color is desired.

In the latter case the stroke of the Graphics provided for paint operations will be used.

Parameters:
stroke - the stroke to paint with.
Returns:
the previous color being used or null if none was used before.

setTransparency

int setTransparency(int transparency0to255)
Sets the transparency to use for painting.

This value will be fold into color. If color has not been configured before it will not have any effect.

Caution: When using a value greater 0 may cost a multiple cpu load!

Parameters:
transparency0to255 - a transparency value between 0 and 255.
Returns:
the previous transparency used.

setTransparencyFill

int setTransparencyFill(int transparency0to255)
Sets the transparency to use for fill painting.

This value will be fold into fill color. If fill color has not been configured before it will not have any effect.

Caution: When using a value greater 0 may cost a multiple cpu load!

Parameters:
transparency0to255 - a transparency value between 0 and 255.
Returns:
the previous fill transparency used.


Copyright © 2001 - 2010 LGPL, All Rights Footloose.