Element: Pipe.

Icon: 

Text: A two-dimensional pipe.

Description: A Pipe  is a two-dimensional drawing element that draws a pipe filled with liquid. The pipe can be positioned and resized interactively.


A pipe with four vertices.

Table of properties

Name Description Values accepted
Input
Points The number of vertex of the pipe. Minimum is 2. Any constant or variable of type int.
X The X coordinates of the vertices of the element. A unidimensional array of type double with the correct number of points (as indicated by the Points property), with one value for each element.
Alternatively, a constant or variable of type double or int, that sets the same value to all the elements of the set.
Y The Y coordinates of the vertices of the element. A unidimensional array of type double with the correct number of points (as indicated by the Points property), with one value for each element.
Alternatively, a constant or variable of type double or int, that sets the same value to all the elements of the set.
Position and Size
Position X The X coordinate of the base position of the element. Any constant or variable of type double or int.
Position Y The Y coordinate of the base position of the element. Any constant or variable of type double or int.
Size X The size of the element in the X direction. Any constant or variable of type double or int.
Size Y The size of the element in the Y direction. Any constant or variable of type double or int.

Visibility and Interactivity

Visible Whether the element is visible. A boolean variable or one of the constants true or false.
Movable Whether the element moves as a whole when the user drags any of its vertex. A boolean variable or one of the constants true or false.
Resizable Whether the element resizes when the user drags any of its vertex. A boolean variable or one of the constants true or false.
On Press The action to invoke when the element is pressed. The Java code to invoke for the action. 
On Drag The action to invoke when the element is moved. The Java code to invoke for the action. 
On Release The action to invoke when the element is released. The Java code to invoke for the action. 
On Enter The action to invoke when the pointer enters the element. The Java code to invoke for the action. 
On Exit The action to invoke when the pointer leaves the element. The Java code to invoke for the action. 
Point Selected The index of the vertex affected by the interaction.. A variable of type int
Configuration
Width The width of the element. Any constant or variable of type double or int.
Filled Whether the element is filled with liquid. A boolean variable or one of the constants true or false.
End Closed Whether the element is closed at its end vertex. A boolean variable or one of the constants true or false.
Fixed Corners Whether one or more vertex resize or not when being dragged (if the Resizable property is also true). A constant or variable of type int. That vertex won't resize.

A unidimensional array of type boolean with the correct number of points (as indicated by the Points property), with one value for each element.

Graphical Aspect
Fill Color The color used for the liquid inside the pipe.

See the values for the Line Color property.

Line Color The color used for the lines of the element. An Object variable of the class java.awt.Color or one of the predefined colors: black, blue, cyan, darkGray, gray, green, lightGray, magenta, orange, pink, red, white, yellow.

A color can also be specified providing its integer RGB coordinates (between 0 and 255), plus an optional transparency coordinate.

The default value is decided by the system.

Empty Color The color used to fill the pipe when it is empty.

See the values for the Line Color property.

Stroke The thickness for the lines of the element. Any constant or variable of type double or int. The default value is 1.

Object variables of the class  java.awt.Stroke are also accepted.