public interface ILcdGXYPainterStyle extends Serializable
ILcdGXYPainterStyle
tells an ILcdGXYPainter
how to set up the drawing properties of a Graphics
(e.g. Color, Stroke, etc)
before painting an Object
in a given mode and ILcdGXYContext
.ILcdGXYPainter
Modifier and Type | Method and Description |
---|---|
void |
setupGraphics(Graphics aGraphics,
Object aObject,
int aMode,
ILcdGXYContext aGXYContext)
Set up
aGraphics before painting aObject. |
void setupGraphics(Graphics aGraphics, Object aObject, int aMode, ILcdGXYContext aGXYContext)
aGraphics
before painting aObject.
For example, if (aMode & ILcdGXYPainter.SELECTED) != 0
, you may want to
call aGraphics.setColor(Color.red)
for instance, to see the selected
representation of a aObject in red.aGraphics
- the Graphics
to set up.aObject
- the Object
to paint.aMode
- the painting mode to consider (defined in
ILcdGXYPainter
).aGXYContext
- the ILcdGXYContext
to consider.ILcdGXYPainter