ilog.views.dxf
Class IlvDXFReaderConfigurator

java.lang.Object
  extended by ilog.views.dxf.IlvDXFReaderConfigurator

public class IlvDXFReaderConfigurator
extends Object

This class allows to configure an IlvDXFReader.

Since:
JViews 8.0
See Also:
IlvDXFReader

Constructor Summary
IlvDXFReaderConfigurator()
          Builds an IlvDXFReaderConfigurator instance using a default graphic factory (IlvDefaultDXFGraphicFactory).
IlvDXFReaderConfigurator(IlvDXFGraphicFactory factory)
          Builds an IlvDXFReaderConfigurator instance using the specified graphic factory (IlvDXFGraphicFactory).
 
Method Summary
 IlvRect getExtents()
          Returns the extents of the drawing.
 IlvDXFGraphicFactory getGraphicFactory()
          Returns the factory in charge with the creation of the graphic objects for the DXF reader.
 boolean isInvertBlackAndWhite()
          Returns true if the black and white colors are inverted, and returns false otherwise.
 boolean isKeepAspectRatio()
          Returns true if the reader is in "keeping aspect ratio" mode, and returns false otherwise.
 boolean isQuadTreeEnabled()
          Returns true if the quadtree is enabled.
 boolean isTextAntialiasing()
          Returns true if the reader should create antialiased text objects.
 void setExtents(IlvRect rect)
          Sets the extents of the drawing.
 void setGraphicFactory(IlvDXFGraphicFactory factory)
          Sets the factory in charge with the creation of the graphic objects for the DXF reader.
 void setInvertBlackAndWhite(boolean invertbw)
          Indicates whether the black and white colors must be inverted.
 void setKeepAspectRatio(boolean keepAspectRatio)
          Indicates whether the aspect ratio must be preserved.
 void setQuadTreeEnabled(boolean enabled)
          Indicates whether the quadtree must be enabled on the IlvManager in which the DXF file is read.
 void setTextAntialiasing(boolean antialiasing)
          Indicates whether the reader must create antialiased text objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlvDXFReaderConfigurator

public IlvDXFReaderConfigurator()
Builds an IlvDXFReaderConfigurator instance using a default graphic factory (IlvDefaultDXFGraphicFactory).


IlvDXFReaderConfigurator

public IlvDXFReaderConfigurator(IlvDXFGraphicFactory factory)
Builds an IlvDXFReaderConfigurator instance using the specified graphic factory (IlvDXFGraphicFactory).

Method Detail

setGraphicFactory

public void setGraphicFactory(IlvDXFGraphicFactory factory)
Sets the factory in charge with the creation of the graphic objects for the DXF reader. By default, the configurator uses IlvDefaultDXFGraphicFactory.


getGraphicFactory

public IlvDXFGraphicFactory getGraphicFactory()
Returns the factory in charge with the creation of the graphic objects for the DXF reader.


setExtents

public void setExtents(IlvRect rect)
Sets the extents of the drawing. If specified, when reading the DXF file the drawing is rescaled accordingly. The default value is null.

Parameters:
rect - The rectangle defining the extents of the drawing, or null if the drawing should not be rescaled.

getExtents

public IlvRect getExtents()
Returns the extents of the drawing.


setKeepAspectRatio

public void setKeepAspectRatio(boolean keepAspectRatio)
Indicates whether the aspect ratio must be preserved. If true, the corresponding scale will be used for each coordinate, if false, the maximum scale is taken into account. The default value is true.


isKeepAspectRatio

public boolean isKeepAspectRatio()
Returns true if the reader is in "keeping aspect ratio" mode, and returns false otherwise.

Returns:
Returns the keepAspectRatio.

isTextAntialiasing

public final boolean isTextAntialiasing()
Returns true if the reader should create antialiased text objects. The default value is false.


setTextAntialiasing

public final void setTextAntialiasing(boolean antialiasing)
Indicates whether the reader must create antialiased text objects. The default value is false.


setInvertBlackAndWhite

public void setInvertBlackAndWhite(boolean invertbw)
Indicates whether the black and white colors must be inverted. The default value is false.


isInvertBlackAndWhite

public boolean isInvertBlackAndWhite()
Returns true if the black and white colors are inverted, and returns false otherwise.


setQuadTreeEnabled

public final void setQuadTreeEnabled(boolean enabled)
Indicates whether the quadtree must be enabled on the IlvManager in which the DXF file is read. If the quadtree is enabled, the relative order of the graphic objects inside a given manager layer may not be the correct DXF order.

The default value is false.

The parameter has no effect when reading the DXF file into another type of graphic bag than IlvManager.

See Also:
isQuadTreeEnabled(), IlvIndexedSet.setQuadtreeEnabled(boolean)

isQuadTreeEnabled

public final boolean isQuadTreeEnabled()
Returns true if the quadtree is enabled.

See Also:
setQuadTreeEnabled(boolean)


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.