public interface IlvDXFGraphicFactory
IlvDXFReader
,
IlvDXFReaderConfigurator
Modifier and Type | Method and Description |
---|---|
void |
addObject(IlvGraphic obj,
IlvGraphicBag bag)
Adds a graphic object to a given graphic bag.
|
void |
addObject(IlvGraphic obj,
IlvManager manager,
int layerIndex)
Adds a graphic object to a given layer of a manager.
|
IlvGraphic |
create3DFace(IlvPoint[] points,
Color color)
Creates a graphic object for the DXF entity 3DFACE
(rendered in 2D).
|
IlvGraphic |
createArc(IlvPoint center,
double radius,
double startAngle,
double angleRange,
double thickness,
Color color)
Creates a graphic object for the DXF entity ARC.
|
IlvGraphic |
createCircle(IlvPoint center,
double radius,
double thickness,
Color color)
Creates a graphic object for the DXF entity CIRCLE.
|
IlvGraphic |
createDimension(String text,
short type,
IlvPoint p0,
IlvPoint p1,
IlvPoint p2,
IlvPoint p3,
IlvPoint p4,
IlvPoint p5,
IlvPoint p6)
Creates a graphic object for the DXF entity DIMENSION.
|
IlvGraphic |
createInsert(IlvGraphicVector children,
String blockName,
Color color)
Creates a graphic object containing a set of graphic objects,
for the DXF entity INSERT.
|
IlvGraphic |
createLine(IlvPoint from,
IlvPoint to,
double thickness,
Color color)
Creates a graphic object for the DXF entity LINE.
|
IlvGraphic |
createPoint(IlvPoint point,
double thickness,
Color color)
Creates a graphic object for the DXF entity POINT.
|
IlvGraphic |
createPolyline(IlvPoint[] points,
boolean closed,
boolean filled,
double thickness,
Color color)
Creates a graphic object for the DXF entities POLYLINE,
LWPOLYLINE, SOLID, 3DFACE.
|
IlvGraphic |
createSolid(IlvPoint[] points,
double thickness,
Color color)
Creates a graphic object for the DXF entity SOLID.
|
IlvGraphic |
createSpline(IlvPoint[] points,
boolean closed,
double thickness,
Color color)
Creates a graphic object for the DXF entity SPLINE.
|
IlvGraphic |
createText(IlvPoint location,
String text,
boolean underlined,
boolean antialiased,
Font font,
Color color)
Creates a graphic object for the DXF entities TEXT and
MTEXT.
|
IlvGraphic |
createTrace(IlvPoint[] points,
double thickness,
Color color)
Creates a graphic object for the DXF entity TRACE.
|
IlvManagerLayer |
prepareLayer(IlvManager manager,
String layerName)
Prepares a manager layer.
|
void addObject(IlvGraphic obj, IlvManager manager, int layerIndex)
The DXF reader calls this method if the contents of the DXF file is read
into an IlvManager
or a subclass. Otherwise,
if the read is done in another type of IlvGraphicBag
,
for instance in an IlvGraphicSet
,
the reader calls the method addObject(IlvGraphic, IlvGraphicBag)
instead.
obj
- The graphic object to be added to the manager.manager
- The manager into which the contents of the DXF file is read.layerIndex
- The index of the manager layer where the object must
be added.void addObject(IlvGraphic obj, IlvGraphicBag bag)
The DXF reader calls this method if the contents of the DXF file is read
into a IlvGraphicBag
which is not an IlvManager
or
a subclass, for instance an IlvGraphicSet
.
Otherwise, if the read is done in an IlvManager
or a subclass,
the reader calls the method addObject(IlvGraphic, IlvManager, int)
instead.
obj
- The graphic object to be added to the bag.bag
- The bag where the graphic object must be added.IlvManagerLayer prepareLayer(IlvManager manager, String layerName)
The implementation is free to either create a new layer on top of the existing ones,
or return an existing layer. It must also set the name of this layer (see
IlvManager.setLayerName(int, String)
).
Notice the following:
layerIndex
argument of the method
addObject(IlvGraphic, IlvManager, int)
the index of the
layer (see IlvManagerLayer.getIndex()
) returned by the
method prepareLayer
for the corresponding layer.
manager
- The manager into which the contents of the DXF file is read.layerName
- The name of the layer as read in the DXF file.manager
where the entities of the DXF
file that belong to the layer named layerName
must be added.IlvGraphic createPoint(IlvPoint point, double thickness, Color color)
point
- The location of the point.thickness
- The thickness of the point.color
- The color of the point.null
if no graphic object should be created for the corresponding DXF entity.IlvGraphic createLine(IlvPoint from, IlvPoint to, double thickness, Color color)
from
- The starting point of the line.to
- The ending point of the line.thickness
- The thickness of the line.color
- The color of the line.null
if no graphic object should be created for the corresponding DXF entity.IlvGraphic createArc(IlvPoint center, double radius, double startAngle, double angleRange, double thickness, Color color)
center
- The center of the arc.radius
- The radius of the arc.startAngle
- The start angle of the arc in degrees.angleRange
- The angle range of the arc in degrees.thickness
- The thickness of the arc.color
- The color of the arc.IlvGraphic createCircle(IlvPoint center, double radius, double thickness, Color color)
center
- The center of the circle.radius
- The radius of the circle.thickness
- The thickness of the circle.color
- The color of the circle.null
if no graphic object should be created for the corresponding DXF entity.IlvGraphic createPolyline(IlvPoint[] points, boolean closed, boolean filled, double thickness, Color color)
points
- The array of points defining the polyline.closed
- Indicates whether the polyline is closed (in this case,
the first and last points in the array of points have
equal coordinates).filled
- Indicates whether the interior of the polyline is
filled.thickness
- The thickness of the polyline.color
- The color of the polyline.null
if no graphic object should be created for the corresponding DXF entity.IlvGraphic createTrace(IlvPoint[] points, double thickness, Color color)
points
- The array of points defining the trace.thickness
- The thickness of the trace.color
- The color of the trace.null
if no graphic object should be created for the corresponding DXF entity.IlvGraphic createSolid(IlvPoint[] points, double thickness, Color color)
points
- The array of points defining the solid.thickness
- The thickness of the solid.color
- The color of the solid.null
if no graphic object should be created for the corresponding DXF entity.IlvGraphic create3DFace(IlvPoint[] points, Color color)
points
- The array of points defining the 3D face.color
- The color of the 3D face.null
if no graphic object should be created for the corresponding DXF entity.IlvGraphic createSpline(IlvPoint[] points, boolean closed, double thickness, Color color)
points
- The array of points defining the control points of the spline.closed
- Indicates whether the spline is closed.thickness
- The thickness of the spline.color
- The color of the spline.null
if no graphic object should be created for the corresponding DXF entity.IlvGraphic createText(IlvPoint location, String text, boolean underlined, boolean antialiased, Font font, Color color)
location
- The location of the text.text
- The text to be shown.underlined
- Tells whether the text must be underlined.antialiased
- Tells whether the text must be antialiased.font
- The font of the text.color
- The color of the text.null
if no graphic object should be created for the corresponding DXF entity.IlvGraphic createDimension(String text, short type, IlvPoint p0, IlvPoint p1, IlvPoint p2, IlvPoint p3, IlvPoint p4, IlvPoint p5, IlvPoint p6)
text
- The text of the dimension.type
- The dimension type. See the Autodesk documentation of the
DXF format: Values 0-6 are integer values that represent the dimension type.
Values 32, 64, and 128 are bit values, which are added to the integer values
(value 32 is always set in R13 and later releases).
p0
- Definition point.p1
- Middle point.p2
- Insertion point.p3
- Definition point for linear and angular dimensions.p4
- Definition point for linear and angular dimensions.p5
- Definition point for diameter, radius, and angular dimensions.p6
- Point defining dimension arc for angular dimensions.null
if no graphic object should be created for the corresponding DXF entity.IlvGraphic createInsert(IlvGraphicVector children, String blockName, Color color)
children
- The graphic objects contained in the insert.blockName
- The name of the DXF BLOCK, as read in the DXF file.color
- The color of the insert.null
if no graphic object should be created for the corresponding DXF entity.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.