Interface IPointPainterConfigurableUI<T extends IPointPainter<T>>
- Type Parameters:
T
- needed for generics
.Comparable.compareTo(Object)
- All Superinterfaces:
Comparable<T>
,IPointPainter<T>
,Serializable
- All Known Implementing Classes:
APointPainter
,PointPainterDisc
,PointPainterLine
,PointPainterVerticalBar
- Author:
- Achim Westermann
-
Method Summary
Modifier and TypeMethodDescriptiongetColor()
Returns the color to paint with ornull if no special color is desired.
Returns the color to paint fillings with ornull if no special color is desired.
Returns the stroke to paint with.int
Returns the transparency to use for painting.int
Returns the transparency to use for fill painting.Sets the color to paint with ornull
if no special color is desired.setColorFill
(Color fillColor) Sets the color to paint fillings with ornull
if no special fill color is desired.Sets the stroke to paint with ornull
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 java.lang.Comparable
compareTo
Methods inherited from interface info.monitorenter.gui.chart.IPointPainter
endPaintIteration, paintPoint, startPaintIteration
-
Method Details
-
getColor
Color getColor()Returns the color to paint with ornull if no special color is desired.
- Returns:
- the color to paint with
null if no special color is desired.
-
getColorFill
Color getColorFill()Returns the color to paint fillings with ornull if no special color is desired.
- Returns:
- the color to paint fillings with
null if no special color is desired.
-
getStroke
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
used for painting has a different setting!Graphics
- 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
used for painting has a different setting!Graphics
- Returns:
- the fill transparency used between 0 and 255.
-
setColor
Sets the color to paint with ornull
if no special color is desired.In the latter case the color of the
provided for paint operations will be used.Graphics
- Parameters:
color
- the color to paint with ornull
if no special color is desired.- Returns:
- the previous color to paint with
null if no special color is desired.
-
setColorFill
Sets the color to paint fillings with ornull
if no special fill color is desired.In the latter case the color of the
provided for paint fill operations will be used.Graphics
- Parameters:
fillColor
- the color to paint fillings with ornull
if no special color is desired.- Returns:
- the previous color to paint fillings with
null if no special color is desired.
-
setStroke
Sets the stroke to paint with ornull
if no special color is desired.In the latter case the stroke of the
provided for paint operations will be used.Graphics
- 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.
-