com.inscoper.nbo.Line¶
Represents the XML element Line. More...
Inherits from com.inscoper.nbo.Shape_Type, com.inscoper.nbo.NBOBaseClass
Public Functions¶
| Name | |
|---|---|
| synchronized void | delete() |
| Line() | |
| String | getTypeName() Returns the class type name. |
| String | getXMLName() Returns the XML element name corresponding to this class. |
| ENBOType | getNBOType() Returns the NBO Type corresponding to this class. |
| NBOBaseClassVector | getChildren() Returns a list of all classes derived from this class. |
| NBOBaseClassVector | getSubElements() Returns a list of all child elements contained in this class. |
| void | fromJsonFile(String path, boolean validate) Populates this object from a JSON file. |
| void | fromJsonFile(String path) Populates this object from a JSON file. |
| void | fromJsonString(String json_string, boolean validate) Populates this object from a JSON string. |
| void | fromJsonString(String json_string) Populates this object from a JSON string. |
| void | fromXmlFile(String path, boolean validate) Populates this object from a XML file. |
| void | fromXmlFile(String path) Populates this object from a XML file. |
| void | fromXmlString(String xml_string, boolean validate) Populates this object from a XML string. |
| void | fromXmlString(String xml_string) Populates this object from a XML string. |
| void | toXmlFile(String filename, boolean validate) Serializes this object to an XML file. |
| void | toXmlFile(String filename) Serializes this object to an XML file. |
| String | toXmlString(boolean validate) Serializes this object to an XML string. |
| String | toXmlString() Serializes this object to an XML string. |
| void | setX1(float value, boolean validate) Sets the value of the X1 attribute. |
| void | setX1(float value) Sets the value of the X1 attribute. |
| float | getX1() Returns the value of the X1 attribute. |
| void | resetX1() Resets the X1 attribute to an unset state. |
| boolean | hasX1() Checks whether the X1 attribute is present. |
| void | setY1(float value, boolean validate) Sets the value of the Y1 attribute. |
| void | setY1(float value) Sets the value of the Y1 attribute. |
| float | getY1() Returns the value of the Y1 attribute. |
| void | resetY1() Resets the Y1 attribute to an unset state. |
| boolean | hasY1() Checks whether the Y1 attribute is present. |
| void | setX2(float value, boolean validate) Sets the value of the X2 attribute. |
| void | setX2(float value) Sets the value of the X2 attribute. |
| float | getX2() Returns the value of the X2 attribute. |
| void | resetX2() Resets the X2 attribute to an unset state. |
| boolean | hasX2() Checks whether the X2 attribute is present. |
| void | setY2(float value, boolean validate) Sets the value of the Y2 attribute. |
| void | setY2(float value) Sets the value of the Y2 attribute. |
| float | getY2() Returns the value of the Y2 attribute. |
| void | resetY2() Resets the Y2 attribute to an unset state. |
| boolean | hasY2() Checks whether the Y2 attribute is present. |
| void | setMarkerStart(Marker_Type value, boolean validate) Sets the value of the MarkerStart attribute. |
| void | setMarkerStart(Marker_Type value) Sets the value of the MarkerStart attribute. |
| Marker_Type | getMarkerStart() Returns the value of the MarkerStart attribute. |
| void | resetMarkerStart() Resets the MarkerStart attribute to an unset state. |
| boolean | hasMarkerStart() Checks whether the optional MarkerStart attribute is present. |
| void | setMarkerEnd(Marker_Type value, boolean validate) Sets the value of the MarkerEnd attribute. |
| void | setMarkerEnd(Marker_Type value) Sets the value of the MarkerEnd attribute. |
| Marker_Type | getMarkerEnd() Returns the value of the MarkerEnd attribute. |
| void | resetMarkerEnd() Resets the MarkerEnd attribute to an unset state. |
| boolean | hasMarkerEnd() Checks whether the optional MarkerEnd attribute is present. |
| Line | __internal_create(long cPtr, boolean own) |
| Line | fromBase(NBOBaseClass base) Cast a NBOBaseClass to a CMOS. |
Protected Functions¶
| Name | |
|---|---|
| Line(long cPtr, boolean cMemoryOwn) | |
| void | swigSetCMemOwn(boolean own) |
| void | finalize() |
| long | getCPtr(Line obj) |
Additional inherited members¶
Public Functions inherited from com.inscoper.nbo.Shape_Type
| Name | |
|---|---|
| Shape_Type() | |
| void | setFillColor(Color_Type value, boolean validate) Sets the value of the FillColor attribute. |
| void | setFillColor(Color_Type value) Sets the value of the FillColor attribute. |
| Color_Type | getFillColor() Returns the value of the FillColor attribute. |
| void | resetFillColor() Resets the FillColor attribute to an unset state. |
| boolean | hasFillColor() Checks whether the optional FillColor attribute is present. |
| void | setFillRule(String value, boolean validate) Sets the value of the FillRule attribute. |
| void | setFillRule(String value) Sets the value of the FillRule attribute. |
| String | getFillRule() Returns the value of the FillRule attribute. |
| void | resetFillRule() Resets the FillRule attribute to an unset state. |
| boolean | hasFillRule() Checks whether the FillRule attribute is present. |
| void | setStrokeColor(Color_Type value, boolean validate) Sets the value of the StrokeColor attribute. |
| void | setStrokeColor(Color_Type value) Sets the value of the StrokeColor attribute. |
| Color_Type | getStrokeColor() Returns the value of the StrokeColor attribute. |
| void | resetStrokeColor() Resets the StrokeColor attribute to an unset state. |
| boolean | hasStrokeColor() Checks whether the optional StrokeColor attribute is present. |
| void | setStrokeWidth(float value, boolean validate) Sets the value of the StrokeWidth attribute. |
| void | setStrokeWidth(float value) Sets the value of the StrokeWidth attribute. |
| float | getStrokeWidth() Returns the value of the StrokeWidth attribute. |
| void | resetStrokeWidth() Resets the StrokeWidth attribute to an unset state. |
| boolean | hasStrokeWidth() Checks whether the StrokeWidth attribute is present. |
| void | setStrokeWidthUnit(UnitsLength_Type value, boolean validate) Sets the value of the StrokeWidthUnit attribute. |
| void | setStrokeWidthUnit(UnitsLength_Type value) Sets the value of the StrokeWidthUnit attribute. |
| UnitsLength_Type | getStrokeWidthUnit() Returns the value of the StrokeWidthUnit attribute. |
| void | resetStrokeWidthUnit() Resets the StrokeWidthUnit attribute to an unset state. |
| boolean | hasStrokeWidthUnit() Checks whether the optional StrokeWidthUnit attribute is present. |
| void | setStrokeDashArray(String value, boolean validate) Sets the value of the StrokeDashArray attribute. |
| void | setStrokeDashArray(String value) Sets the value of the StrokeDashArray attribute. |
| String | getStrokeDashArray() Returns the value of the StrokeDashArray attribute. |
| void | resetStrokeDashArray() Resets the StrokeDashArray attribute to an unset state. |
| boolean | hasStrokeDashArray() Checks whether the StrokeDashArray attribute is present. |
| void | setText(String value, boolean validate) Sets the value of the Text attribute. |
| void | setText(String value) Sets the value of the Text attribute. |
| String | getText() Returns the value of the Text attribute. |
| void | resetText() Resets the Text attribute to an unset state. |
| boolean | hasText() Checks whether the Text attribute is present. |
| void | setFontFamily(String value, boolean validate) Sets the value of the FontFamily attribute. |
| void | setFontFamily(String value) Sets the value of the FontFamily attribute. |
| String | getFontFamily() Returns the value of the FontFamily attribute. |
| void | resetFontFamily() Resets the FontFamily attribute to an unset state. |
| boolean | hasFontFamily() Checks whether the FontFamily attribute is present. |
| void | setFontSize(NonNegativeInt_Type value, boolean validate) Sets the value of the FontSize attribute. |
| void | setFontSize(NonNegativeInt_Type value) Sets the value of the FontSize attribute. |
| NonNegativeInt_Type | getFontSize() Returns the value of the FontSize attribute. |
| void | resetFontSize() Resets the FontSize attribute to an unset state. |
| boolean | hasFontSize() Checks whether the optional FontSize attribute is present. |
| void | setFontSizeUnit(UnitsLength_Type value, boolean validate) Sets the value of the FontSizeUnit attribute. |
| void | setFontSizeUnit(UnitsLength_Type value) Sets the value of the FontSizeUnit attribute. |
| UnitsLength_Type | getFontSizeUnit() Returns the value of the FontSizeUnit attribute. |
| void | resetFontSizeUnit() Resets the FontSizeUnit attribute to an unset state. |
| boolean | hasFontSizeUnit() Checks whether the optional FontSizeUnit attribute is present. |
| void | setFontStyle(String value, boolean validate) Sets the value of the FontStyle attribute. |
| void | setFontStyle(String value) Sets the value of the FontStyle attribute. |
| String | getFontStyle() Returns the value of the FontStyle attribute. |
| void | resetFontStyle() Resets the FontStyle attribute to an unset state. |
| boolean | hasFontStyle() Checks whether the FontStyle attribute is present. |
| void | setLocked(boolean value, boolean validate) Sets the value of the Locked attribute. |
| void | setLocked(boolean value) Sets the value of the Locked attribute. |
| boolean | getLocked() Returns the value of the Locked attribute. |
| void | resetLocked() Resets the Locked attribute to an unset state. |
| boolean | hasLocked() Checks whether the Locked attribute is present. |
| void | setID(ShapeID_Type value, boolean validate) Sets the value of the ID attribute. |
| void | setID(ShapeID_Type value) Sets the value of the ID attribute. |
| ShapeID_Type | getID() Returns the value of the ID attribute. |
| void | resetID() Resets the ID attribute to an unset state. |
| boolean | hasID() Checks whether the optional ID attribute is present. |
| void | setTheZ(NonNegativeInt_Type value, boolean validate) Sets the value of the TheZ attribute. |
| void | setTheZ(NonNegativeInt_Type value) Sets the value of the TheZ attribute. |
| NonNegativeInt_Type | getTheZ() Returns the value of the TheZ attribute. |
| void | resetTheZ() Resets the TheZ attribute to an unset state. |
| boolean | hasTheZ() Checks whether the optional TheZ attribute is present. |
| void | setTheT(NonNegativeInt_Type value, boolean validate) Sets the value of the TheT attribute. |
| void | setTheT(NonNegativeInt_Type value) Sets the value of the TheT attribute. |
| NonNegativeInt_Type | getTheT() Returns the value of the TheT attribute. |
| void | resetTheT() Resets the TheT attribute to an unset state. |
| boolean | hasTheT() Checks whether the optional TheT attribute is present. |
| void | setTheC(NonNegativeInt_Type value, boolean validate) Sets the value of the TheC attribute. |
| void | setTheC(NonNegativeInt_Type value) Sets the value of the TheC attribute. |
| NonNegativeInt_Type | getTheC() Returns the value of the TheC attribute. |
| void | resetTheC() Resets the TheC attribute to an unset state. |
| boolean | hasTheC() Checks whether the optional TheC attribute is present. |
| void | setTransform(AffineTransform_Type value, boolean validate) Sets the value of the Transform element. |
| void | setTransform(AffineTransform_Type value) Sets the value of the Transform element. |
| AffineTransform_Type | getTransform() Returns the value of the Transform element. |
| void | resetTransform() Resets the Transform element to an unset state. |
| boolean | hasTransform() Checks whether the optional Transform element is present. |
| void | setAnnotationRef_List(AnnotationRefVector value, boolean validate) Sets the list of AnnotationRef elements. |
| void | setAnnotationRef_List(AnnotationRefVector value) Sets the list of AnnotationRef elements. |
| AnnotationRefVector | getAnnotationRef_List() Returns the list of AnnotationRef elements. |
| void | addToAnnotationRef_List(AnnotationRef value, boolean validate) Adds a new AnnotationRef element to this object. |
| void | addToAnnotationRef_List(AnnotationRef value) Adds a new AnnotationRef element to this object. |
| void | clearAnnotationRef_List() Clear the list of AnnotationRef. |
| StringSet | getFillRuleAllowedValues() Returns the allowed values for this attribut. |
| StringSet | getStrokeDashArrayAllowedValues() Returns the allowed values for this attribut. |
| StringSet | getTextAllowedValues() Returns the allowed values for this attribut. |
| StringSet | getFontFamilyAllowedValues() Returns the allowed values for this attribut. |
| StringSet | getFontStyleAllowedValues() Returns the allowed values for this attribut. |
Protected Functions inherited from com.inscoper.nbo.Shape_Type
| Name | |
|---|---|
| Shape_Type(long cPtr, boolean cMemoryOwn) |
Protected Functions inherited from com.inscoper.nbo.NBOBaseClass
| Name | |
|---|---|
| NBOBaseClass(long cPtr, boolean cMemoryOwn) |
Detailed Description¶
Represents the XML element Line.
A straight line defined by it's end points.
Public Functions Documentation¶
function delete¶
Reimplements: com.inscoper.nbo.Shape_Type.delete
function Line¶
function getTypeName¶
Returns the class type name.
Return: The class type name
Reimplements: com.inscoper.nbo.Shape_Type.getTypeName
function getXMLName¶
Returns the XML element name corresponding to this class.
Return: The XML element name
Reimplements: com.inscoper.nbo.Shape_Type.getXMLName
function getNBOType¶
Returns the NBO Type corresponding to this class.
Return: The NBO Type value
Reimplements: com.inscoper.nbo.Shape_Type.getNBOType
function getChildren¶
Returns a list of all classes derived from this class.
Return: The list of derived classes
Reimplements: com.inscoper.nbo.Shape_Type.getChildren
function getSubElements¶
Returns a list of all child elements contained in this class.
Return: The list of child classes
Reimplements: com.inscoper.nbo.Shape_Type.getSubElements
function fromJsonFile¶
Populates this object from a JSON file.
Parameters:
- path The path to the JSON file
- validate If true, validates constraints on value. Default is true.
Reimplements: com.inscoper.nbo.Shape_Type.fromJsonFile
function fromJsonFile¶
Populates this object from a JSON file.
Parameters:
- path The path to the JSON file
Reimplements: com.inscoper.nbo.Shape_Type.fromJsonFile
function fromJsonString¶
Populates this object from a JSON string.
Parameters:
- json_string The JSON content as a string
- validate If true, validates constraints on value. Default is true.
Reimplements: com.inscoper.nbo.Shape_Type.fromJsonString
function fromJsonString¶
Populates this object from a JSON string.
Parameters:
- json_string The JSON content as a string
Reimplements: com.inscoper.nbo.Shape_Type.fromJsonString
function fromXmlFile¶
Populates this object from a XML file.
Parameters:
- path The path to the XML file
- validate If true, validates constraints on value. Default is true.
Reimplements: com.inscoper.nbo.Shape_Type.fromXmlFile
function fromXmlFile¶
Populates this object from a XML file.
Parameters:
- path The path to the XML file
Reimplements: com.inscoper.nbo.Shape_Type.fromXmlFile
function fromXmlString¶
Populates this object from a XML string.
Parameters:
- xml_string The XML content as a string
- validate If true, validates constraints on value. Default is true.
Reimplements: com.inscoper.nbo.Shape_Type.fromXmlString
function fromXmlString¶
Populates this object from a XML string.
Parameters:
- xml_string The XML content as a string
Reimplements: com.inscoper.nbo.Shape_Type.fromXmlString
function toXmlFile¶
Serializes this object to an XML file.
Parameters:
- filename The path to the output XML file
- validate If true, validates constraints on value. Default is true.
Reimplements: com.inscoper.nbo.Shape_Type.toXmlFile
function toXmlFile¶
Serializes this object to an XML file.
Parameters:
- filename The path to the output XML file
Reimplements: com.inscoper.nbo.Shape_Type.toXmlFile
function toXmlString¶
Serializes this object to an XML string.
Parameters:
- validate If true, validates constraints on value. Default is true.
Return: A string containing the XML representation of this object
Reimplements: com.inscoper.nbo.Shape_Type.toXmlString
function toXmlString¶
Serializes this object to an XML string.
Return: A string containing the XML representation of this object
Reimplements: com.inscoper.nbo.Shape_Type.toXmlString
function setX1¶
Sets the value of the X1 attribute.
Parameters:
- value The value to set
- validate If true, validates constraints on value. Default is true.
The X coordinate of the start of the line. [units pixels]
function setX1¶
Sets the value of the X1 attribute.
Parameters:
- value The value to set
The X coordinate of the start of the line. [units pixels]
function getX1¶
Returns the value of the X1 attribute.
Return: The value of the attribute
The X coordinate of the start of the line. [units pixels]
function resetX1¶
Resets the X1 attribute to an unset state.
The X coordinate of the start of the line. [units pixels]
function hasX1¶
Checks whether the X1 attribute is present.
Return: true if the attribute has been set, false otherwise
The X coordinate of the start of the line. [units pixels]
function setY1¶
Sets the value of the Y1 attribute.
Parameters:
- value The value to set
- validate If true, validates constraints on value. Default is true.
The Y coordinate of the start of the line. [units pixels]
function setY1¶
Sets the value of the Y1 attribute.
Parameters:
- value The value to set
The Y coordinate of the start of the line. [units pixels]
function getY1¶
Returns the value of the Y1 attribute.
Return: The value of the attribute
The Y coordinate of the start of the line. [units pixels]
function resetY1¶
Resets the Y1 attribute to an unset state.
The Y coordinate of the start of the line. [units pixels]
function hasY1¶
Checks whether the Y1 attribute is present.
Return: true if the attribute has been set, false otherwise
The Y coordinate of the start of the line. [units pixels]
function setX2¶
Sets the value of the X2 attribute.
Parameters:
- value The value to set
- validate If true, validates constraints on value. Default is true.
The X coordinate of the end of the line. [units pixels]
function setX2¶
Sets the value of the X2 attribute.
Parameters:
- value The value to set
The X coordinate of the end of the line. [units pixels]
function getX2¶
Returns the value of the X2 attribute.
Return: The value of the attribute
The X coordinate of the end of the line. [units pixels]
function resetX2¶
Resets the X2 attribute to an unset state.
The X coordinate of the end of the line. [units pixels]
function hasX2¶
Checks whether the X2 attribute is present.
Return: true if the attribute has been set, false otherwise
The X coordinate of the end of the line. [units pixels]
function setY2¶
Sets the value of the Y2 attribute.
Parameters:
- value The value to set
- validate If true, validates constraints on value. Default is true.
The Y coordinate of the end of the line. [units pixels]
function setY2¶
Sets the value of the Y2 attribute.
Parameters:
- value The value to set
The Y coordinate of the end of the line. [units pixels]
function getY2¶
Returns the value of the Y2 attribute.
Return: The value of the attribute
The Y coordinate of the end of the line. [units pixels]
function resetY2¶
Resets the Y2 attribute to an unset state.
The Y coordinate of the end of the line. [units pixels]
function hasY2¶
Checks whether the Y2 attribute is present.
Return: true if the attribute has been set, false otherwise
The Y coordinate of the end of the line. [units pixels]
function setMarkerStart¶
Sets the value of the MarkerStart attribute.
Parameters:
- value The value to set
- validate If true, validates constraints on value. Default is true.
No description available in the XSD standard.
function setMarkerStart¶
Sets the value of the MarkerStart attribute.
Parameters:
- value The value to set
No description available in the XSD standard.
function getMarkerStart¶
Returns the value of the MarkerStart attribute.
Return: The value of the attribute
No description available in the XSD standard.
function resetMarkerStart¶
Resets the MarkerStart attribute to an unset state.
No description available in the XSD standard.
function hasMarkerStart¶
Checks whether the optional MarkerStart attribute is present.
Return: true if the optional attribute has been set, false otherwise
No description available in the XSD standard.
function setMarkerEnd¶
Sets the value of the MarkerEnd attribute.
Parameters:
- value The value to set
- validate If true, validates constraints on value. Default is true.
No description available in the XSD standard.
function setMarkerEnd¶
Sets the value of the MarkerEnd attribute.
Parameters:
- value The value to set
No description available in the XSD standard.
function getMarkerEnd¶
Returns the value of the MarkerEnd attribute.
Return: The value of the attribute
No description available in the XSD standard.
function resetMarkerEnd¶
Resets the MarkerEnd attribute to an unset state.
No description available in the XSD standard.
function hasMarkerEnd¶
Checks whether the optional MarkerEnd attribute is present.
Return: true if the optional attribute has been set, false otherwise
No description available in the XSD standard.
function __internal_create¶
Reimplements: com.inscoper.nbo.Shape_Type.__internal_create
function fromBase¶
Cast a NBOBaseClass to a CMOS.
Parameters:
- base The base class to cast
Return: The casted element, or nullptr if the cast fails
Reimplements: com.inscoper.nbo.Shape_Type.fromBase
Protected Functions Documentation¶
function Line¶
function swigSetCMemOwn¶
Reimplements: com.inscoper.nbo.Shape_Type.swigSetCMemOwn
function finalize¶
Reimplements: com.inscoper.nbo.Shape_Type.finalize
function getCPtr¶
Updated on 2026-06-22 at 17:06:30 +0200