Package com.luciad.format.dgn.gxy
Class TLcdDGNGXYOutlineStyle
java.lang.Object
com.luciad.format.dgn.gxy.TLcdDGNGXYOutlineStyle
- All Implemented Interfaces:
ILcdCloneable,ILcdGXYPainterStyle,Serializable,Cloneable
This class implements an
ILcdGXYPainterStyle for painting
the outlines of filled DGN objects. It delegates setting up graphics to the
given line style. However, if the colors of the given line style and the
given fill style are the same, the line style is set to a simple thin line.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTLcdDGNGXYOutlineStyle(TLcdDGNGXYLineStyle aLineStyle, TLcdDGNGXYFillStyle aFillStyle) -
Method Summary
Modifier and TypeMethodDescriptionclone()MakesObject.clone()public.voidsetupGraphics(Graphics aGraphics, Object aObject, int aMode, ILcdGXYContext aGXYContext) Set upaGraphicsbefore painting aObject.
-
Constructor Details
-
TLcdDGNGXYOutlineStyle
-
-
Method Details
-
setupGraphics
public void setupGraphics(Graphics aGraphics, Object aObject, int aMode, ILcdGXYContext aGXYContext) Description copied from interface:ILcdGXYPainterStyleSet upaGraphicsbefore painting aObject. For example, if(aMode & ILcdGXYPainter.SELECTED) != 0, you may want to callaGraphics.setColor(Color.red)for instance, to see the selected representation of a aObject in red.- Specified by:
setupGraphicsin interfaceILcdGXYPainterStyle- Parameters:
aGraphics- theGraphicsto set up.aObject- theObjectto paint.aMode- the painting mode to consider (defined inILcdGXYPainter).aGXYContext- theILcdGXYContextto consider.- See Also:
-
clone
Description copied from interface:ILcdCloneableMakes
When for example extending fromObject.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 ); } }- Specified by:
clonein interfaceILcdCloneable- Overrides:
clonein classObject- See Also:
-