Class DexpiLayoutConfig
java.lang.Object
neqsim.process.processmodel.dexpi.DexpiLayoutConfig
Configuration class for DEXPI layout parameters.
Provides configurable spacing, colors, and sizing values for the auto-layout engine. Users can create a custom configuration and pass it to the export methods to control drawing appearance.
- Version:
- 1.0
- Author:
- NeqSim
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate doubleBattery limit boundary padding around equipment (mm).private doubleDrawing border margin (mm).private doubleDefault scale factor for equipment shapes.private StringFont name for all labels and text.private doubleVertical offset from process line to instrument bubble center.private doubleHorizontal spacing between instrument bubbles on the same equipment.private StringProcess line colour - blue component (0-1).private StringProcess line colour - green component (0-1).private StringProcess line colour - red component (0-1).private doubleLine weight for process piping lines.private booleanWhether to include the battery limit boundary.private booleanWhether to show equipment bar labels with simulation data.private booleanWhether to show fail position markers on valves.private booleanWhether to include flow direction arrows on connection lines.private booleanWhether to show insulation markings on lines.private booleanWhether to show orientation markers on equipment.private booleanWhether to include the revision history table.private booleanWhether to show SIL level markers on instruments.private booleanWhether to include stream number labels on connection lines.private booleanWhether to include the stream data table at the bottom of the drawing.private booleanWhether to include the symbol legend box.private doubleLine weight for signal/instrument lines.private doubleFont height for equipment tag name labels.private doubleHorizontal spacing between equipment columns (mm in drawing space).private doubleStarting X coordinate for the first equipment column.private doubleBase Y coordinate for the main process line.private doubleVertical spacing for branch lines below the main process line. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleGets the battery limit padding.doubleGets the drawing border margin.doubleGets the default scale factor for equipment shapes.Gets the font name for labels.doubleGets the instrument offset Y.doubleGets the instrument X spacing.Gets the process line colour blue component.Gets the process line colour green component.Gets the process line colour red component.doubleGets the process line weight.doubleGets the signal line weight.doubleGets the tag font height.doubleGets the horizontal spacing between equipment columns.doubleGets the starting X coordinate.doublegetYBase()Gets the base Y coordinate for the main process line.doubleGets the vertical branch offset.booleanReturns whether the battery limit boundary should be shown.booleanReturns whether equipment bar labels with simulation data are shown.booleanReturns whether fail position markers are shown on valves.booleanReturns whether flow arrows are shown on connection lines.booleanReturns whether insulation marks are shown.booleanReturns whether orientation markers are shown on equipment.booleanReturns whether the revision history should be shown.booleanReturns whether SIL markers are shown on instruments.booleanReturns whether stream labels are shown.booleanReturns whether the stream table should be shown.booleanReturns whether the symbol legend should be shown.setBatteryLimitPadding(double batteryLimitPadding) Sets the battery limit padding.setBorderMargin(double borderMargin) Sets the drawing border margin.setDefaultScale(double defaultScale) Sets the default scale factor for equipment shapes.setFontName(String fontName) Sets the font name for labels.setInstrumentOffsetY(double instrumentOffsetY) Sets the instrument offset Y.setInstrumentXSpacing(double instrumentXSpacing) Sets the instrument X spacing.setLineColor(String r, String g, String b) Sets the process line colour components.setProcessLineWeight(double processLineWeight) Sets the process line weight.setShowBatteryLimit(boolean showBatteryLimit) Sets whether the battery limit boundary should be shown.setShowEquipmentBars(boolean showEquipmentBars) Sets whether equipment bar labels with simulation data are shown.setShowFailPositionMarkers(boolean showFailPositionMarkers) Sets whether fail position markers are shown on valves.setShowFlowArrows(boolean showFlowArrows) Sets whether flow arrows are shown on connection lines.setShowInsulationMarks(boolean showInsulationMarks) Sets whether insulation marks are shown.setShowOrientationMarkers(boolean showOrientationMarkers) Sets whether orientation markers are shown on equipment.setShowRevisionHistory(boolean showRevisionHistory) Sets whether the revision history should be shown.setShowSilMarkers(boolean showSilMarkers) Sets whether SIL markers are shown on instruments.setShowStreamLabels(boolean showStreamLabels) Sets whether stream labels are shown.setShowStreamTable(boolean showStreamTable) Sets whether the stream table should be shown.setShowSymbolLegend(boolean showSymbolLegend) Sets whether the symbol legend should be shown.setSignalLineWeight(double signalLineWeight) Sets the signal line weight.setTagFontHeight(double tagFontHeight) Sets the tag font height.setXSpacing(double xSpacing) Sets the horizontal spacing between equipment columns.setXStart(double xStart) Sets the starting X coordinate.setYBase(double yBase) Sets the base Y coordinate for the main process line.setYBranchOffset(double yBranchOffset) Sets the vertical branch offset.
-
Field Details
-
xSpacing
private double xSpacingHorizontal spacing between equipment columns (mm in drawing space). -
yBranchOffset
private double yBranchOffsetVertical spacing for branch lines below the main process line. -
xStart
private double xStartStarting X coordinate for the first equipment column. -
yBase
private double yBaseBase Y coordinate for the main process line. -
defaultScale
private double defaultScaleDefault scale factor for equipment shapes. -
fontName
Font name for all labels and text. -
tagFontHeight
private double tagFontHeightFont height for equipment tag name labels. -
processLineWeight
private double processLineWeightLine weight for process piping lines. -
signalLineWeight
private double signalLineWeightLine weight for signal/instrument lines. -
lineColorR
Process line colour - red component (0-1). -
lineColorG
Process line colour - green component (0-1). -
lineColorB
Process line colour - blue component (0-1). -
borderMargin
private double borderMarginDrawing border margin (mm). -
batteryLimitPadding
private double batteryLimitPaddingBattery limit boundary padding around equipment (mm). -
instrumentOffsetY
private double instrumentOffsetYVertical offset from process line to instrument bubble center. -
instrumentXSpacing
private double instrumentXSpacingHorizontal spacing between instrument bubbles on the same equipment. -
showStreamTable
private boolean showStreamTableWhether to include the stream data table at the bottom of the drawing. -
showSymbolLegend
private boolean showSymbolLegendWhether to include the symbol legend box. -
showRevisionHistory
private boolean showRevisionHistoryWhether to include the revision history table. -
showBatteryLimit
private boolean showBatteryLimitWhether to include the battery limit boundary. -
showFlowArrows
private boolean showFlowArrowsWhether to include flow direction arrows on connection lines. -
showStreamLabels
private boolean showStreamLabelsWhether to include stream number labels on connection lines. -
showEquipmentBars
private boolean showEquipmentBarsWhether to show equipment bar labels with simulation data. -
showInsulationMarks
private boolean showInsulationMarksWhether to show insulation markings on lines. -
showFailPositionMarkers
private boolean showFailPositionMarkersWhether to show fail position markers on valves. -
showSilMarkers
private boolean showSilMarkersWhether to show SIL level markers on instruments. -
showOrientationMarkers
private boolean showOrientationMarkersWhether to show orientation markers on equipment.
-
-
Constructor Details
-
DexpiLayoutConfig
public DexpiLayoutConfig()Creates a default layout configuration.
-
-
Method Details
-
getXSpacing
public double getXSpacing()Gets the horizontal spacing between equipment columns.- Returns:
- X spacing in mm
-
setXSpacing
Sets the horizontal spacing between equipment columns.- Parameters:
xSpacing- X spacing in mm- Returns:
- this config for method chaining
-
getYBranchOffset
public double getYBranchOffset()Gets the vertical branch offset.- Returns:
- Y branch offset in mm
-
setYBranchOffset
Sets the vertical branch offset.- Parameters:
yBranchOffset- Y branch offset in mm- Returns:
- this config for method chaining
-
getXStart
public double getXStart()Gets the starting X coordinate.- Returns:
- X start position in mm
-
setXStart
Sets the starting X coordinate.- Parameters:
xStart- X start position in mm- Returns:
- this config for method chaining
-
getYBase
public double getYBase()Gets the base Y coordinate for the main process line.- Returns:
- Y base position in mm
-
setYBase
Sets the base Y coordinate for the main process line.- Parameters:
yBase- Y base position in mm- Returns:
- this config for method chaining
-
getDefaultScale
public double getDefaultScale()Gets the default scale factor for equipment shapes.- Returns:
- scale factor
-
setDefaultScale
Sets the default scale factor for equipment shapes.- Parameters:
defaultScale- scale factor- Returns:
- this config for method chaining
-
getFontName
-
setFontName
Sets the font name for labels.- Parameters:
fontName- font name- Returns:
- this config for method chaining
-
getTagFontHeight
public double getTagFontHeight()Gets the tag font height.- Returns:
- font height in mm
-
setTagFontHeight
Sets the tag font height.- Parameters:
tagFontHeight- font height in mm- Returns:
- this config for method chaining
-
getProcessLineWeight
public double getProcessLineWeight()Gets the process line weight.- Returns:
- line weight in mm
-
setProcessLineWeight
Sets the process line weight.- Parameters:
processLineWeight- line weight in mm- Returns:
- this config for method chaining
-
getSignalLineWeight
public double getSignalLineWeight()Gets the signal line weight.- Returns:
- line weight in mm
-
setSignalLineWeight
Sets the signal line weight.- Parameters:
signalLineWeight- line weight in mm- Returns:
- this config for method chaining
-
getLineColorR
Gets the process line colour red component.- Returns:
- red component (0-1)
-
getLineColorG
Gets the process line colour green component.- Returns:
- green component (0-1)
-
getLineColorB
Gets the process line colour blue component.- Returns:
- blue component (0-1)
-
setLineColor
Sets the process line colour components.- Parameters:
r- red component (0-1)g- green component (0-1)b- blue component (0-1)- Returns:
- this config for method chaining
-
getBorderMargin
public double getBorderMargin()Gets the drawing border margin.- Returns:
- margin in mm
-
setBorderMargin
Sets the drawing border margin.- Parameters:
borderMargin- margin in mm- Returns:
- this config for method chaining
-
getBatteryLimitPadding
public double getBatteryLimitPadding()Gets the battery limit padding.- Returns:
- padding in mm
-
setBatteryLimitPadding
Sets the battery limit padding.- Parameters:
batteryLimitPadding- padding in mm- Returns:
- this config for method chaining
-
getInstrumentOffsetY
public double getInstrumentOffsetY()Gets the instrument offset Y.- Returns:
- offset in mm
-
setInstrumentOffsetY
Sets the instrument offset Y.- Parameters:
instrumentOffsetY- offset in mm- Returns:
- this config for method chaining
-
getInstrumentXSpacing
public double getInstrumentXSpacing()Gets the instrument X spacing.- Returns:
- spacing in mm
-
setInstrumentXSpacing
Sets the instrument X spacing.- Parameters:
instrumentXSpacing- spacing in mm- Returns:
- this config for method chaining
-
isShowStreamTable
public boolean isShowStreamTable()Returns whether the stream table should be shown.- Returns:
- true if stream table is shown
-
setShowStreamTable
Sets whether the stream table should be shown.- Parameters:
showStreamTable- true to show stream table- Returns:
- this config for method chaining
-
isShowSymbolLegend
public boolean isShowSymbolLegend()Returns whether the symbol legend should be shown.- Returns:
- true if symbol legend is shown
-
setShowSymbolLegend
Sets whether the symbol legend should be shown.- Parameters:
showSymbolLegend- true to show symbol legend- Returns:
- this config for method chaining
-
isShowRevisionHistory
public boolean isShowRevisionHistory()Returns whether the revision history should be shown.- Returns:
- true if revision history is shown
-
setShowRevisionHistory
Sets whether the revision history should be shown.- Parameters:
showRevisionHistory- true to show revision history- Returns:
- this config for method chaining
-
isShowBatteryLimit
public boolean isShowBatteryLimit()Returns whether the battery limit boundary should be shown.- Returns:
- true if battery limit is shown
-
setShowBatteryLimit
Sets whether the battery limit boundary should be shown.- Parameters:
showBatteryLimit- true to show battery limit- Returns:
- this config for method chaining
-
isShowFlowArrows
public boolean isShowFlowArrows()Returns whether flow arrows are shown on connection lines.- Returns:
- true if flow arrows are shown
-
setShowFlowArrows
Sets whether flow arrows are shown on connection lines.- Parameters:
showFlowArrows- true to show flow arrows- Returns:
- this config for method chaining
-
isShowStreamLabels
public boolean isShowStreamLabels()Returns whether stream labels are shown.- Returns:
- true if stream labels are shown
-
setShowStreamLabels
Sets whether stream labels are shown.- Parameters:
showStreamLabels- true to show stream labels- Returns:
- this config for method chaining
-
isShowEquipmentBars
public boolean isShowEquipmentBars()Returns whether equipment bar labels with simulation data are shown.- Returns:
- true if equipment bars are shown
-
setShowEquipmentBars
Sets whether equipment bar labels with simulation data are shown.- Parameters:
showEquipmentBars- true to show equipment bars- Returns:
- this config for method chaining
-
isShowInsulationMarks
public boolean isShowInsulationMarks()Returns whether insulation marks are shown.- Returns:
- true if insulation marks are shown
-
setShowInsulationMarks
Sets whether insulation marks are shown.- Parameters:
showInsulationMarks- true to show insulation marks- Returns:
- this config for method chaining
-
isShowFailPositionMarkers
public boolean isShowFailPositionMarkers()Returns whether fail position markers are shown on valves.- Returns:
- true if fail position markers are shown
-
setShowFailPositionMarkers
Sets whether fail position markers are shown on valves.- Parameters:
showFailPositionMarkers- true to show fail position markers- Returns:
- this config for method chaining
-
isShowSilMarkers
public boolean isShowSilMarkers()Returns whether SIL markers are shown on instruments.- Returns:
- true if SIL markers are shown
-
setShowSilMarkers
Sets whether SIL markers are shown on instruments.- Parameters:
showSilMarkers- true to show SIL markers- Returns:
- this config for method chaining
-
isShowOrientationMarkers
public boolean isShowOrientationMarkers()Returns whether orientation markers are shown on equipment.- Returns:
- true if orientation markers are shown
-
setShowOrientationMarkers
Sets whether orientation markers are shown on equipment.- Parameters:
showOrientationMarkers- true to show orientation markers- Returns:
- this config for method chaining
-