public class OdgPage
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
OdgPage.XColRange |
| Modifier and Type | Field and Description |
|---|---|
(package private) java.util.Map<java.lang.String,XY_FBcl> |
idxIdDisareaById
Only used if a connection to it exists.
|
(package private) java.util.TreeMap<java.lang.Integer,OdgPage.XColRange> |
idxXcol |
(package private) java.util.List<XY_FBcl> |
listDisarea |
(package private) int |
pageNr |
(package private) java.util.List<OdgShape> |
sh_ofbState |
(package private) java.util.List<OdgShape> |
sh_ofbStateTrans |
(package private) java.util.List<OdgShape> |
shAttr |
(package private) java.util.List<OdgShape> |
shCBlock
A small connection point instead a glue point on a Graphic block
should be handled as connection to the shape of the Graphic block.
|
(package private) java.util.List<OdgShape> |
shConnPoint |
(package private) java.util.List<OdgShape> |
shDemux |
(package private) java.util.List<OdgShape> |
shDemuxPin |
(package private) java.util.List<OdgShape> |
shDisableArea |
(package private) java.util.List<OdgShape> |
shDocu |
(package private) java.util.List<OdgShape> |
shEvPin |
(package private) java.util.List<OdgShape> |
shExpr |
(package private) java.util.List<OdgShape> |
shExprOut |
(package private) java.util.List<OdgShape> |
shExprPart |
(package private) java.util.List<OdgShape> |
shFBlock |
(package private) java.util.List<OdgShape> |
shFBname |
(package private) java.util.List<OdgShape> |
shImport |
(package private) java.util.List<OdgShape> |
shMdlPins |
(package private) java.util.List<OdgShape> |
shNoDrawStyle |
(package private) java.util.List<OdgShape> |
shNotUsed |
(package private) java.util.List<OdgShape> |
shPin |
(package private) java.util.List<OdgShape> |
shReq |
(package private) OdgShape |
shTitle |
(package private) java.util.List<OdgShape> |
shXref |
(package private) XmlForOdg |
xOdg |
(package private) XmlForOdg.Draw_page |
xpage |
| Constructor and Description |
|---|
OdgPage(int pageNr,
XmlForOdg.Draw_page xpage,
XmlForOdg xOdg) |
| Modifier and Type | Method and Description |
|---|---|
private void |
addXcol(OdgShape sh)
Detects the corresponding x-column for the given shape.
|
(package private) boolean |
gatherDisabledAreas(XmlForOdg.Draw_page xpage,
XmlForOdg xOdg,
java.util.Map<java.lang.String,java.lang.String> idxStyle) |
(package private) void |
gatherShapes(XmlForOdg.Draw_page xpage,
XmlForOdg xOdg,
java.util.Map<java.lang.String,java.lang.String> idxStyle)
It calls
sortShape(org.vishia.fbcl.readOdg.xml.XmlForOdg_Base.Draw_shape_Base, int, char, Map)
as its core operation. |
(package private) java.lang.String |
gatherTitle(XmlForOdg.Draw_page xpage,
XmlForOdg xOdg,
java.util.Map<java.lang.String,java.lang.String> idxStyle) |
boolean |
isConnectioninDisableArea(XY_FBcl xy)
Returns true if either the xy1 or xy2 is in a disableArea
|
boolean |
isinDisableArea(XY_FBcl odgxy)
Returns true if inside the shape area a disableArea exists
|
private boolean |
sortShape(XmlForOdg_Base.Draw_shape_Base xShape,
int nrGroup,
char xwhat,
java.util.Map<java.lang.String,java.lang.String> idxStyle)
Sorts the shapes which are found in the XML file of the graphic.
|
final int pageNr
OdgShape shTitle
final java.util.List<OdgShape> shImport
final java.util.List<XY_FBcl> listDisarea
final java.util.Map<java.lang.String,XY_FBcl> idxIdDisareaById
final java.util.List<OdgShape> shDisableArea
final java.util.List<OdgShape> shFBlock
final java.util.List<OdgShape> shFBname
final java.util.List<OdgShape> shMdlPins
final java.util.List<OdgShape> shDocu
final java.util.List<OdgShape> shReq
final java.util.List<OdgShape> shAttr
final java.util.List<OdgShape> shDemux
final java.util.List<OdgShape> shDemuxPin
final java.util.List<OdgShape> shExpr
final java.util.List<OdgShape> shExprPart
final java.util.List<OdgShape> shExprOut
final java.util.List<OdgShape> shEvPin
final java.util.List<OdgShape> shPin
final java.util.List<OdgShape> shCBlock
final java.util.List<OdgShape> shXref
final java.util.List<OdgShape> shConnPoint
final java.util.List<OdgShape> sh_ofbState
final java.util.List<OdgShape> sh_ofbStateTrans
final java.util.List<OdgShape> shNotUsed
final java.util.List<OdgShape> shNoDrawStyle
final java.util.TreeMap<java.lang.Integer,OdgPage.XColRange> idxXcol
final XmlForOdg.Draw_page xpage
final XmlForOdg xOdg
OdgPage(int pageNr,
XmlForOdg.Draw_page xpage,
XmlForOdg xOdg)
boolean gatherDisabledAreas(XmlForOdg.Draw_page xpage, XmlForOdg xOdg, java.util.Map<java.lang.String,java.lang.String> idxStyle)
java.lang.String gatherTitle(XmlForOdg.Draw_page xpage, XmlForOdg xOdg, java.util.Map<java.lang.String,java.lang.String> idxStyle)
void gatherShapes(XmlForOdg.Draw_page xpage, XmlForOdg xOdg, java.util.Map<java.lang.String,java.lang.String> idxStyle)
sortShape(org.vishia.fbcl.readOdg.xml.XmlForOdg_Base.Draw_shape_Base, int, char, Map)
as its core operation.xpage - xOdg - idxStyle - public boolean isinDisableArea(XY_FBcl odgxy)
odgxy - public boolean isConnectioninDisableArea(XY_FBcl xy)
xy - private boolean sortShape(XmlForOdg_Base.Draw_shape_Base xShape, int nrGroup, char xwhat, java.util.Map<java.lang.String,java.lang.String> idxStyle)
#gatherShapes(org.vishia.fbcl.readOdg.xml.XmlForOdg.Draw_page, XmlForOdg).
There the shapes are detected as 'draw_custom_shape', 'draw_frame' and 'draw_polygon'
in the page or also inside 'draw_g'.
XmlForOdg#getStyleFromid(String)
from the read XmlForOdg.Draw_shape_Base#get_draw_style_name() from XML File.
This textual given style is converted to the enum FBkind_FBcl and PinKind_FBcl
using OdgReader.idxFBkindFromStyle and OdgReader.idxPinKindFromStyle.
One of them should be found for a valid style.
OdgShape.OdgShape(int, FBkind_FBcl, PinKind_FBcl, String, String, org.vishia.fbcl.readOdg.xml.XmlForOdg_Base.Draw_shape_Base, int, char)
is created with the enum designation of the shape and some more arguments, also the 'nGroup' and 'xwhat' argument only used there.
shNotUsed.
If no style is given, it is added to shNoDrawStyle.
FBkind_FBcl to one of the List 'sh...' in this class.
FBkind_FBcl but found with PinKind_FBcl
are added either to shEvPin or shPin in this instance.
addXcol(OdgShape) to sort it on page by coordinates
xShape - XmlForOdg.Draw_shape_Base XML shape datanrGroup - 0 for non grouped or a sequenced number of the group where the shape was found.xwhat - Designation where found in XML, 's' for 'draw_custom_Shape', 'f' for 'draw_frame' and 'p' for 'draw_polygon'private void addXcol(OdgShape sh)
OdgShape.xCol
which contains the yet volatile OdgPage.XColRange.x for the column.
Later, on evaluation of the shape using shFBlock and shMdlPins
this reference is removed, instead OdgShape.odgxy . XY_FBcl.xc is set with the column value.
Hence all shapes are sorted in x-columns in a proper width, so that fine differences have no impact.
The column width used here is +- 9 mm.sh -