public class IlvDXFReaderConfigurator extends Object
IlvDXFReader
.IlvDXFReader
Constructor and Description |
---|
IlvDXFReaderConfigurator()
Builds an
IlvDXFReaderConfigurator instance using
a default graphic factory (IlvDefaultDXFGraphicFactory ). |
IlvDXFReaderConfigurator(IlvDXFGraphicFactory factory)
Builds an
IlvDXFReaderConfigurator instance using
the specified graphic factory (IlvDXFGraphicFactory ). |
Modifier and Type | Method and Description |
---|---|
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.
|
public IlvDXFReaderConfigurator()
IlvDXFReaderConfigurator
instance using
a default graphic factory (IlvDefaultDXFGraphicFactory
).public IlvDXFReaderConfigurator(IlvDXFGraphicFactory factory)
IlvDXFReaderConfigurator
instance using
the specified graphic factory (IlvDXFGraphicFactory
).public void setGraphicFactory(IlvDXFGraphicFactory factory)
IlvDefaultDXFGraphicFactory
.public IlvDXFGraphicFactory getGraphicFactory()
public void setExtents(IlvRect rect)
null
.rect
- The rectangle defining the extents of the drawing,
or null
if the drawing should not be rescaled.public IlvRect getExtents()
public void setKeepAspectRatio(boolean keepAspectRatio)
true
, the corresponding scale will be used for each
coordinate, if false
, the maximum scale is taken into
account. The default value is true
.public boolean isKeepAspectRatio()
true
if the reader is in "keeping aspect ratio" mode,
and returns false
otherwise.public final boolean isTextAntialiasing()
true
if the reader should create
antialiased text objects.
The default value is false
.public final void setTextAntialiasing(boolean antialiasing)
false
.public void setInvertBlackAndWhite(boolean invertbw)
false
.public boolean isInvertBlackAndWhite()
true
if the black and white colors are inverted,
and returns false
otherwise.public final void setQuadTreeEnabled(boolean enabled)
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
.
public final boolean isQuadTreeEnabled()
true
if the quadtree is enabled.setQuadTreeEnabled(boolean)
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.