PositiveMagneticPort

connector PositiveMagneticPort "Positive magnetic port"
    extends FluxTubes.Interfaces.MagneticPort;

    annotation (
        defaultComponentName = "port_p",
        Icon(
            coordinateSystem(
                preserveAspectRatio = false,
                extent = {
                    {-100, -100}, 
                    {100, 100}}),
            graphics = {
                Rectangle(
                    extent = {
                        {-100, 100}, 
                        {100, -100}},
                    lineColor = {255, 127, 0},
                    fillColor = {255, 127, 0},
                    fillPattern = FillPattern.Solid)}),
        Diagram(
            coordinateSystem(
                preserveAspectRatio = false,
                extent = {
                    {-100, -100}, 
                    {100, 100}}),
            graphics = {
                Text(
                    extent = {
                        {-100, 160}, 
                        {-100, 100}},
                    lineColor = {255, 127, 0},
                    textString = "%name"), 
                Rectangle(
                    extent = {
                        {-40, 40}, 
                        {40, -40}},
                    lineColor = {255, 127, 0},
                    fillColor = {255, 127, 0},
                    fillPattern = FillPattern.Solid)}));
end PositiveMagneticPort;