Drag[en]gine Script Module DragonScript Script API  1.0
RectangleCanvasCreator Class Reference

Canvas creator creating a canvas with a paint only simple rectangle fill and line color. More...

Inheritance diagram for RectangleCanvasCreator:
DefaultCanvasCreator CanvasCreator

Public Member Functions

CanvasCreator copyCanvasCreator ()
 Create copy of canvas creator. More...
 
Canvas createCanvas (Point size)
 Create canvas for a specific widget size. More...
 
Color getColorFill ()
 Fill color. More...
 
Color getColorLine ()
 Line color or null to use fill color. More...
 
float getThickness ()
 Line thickness. More...
 
RectangleCanvasCreator new ()
 Create canvas creator. More...
 
RectangleCanvasCreator new (Color colorFill)
 Create canvas creator. More...
 
RectangleCanvasCreator new (Color colorFill, Color colorLine)
 Create canvas creator. More...
 
RectangleCanvasCreator new (RectangleCanvasCreator creator)
 Create copy of canvas creator. More...
 
void setColorFill (Color color)
 Set fill color. More...
 
void setColorLine (Color color)
 Set line color or null to use fill color. More...
 
void setParameter (String name, Object value)
 Set parameter. More...
 
void setThickness (float thickness)
 Set line thickness. More...
 
- Public Member Functions inherited from DefaultCanvasCreator
CanvasCreator copyCanvasCreator ()
 Create copy of canvas creator. More...
 
Canvas createCanvas (Point size)
 Create canvas for a specific widget size. More...
 
DefaultCanvasCreator new ()
 Create canvas creator. More...
 
DefaultCanvasCreator new (DefaultCanvasCreator creator)
 Create copy of canvas creator. More...
 
void setParameter (String name, Object value)
 Set parameter. More...
 

Detailed Description

Canvas creator creating a canvas with a paint only simple rectangle fill and line color.

Member Function Documentation

◆ copyCanvasCreator()

CanvasCreator copyCanvasCreator ( )

Create copy of canvas creator.

Implements CanvasCreator.

◆ createCanvas()

Canvas createCanvas ( Point  size)

Create canvas for a specific widget size.

Implements CanvasCreator.

◆ getColorFill()

Color getColorFill ( )

Fill color.

◆ getColorLine()

Color getColorLine ( )

Line color or null to use fill color.

◆ getThickness()

float getThickness ( )

Line thickness.

◆ new() [1/4]

Create canvas creator.

◆ new() [2/4]

RectangleCanvasCreator new ( Color  colorFill)

Create canvas creator.

◆ new() [3/4]

RectangleCanvasCreator new ( Color  colorFill,
Color  colorLine 
)

Create canvas creator.

◆ new() [4/4]

Create copy of canvas creator.

◆ setColorFill()

void setColorFill ( Color  color)

Set fill color.

◆ setColorLine()

void setColorLine ( Color  color)

Set line color or null to use fill color.

◆ setParameter()

void setParameter ( String  name,
Object  value 
)

Set parameter.

Supported parameters: | name | value | Setter | | colorFill | Color | setColorFill | | colorLine | Color | setColorLine | | thickness | float | setThickness |

Implements CanvasCreator.

◆ setThickness()

void setThickness ( float  thickness)

Set line thickness.


The documentation for this class was generated from the following file: