Pen

Namespace: PP;

Inheritance Hierarchy

Object

Pen

Description

The Pen class is used to work with page parameters.

Syntax

PP.initClass(PP.Pen, PP.Object, "Pen");

Constructor

  Constructor name Brief description
Pen The Pen constructor creates an instance of the Pen class.

Properties

  Property name Brief description
Color The Color property determines border color.
Opacity The Opacity property determines border transparency.
Style The Style property determines border display style.
Width The Width property determines border width.

Methods

  Method name Brief description
applyToNode The applyToNode method sets border for the specified DOM element.
toSVGFormat The toSVGFormat method determines border settings for the specified SVG element.

Properties inherited from the class Object

  Property name Brief description
Data The Data property associates a random object with this component.
Id The Id property sets component identifier.
Settings The Settings property sets the component parameters.

Methods inherited from the class Object

  Method name Brief description
clone The clone method creates a copy of object. It is not implemented in PP.Ui.Control.
dispose The dispose method deletes the component.
getTypeName The getTypeName method returns the name of the object type without the namespace, to which it belongs.

See also:

PP