public class TLcdMIFBrushGXYPainterStyle extends Object implements ILcdGXYPainterStyle, ILcdCloneable
ILcdGXYPainterStyle
for filling MIF
objects, based on a given MIF brush style.Constructor and Description |
---|
TLcdMIFBrushGXYPainterStyle()
Constructs a style to fill MIF objects.
|
TLcdMIFBrushGXYPainterStyle(Color aSelectionColor)
Constructs a style to fill MIF objects.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Makes
Object.clone() public. |
TLcdFillStyle |
getFillStyle()
Returns the fill style used to fill MIF objects.
|
Color |
getSelectionColor()
Returns the color used to fill selected objects.
|
void |
setFillStyle(TLcdFillStyle aFillStyle)
Sets the fill style used to fill MIF objects.
|
void |
setSelectionColor(Color aSelectionColor)
Sets the color used to fill selected objects.
|
void |
setupGraphics(Graphics aGraphics,
Object aObject,
int aMode,
ILcdGXYContext aGXYContext)
Set up
aGraphics before painting aObject. |
public TLcdMIFBrushGXYPainterStyle()
public TLcdMIFBrushGXYPainterStyle(Color aSelectionColor)
aSelectionColor
- the color to paint selected MIF objects with.public void setSelectionColor(Color aSelectionColor)
aSelectionColor
- the color for selected objects.getSelectionColor()
public Color getSelectionColor()
setSelectionColor(Color)
public void setFillStyle(TLcdFillStyle aFillStyle)
aFillStyle
- the MIF brush style.getFillStyle()
public TLcdFillStyle getFillStyle()
setFillStyle(com.luciad.view.TLcdFillStyle)
public void setupGraphics(Graphics aGraphics, Object aObject, int aMode, ILcdGXYContext aGXYContext)
ILcdGXYPainterStyle
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.setupGraphics
in interface ILcdGXYPainterStyle
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
public Object clone()
ILcdCloneable
Makes Object.clone()
public.
java.lang.Object
, it can be implemented like this:
public Object clone() {
try {
return super.clone();
} catch ( CloneNotSupportedException e ) {
// Cannot happen: extends from Object and implements Cloneable (see also Object.clone)
throw new RuntimeException( e );
}
}
clone
in interface ILcdCloneable
clone
in class Object
Object.clone()