T - needed for generic comparableIPointPainter<T>, IPointPainterConfigurableUI<T>, java.io.Serializable, java.lang.Comparable<T>PointPainterDisc, PointPainterLine, PointPainterVerticalBarpublic abstract class APointPainter<T extends IPointPainterConfigurableUI<T>> extends java.lang.Object implements IPointPainterConfigurableUI<T>
IPointPainter as "no operation".
| Constructor | Description |
|---|---|
APointPainter() |
Default constructor (sets the consumed by paint flag to false).
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
compareTo(T arg0) |
|
void |
endPaintIteration(java.awt.Graphics g2d) |
Invoked to inform implementations that a paint iteration ends for the
corresponding
ITrace2D. |
boolean |
equals(java.lang.Object obj) |
|
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.
|
int |
hashCode() |
|
protected java.awt.Color |
installColor(java.awt.Graphics g) |
Installs the color to the graphics context if and only if a color has been
set.
|
protected java.awt.Color |
installColorFill(java.awt.Graphics g) |
Installs the fill color to the graphics context if and only if a fill color
has been set.
|
protected java.awt.Stroke |
installStroke(java.awt.Graphics g) |
Installs the stroke to the graphics context if and only if a stroke has
been set.
|
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.
|
void |
startPaintIteration(java.awt.Graphics g2d) |
Invoked to inform implementations that a paint iteration starts for the
corresponding
ITrace2D. |
paintPointpublic APointPainter()
public final int compareTo(T arg0)
compareTo in interface java.lang.Comparable<T extends IPointPainterConfigurableUI<T>>Comparable.compareTo(java.lang.Object)public void endPaintIteration(java.awt.Graphics g2d)
IPointPainterITrace2D.
endPaintIteration in interface IPointPainter<T extends IPointPainterConfigurableUI<T>>g2d - provided in case pending paint operations have to be performed.IPointPainter.endPaintIteration(java.awt.Graphics)public boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public java.awt.Color getColor()
IPointPainterConfigurableUInull if no special color is desired.
getColor in interface IPointPainterConfigurableUI<T extends IPointPainterConfigurableUI<T>>null if no special color is
desired.IPointPainterConfigurableUI.getColor()public java.awt.Color getColorFill()
IPointPainterConfigurableUInull if no special color is desired.
getColorFill in interface IPointPainterConfigurableUI<T extends IPointPainterConfigurableUI<T>>null if no special
color is desired.IPointPainterConfigurableUI.getColorFill()public java.awt.Stroke getStroke()
IPointPainterConfigurableUIgetStroke in interface IPointPainterConfigurableUI<T extends IPointPainterConfigurableUI<T>>IPointPainterConfigurableUI.getStroke()public int getTransparency()
IPointPainterConfigurableUI
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
getTransparency in interface IPointPainterConfigurableUI<T extends IPointPainterConfigurableUI<T>>IPointPainterConfigurableUI.getTransparency()public int getTransparencyFill()
IPointPainterConfigurableUI
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
getTransparencyFill in interface IPointPainterConfigurableUI<T extends IPointPainterConfigurableUI<T>>IPointPainterConfigurableUI.getTransparencyFill()public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()protected java.awt.Color installColor(java.awt.Graphics g)
g - the graphics context to use.null if
no action was taken.setColor(Color)protected java.awt.Color installColorFill(java.awt.Graphics g)
g - the graphics context to use.null if
no action was taken.setColorFill(Color)protected java.awt.Stroke installStroke(java.awt.Graphics g)
g - the graphics context to use.null if
no action was taken.setStroke(Stroke)public java.awt.Color setColor(java.awt.Color color)
IPointPainterConfigurableUInull if no special color is
desired.
In the latter case the color of the provided
for paint operations will be used.
Graphics
setColor in interface IPointPainterConfigurableUI<T extends IPointPainterConfigurableUI<T>>color - the color to paint with or null if no special color
is desired.null if no special color is
desired.IPointPainterConfigurableUI.setColor(java.awt.Color)public java.awt.Color setColorFill(java.awt.Color fillColor)
IPointPainterConfigurableUInull if no special
fill color is desired.
In the latter case the color of the provided
for paint fill operations will be used.
Graphics
setColorFill in interface IPointPainterConfigurableUI<T extends IPointPainterConfigurableUI<T>>fillColor - the color to paint fillings with or null if no
special color is desired.null if no special color is
desired.IPointPainterConfigurableUI.setColorFill(java.awt.Color)public java.awt.Stroke setStroke(java.awt.Stroke stroke)
IPointPainterConfigurableUInull if no special color is
desired.
In the latter case the stroke of the provided
for paint operations will be used.
Graphics
setStroke in interface IPointPainterConfigurableUI<T extends IPointPainterConfigurableUI<T>>stroke - the stroke to paint with.null if none was used
before.IPointPainterConfigurableUI.setStroke(java.awt.Stroke)public int setTransparency(int transparency0to255)
IPointPainterConfigurableUIThis 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!
setTransparency in interface IPointPainterConfigurableUI<T extends IPointPainterConfigurableUI<T>>transparency0to255 - a transparency value between 0 and 255.IPointPainterConfigurableUI.setTransparency(int)public int setTransparencyFill(int transparency0to255)
IPointPainterConfigurableUIThis 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!
setTransparencyFill in interface IPointPainterConfigurableUI<T extends IPointPainterConfigurableUI<T>>transparency0to255 - a transparency value between 0 and 255.IPointPainterConfigurableUI.setTransparencyFill(int)public void startPaintIteration(java.awt.Graphics g2d)
IPointPainterITrace2D.
startPaintIteration in interface IPointPainter<T extends IPointPainterConfigurableUI<T>>g2d - provided in case pending paint operations have to be performed.IPointPainter.startPaintIteration(java.awt.Graphics)Copyright © 2001 - 2010 LGPL, All Rights Footloose.