|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.monitorenter.gui.chart.pointpainters.APointPainter<T>
T
- needed for generic comparablepublic abstract class APointPainter<T extends IPointPainterConfigurableUI<T>>
Adapter class that implements optional methods of
as "no operation".
IPointPainter
Constructor Summary | |
---|---|
APointPainter()
Default constructor (sets the consumed by paint flag to false). |
Method Summary | |
---|---|
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 . |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface info.monitorenter.gui.chart.IPointPainter |
---|
paintPoint |
Constructor Detail |
---|
public APointPainter()
Method Detail |
---|
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)
IPointPainter
ITrace2D
.
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.Object
Object.equals(java.lang.Object)
public java.awt.Color getColor()
IPointPainterConfigurableUI
null if no special color is desired.
- Specified by:
getColor
in interface IPointPainterConfigurableUI<T extends IPointPainterConfigurableUI<T>>
- Returns:
- the color to paint with
null if no special color is
desired.- See Also:
IPointPainterConfigurableUI.getColor()
public java.awt.Color getColorFill()
IPointPainterConfigurableUI
null if no special color is desired.
- Specified by:
getColorFill
in interface IPointPainterConfigurableUI<T extends IPointPainterConfigurableUI<T>>
- Returns:
- the color to paint fillings with
null if no special
color is desired.- See Also:
IPointPainterConfigurableUI.getColorFill()
public java.awt.Stroke getStroke()
IPointPainterConfigurableUI
getStroke
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.Object
Object.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)
IPointPainterConfigurableUI
null
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.- See Also:
IPointPainterConfigurableUI.setColor(java.awt.Color)
public java.awt.Color setColorFill(java.awt.Color fillColor)
IPointPainterConfigurableUI
null
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.- See Also:
IPointPainterConfigurableUI.setColorFill(java.awt.Color)
public java.awt.Stroke setStroke(java.awt.Stroke stroke)
IPointPainterConfigurableUI
null
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)
IPointPainterConfigurableUI
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!
setTransparency
in interface IPointPainterConfigurableUI<T extends IPointPainterConfigurableUI<T>>
transparency0to255
- a transparency value between 0 and 255.
IPointPainterConfigurableUI.setTransparency(int)
public int setTransparencyFill(int transparency0to255)
IPointPainterConfigurableUI
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!
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)
IPointPainter
ITrace2D
.
startPaintIteration
in interface IPointPainter<T extends IPointPainterConfigurableUI<T>>
g2d
- provided in case pending paint operations have to be performed.IPointPainter.startPaintIteration(java.awt.Graphics)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |