public CableSymbol(CableInfo cableInfo, E3Text text, Orientation orientation) { this.cableInfo = cableInfo; this.orientation = orientation; CableId = cableInfo.Id; ovalLength = 0; smallFontHeight = 2; bigFontHeight = 3; isCircle = true; E3Font smallFont = new E3Font(height: smallFontHeight); E3Font bigFont = new E3Font(height: 3); nameTextWidth = text.GetTextLength(cableInfo.Name, bigFont); typeTextWidth = text.GetTextLength(cableInfo.Type, smallFont); lengthTextWidth = text.GetTextLength(cableInfo.Length, smallFont); Size = GetSize(); }
public CableSymbol(CableInfo cableInfo, E3Text text, Orientation orientation) { this.cableInfo = cableInfo; this.orientation = orientation; CableId = cableInfo.Id; ovalLength = 0; smallFontHeight = 2; bigFontHeight = 3; isCircle = true; E3Font smallFont = new E3Font(height: smallFontHeight); E3Font bigFont = new E3Font(height: 3); nameTextWidth = text.GetTextLength(cableInfo.Name, bigFont); typeTextWidth = text.GetTextLength(cableInfo.Type, smallFont); lengthTextWidth = text.GetTextLength(cableInfo.Length, smallFont); Size = GetSize(); }