Class zebkit.ui.Line
extends <zebkit.ui.Panel>
<zebkit.ui>

Line UI component class. Draw series of vertical or horizontal lines of using the given line width and color. Vertical or horizontal line rendering s selected depending on the line component size: if height is greater than width than vertical line will be rendered.

Constructor:
zebkit.ui.Line ([colors])

Parameters:
  • [colors] <String> (*..n)

    line colors





Inherited methods:
$setConstraints(c)    add(constr, d)    byConstraints([p], c)    byPath(path, [cb])    calcPreferredSize(target)    doLayout( )    fire(name, [path], [params])    focused( )    getBottom( )    getCanvas( )    getComponentAt(x, y)    getHorPadding( )    getLeft( )    getPreferredSize( )    getRight( )    getTop( )    getVerPadding( )    hasFocus( )    indexOf(c)    insert(i, constr, d)    invalidate( )    invalidateLayout( )    kidAdded(index, constr, l)    kidRemoved(i, l, ctr)    laidout( )    load(JSON)    off([eventName], [path], [cb])    on([eventName], [path], cb)    paintChildComponents(g, clipChild)    paintComponent(g)    paintViewAt(g, ax, ay, v)    properties([path], props)    property([path], name, value)    recalc( )    relocated(px, py)    remove(c)    removeAll( )    removeAt(i)    removeByConstraints(ctr)    removeMe([after])    repaint([x], [y], [w], [h])    replaceMe([ctr], c)    requestFocus( )    requestFocusIn([timeout])    resized(pw, ph)    setAt(i, d)    setBackground(v)    setBorder([v])    setBorderLayout([gap])    setBottomPadding(bottom)    setBounds(x, y, w, h)    setByConstraints(constr, c)    setConstraints(ctr)    setEnabled(b)    setFlowLayout([ax], [ay], [dir], [gap])    setGrisLayout( )    setId(id)    setKids(a)    setLayout(m)    setLeftPadding(left)    setListLayout([ax], [gap])    setLocation(xx, yy)    setPadding(v)    setParent(o)    setPreferredHeigh(h)    setPreferredSize(w, h)    setPreferredWidth(w)    setProperties([path], props)    setRasterLayout([usePsSize])    setRightPadding(right)    setSize(w, h)    setStackLayout([gap])    setTopPadding(top)    setVisible(b)    toBack( )    toFront( )    toPreferredHeight( )    toPreferredSize( )    toPreferredWidth( )    toView(target)    validate( )    validateMetric( )    vrp( )   


public chainable setColor (c)

Set line color.


Parameters:
public void setDirection (d)

Set the given line direction.


Parameters:
  • d <String>

    a line direction. Can be "vertical" or "horizontal" or null value. null means auto detected direction.

public chainable setLineColors (colors)

Set set of colors to be used to paint the line. Number of colors defines the number of lines to be painted.


Parameters:
  • colors <String> (*..n)

    colors



Inherited attributes:
protected Function $matchPath    public zebkit.draw.View bg    public zebkit.draw.View border    public Boolean canHaveFocus    public Object constraints    public Integer height    public Boolean isEnabled    public Boolean isValid    public Boolean isVisible    public Array kids    public zebkit.layout.Layout layout    public zebkit.layout.Layoutable parent    public Integer width    public Integer x    public Integer y   



public <Array> colors

Line colors set.

public <Array> colors

Line colors

public <String> direction

Line direction attribute. Can be "vertical" or "horizontal" or null value.

public <Integer> lineWidth

Line width