Top  | Previous | Next

Line

Lines come in many styles

Lines come in many styles

Description

The line component displays a straight line. It can run north-south, east-west, or diagonally. You can add arrows to either side. The line can be dashed using any pattern you want. You can even draw the line like a sinusoidal wave!

Properties

Appearance

Anti Alias

Draw component using anti-aliasing?

Scripting name

antiAlias

Data type

boolean

Flags

expert

Color

Set the color of the line.

Scripting name

foreground

Data type

Color

Flags

bindable

Line Width

Set the width of the line in pixels.

Scripting name

lineWidth

Data type

int

Flags

bindable

Line Mode

The line mode determines where in the rectangle the line is drawn.

Scripting name

lineMode

Data type

int

Flags

bindable

Values

0

Horizontal/Vertical

1

Uphill (Left-Right)

2

Downhill (Left-Right)

Line Style

The line style determines how the shape of the line looks

Scripting name

lineStyle

Data type

int

Flags

bindable

Values

0

Plain

1

Dashed

2

Sinusoidal

3

Sinusoidal-Dashed

4

Loop

5

Loop-Dashed

Dash Pattern

Enter a string of comma-delimited numbers which indicate the stroke pattern for a dashed line. For instance, "3,5" means three pixels on, five pixels off.

Scripting name

strokePattern

Data type

String

Sine Length

Sets the 'wavelength' of the sine wave to be drawn

Scripting name

sineLength

Data type

int

Sine Height

Sets the 'amplitude' of the sine wave to be drawn

Scripting name

sineHeight

Data type

int

Left Arrow

Draw an arrow head on the left/top of the line?

Scripting name

leftArrow

Data type

boolean

Right Arrow

Draw an arrow head on the right/bottom of the line?

Scripting name

rightArrow

Data type

boolean

Left Arrow Size

The size of the left arrow, if present

Scripting name

leftArrowSize

Data type

int

Right Arrow Size

The size of the right arrow, if present

Scripting name

rightArrowSize

Data type

int

Styles

Contains the component's styles

Scripting name

styles

Data type

Dataset

Flags

bindable | expert

Common

Name

The name of this component.

Scripting name

name

Data type

String

Flags

bindable

Visible

If disabled, the component will be hidden.

Scripting name

visible

Data type

boolean

Flags

bindable

Mouseover Text

The text that is displayed in the tooltip which pops up on mouseover of this component.

Scripting name

toolTipText

Data type

String

Cursor

The mouse cursor to use when hovering over this component.

Scripting name

cursorCode

Data type

int

Values

0

Default

1

Crosshair

2

Text

3

Wait

12

Hand

13

Move

4

SW Resize

5

SE Resize

6

NW Resize

7

NE Resize

8

N Resize

9

S Resize

10

W Resize

11

E Resize

Data

Data Quality

The data quality code for any tag bindings on this component.

Scripting name

dataQuality

Data type

int

Flags

bindable | expert

Scripting

Events

The following event sets are fired by this component. See Component Event Handlers to learn more.

mouse
mouseMotion
propertyChange

 

Scripting Functions

This component has no special scripting functions.