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

Default implementation of ScrollBarDesigner. More...

Inheritance diagram for DefaultScrollBarDesigner:
DefaultWidgetDesigner ScrollBarDesigner WidgetDesigner

Classes

class  DesignKnobMouseListener
 Mouse listener for scrollbar knob to redesign knob. More...
 

Public Member Functions

CanvasCreator canvasCreatorFrame (ScrollBar scrollbar)
 Canvas creator for scrollbar frame widget. More...
 
CanvasCreator canvasCreatorKnob (ScrollBar scrollbar)
 Canvas creator for scrollbar knob widget. More...
 
WidgetDesigner copyDesigner ()
 Create copy of designer. More...
 
Button createButtonLeftUp (ScrollBar scrollbar)
 Create left or up button. More...
 
Button createButtonRightDown (ScrollBar scrollbar)
 Create right or down button. More...
 
Widget createKnob (ScrollBar scrollbar)
 Create knob widget. More...
 
void designKnob (Widget knob)
 Design knob. More...
 
void designWidget (Widget widget)
 Design widget. More...
 
WidgetDesigner getButtonDown ()
 Button designer for scrollbar down button. More...
 
Image getButtonDownImageHover ()
 Button down image hover. More...
 
Image getButtonDownImageNormal ()
 Button down image normal. More...
 
WidgetDesigner getButtonLeft ()
 Button designer for scrollbar left button. More...
 
Image getButtonLeftImageHover ()
 Button left image hover. More...
 
Image getButtonLeftImageNormal ()
 Button left image normal. More...
 
WidgetDesigner getButtonRight ()
 Button designer for scrollbar right button. More...
 
Image getButtonRightImageHover ()
 Button right image hover. More...
 
Image getButtonRightImageNormal ()
 Button right image normal. More...
 
WidgetDesigner getButtonUp ()
 Button designer for scrollbar up button. More...
 
Image getButtonUpImageHover ()
 Button up image hover. More...
 
Image getButtonUpImageNormal ()
 Button up image normal. More...
 
CanvasCreator getCreatorFrame ()
 Canvas creator for scrollbar frame. More...
 
CanvasCreator getCreatorKnob ()
 Canvas creator for scrollbar knob. More...
 
CanvasCreator getCreatorKnobHover ()
 Canvas creator for scrollbar knob hover or null to use normal. More...
 
BorderSize getPaddingKnobFrame ()
 Padding between knob and frame. More...
 
int getSize ()
 Scrollbar size. More...
 
DefaultScrollBarDesigner new ()
 Create new scrollbar designer. More...
 
DefaultScrollBarDesigner new (DefaultScrollBarDesigner designer)
 Create copy of widget designer. More...
 
BorderSize paddingKnobFrame (ScrollBar scrollbar)
 Padding between knob and frame. More...
 
int scrollbarSize (ScrollBar scrollbar)
 Size of scrollbar. More...
 
void setButtonDown (WidgetDesigner factory)
 Set button designer for scrollbar down button. More...
 
void setButtonDownImageHover (Image image)
 Set button down image hover. More...
 
void setButtonDownImageNormal (Image image)
 Set button down image normal. More...
 
void setButtonLeft (WidgetDesigner factory)
 Set button designer for scrollbar left button. More...
 
void setButtonLeftImageHover (Image image)
 Set button left image hover. More...
 
void setButtonLeftImageNormal (Image image)
 Set button left image normal. More...
 
void setButtonRight (WidgetDesigner factory)
 Set button designer for scrollbar right button. More...
 
void setButtonRightImageHover (Image image)
 Set button right image hover. More...
 
void setButtonRightImageNormal (Image image)
 Set button right image normal. More...
 
void setButtonUp (WidgetDesigner factory)
 Set button designer for scrollbar up button. More...
 
void setButtonUpImageHover (Image image)
 Set button up image hover. More...
 
void setButtonUpImageNormal (Image image)
 Set button up image normal. More...
 
void setCreatorFrame (CanvasCreator creator)
 Set canvas creator for scrolbar frame. More...
 
void setCreatorKnob (CanvasCreator creator)
 Set canvas creator for scrollbar knob. More...
 
void setCreatorKnobHover (CanvasCreator creator)
 Set canvas creator for scrollbar knob hover or null to use normal. More...
 
void setPaddingKnobFrame (BorderSize padding)
 Set padding between knob and frame. More...
 
void setParameter (String name, Object value)
 Set parameter. More...
 
void setSize (int size)
 Set scrollbar size. More...
 
- Public Member Functions inherited from DefaultWidgetDesigner
WidgetDesigner copyDesigner ()
 Create copy of designer. More...
 
void designWidget (Widget widget)
 Design widget. More...
 
StateDesign getDesignDisabled ()
 Design for disabled state. More...
 
StateDesign getDesignFocused ()
 Design for focused state. More...
 
StateDesign getDesignFocusedHover ()
 Design for focused hover state. More...
 
StateDesign getDesignHover ()
 Design for hover state. More...
 
StateDesign getDesignNormal ()
 Design for normal state. More...
 
DefaultWidgetDesigner new ()
 Create new widget designer. More...
 
DefaultWidgetDesigner new (DefaultWidgetDesigner designer)
 Create copy of widget designer. More...
 
void setParameter (String name, Object value)
 Set parameter. More...
 

Additional Inherited Members

- Protected Member Functions inherited from DefaultWidgetDesigner
StateDesign getNamedStateDesign (String stateName)
 Get state for parameter name selector component or null if not found. More...
 
void setDesignDisabled (StateDesign design)
 Set design for disabled state. More...
 
void setDesignFocused (StateDesign design)
 Set design for focused state. More...
 
void setDesignFocusedHover (StateDesign design)
 Set design for focused hover state. More...
 
void setDesignHover (StateDesign design)
 Set design for hover state. More...
 
void setDesignNormal (StateDesign design)
 Set design for normal state. More...
 
StateDesign widgetStateFindDesign (Widget widget)
 Get design to apply to widget. More...
 

Detailed Description

Default implementation of ScrollBarDesigner.

Member Function Documentation

◆ canvasCreatorFrame()

CanvasCreator canvasCreatorFrame ( ScrollBar  scrollbar)

Canvas creator for scrollbar frame widget.

Implements ScrollBarDesigner.

◆ canvasCreatorKnob()

CanvasCreator canvasCreatorKnob ( ScrollBar  scrollbar)

Canvas creator for scrollbar knob widget.

Implements ScrollBarDesigner.

◆ copyDesigner()

WidgetDesigner copyDesigner ( )

Create copy of designer.

Implements WidgetDesigner.

◆ createButtonLeftUp()

Button createButtonLeftUp ( ScrollBar  scrollbar)

Create left or up button.

Implements ScrollBarDesigner.

◆ createButtonRightDown()

Button createButtonRightDown ( ScrollBar  scrollbar)

Create right or down button.

Implements ScrollBarDesigner.

◆ createKnob()

Widget createKnob ( ScrollBar  scrollbar)

Create knob widget.

Implements ScrollBarDesigner.

◆ designKnob()

void designKnob ( Widget  knob)

Design knob.

◆ designWidget()

void designWidget ( Widget  widget)

Design widget.

Method not used for SpinButton. Default implementation is empty. Use the methods defined in SpinButtonDesigner to design the SpinButton.

Implements WidgetDesigner.

◆ getButtonDown()

WidgetDesigner getButtonDown ( )

Button designer for scrollbar down button.

◆ getButtonDownImageHover()

Image getButtonDownImageHover ( )

Button down image hover.

◆ getButtonDownImageNormal()

Image getButtonDownImageNormal ( )

Button down image normal.

◆ getButtonLeft()

WidgetDesigner getButtonLeft ( )

Button designer for scrollbar left button.

◆ getButtonLeftImageHover()

Image getButtonLeftImageHover ( )

Button left image hover.

◆ getButtonLeftImageNormal()

Image getButtonLeftImageNormal ( )

Button left image normal.

◆ getButtonRight()

WidgetDesigner getButtonRight ( )

Button designer for scrollbar right button.

◆ getButtonRightImageHover()

Image getButtonRightImageHover ( )

Button right image hover.

◆ getButtonRightImageNormal()

Image getButtonRightImageNormal ( )

Button right image normal.

◆ getButtonUp()

WidgetDesigner getButtonUp ( )

Button designer for scrollbar up button.

◆ getButtonUpImageHover()

Image getButtonUpImageHover ( )

Button up image hover.

◆ getButtonUpImageNormal()

Image getButtonUpImageNormal ( )

Button up image normal.

◆ getCreatorFrame()

CanvasCreator getCreatorFrame ( )

Canvas creator for scrollbar frame.

◆ getCreatorKnob()

CanvasCreator getCreatorKnob ( )

Canvas creator for scrollbar knob.

◆ getCreatorKnobHover()

CanvasCreator getCreatorKnobHover ( )

Canvas creator for scrollbar knob hover or null to use normal.

◆ getPaddingKnobFrame()

BorderSize getPaddingKnobFrame ( )

Padding between knob and frame.

◆ getSize()

int getSize ( )

Scrollbar size.

◆ new() [1/2]

Create new scrollbar designer.

◆ new() [2/2]

Create copy of widget designer.

◆ paddingKnobFrame()

BorderSize paddingKnobFrame ( ScrollBar  scrollbar)

Padding between knob and frame.

Implements ScrollBarDesigner.

◆ scrollbarSize()

int scrollbarSize ( ScrollBar  scrollbar)

Size of scrollbar.

Implements ScrollBarDesigner.

◆ setButtonDown()

void setButtonDown ( WidgetDesigner  factory)

Set button designer for scrollbar down button.

◆ setButtonDownImageHover()

void setButtonDownImageHover ( Image  image)

Set button down image hover.

◆ setButtonDownImageNormal()

void setButtonDownImageNormal ( Image  image)

Set button down image normal.

◆ setButtonLeft()

void setButtonLeft ( WidgetDesigner  factory)

Set button designer for scrollbar left button.

◆ setButtonLeftImageHover()

void setButtonLeftImageHover ( Image  image)

Set button left image hover.

◆ setButtonLeftImageNormal()

void setButtonLeftImageNormal ( Image  image)

Set button left image normal.

◆ setButtonRight()

void setButtonRight ( WidgetDesigner  factory)

Set button designer for scrollbar right button.

◆ setButtonRightImageHover()

void setButtonRightImageHover ( Image  image)

Set button right image hover.

◆ setButtonRightImageNormal()

void setButtonRightImageNormal ( Image  image)

Set button right image normal.

◆ setButtonUp()

void setButtonUp ( WidgetDesigner  factory)

Set button designer for scrollbar up button.

◆ setButtonUpImageHover()

void setButtonUpImageHover ( Image  image)

Set button up image hover.

◆ setButtonUpImageNormal()

void setButtonUpImageNormal ( Image  image)

Set button up image normal.

◆ setCreatorFrame()

void setCreatorFrame ( CanvasCreator  creator)

Set canvas creator for scrolbar frame.

◆ setCreatorKnob()

void setCreatorKnob ( CanvasCreator  creator)

Set canvas creator for scrollbar knob.

◆ setCreatorKnobHover()

void setCreatorKnobHover ( CanvasCreator  creator)

Set canvas creator for scrollbar knob hover or null to use normal.

◆ setPaddingKnobFrame()

void setPaddingKnobFrame ( BorderSize  padding)

Set padding between knob and frame.

◆ setParameter()

void setParameter ( String  name,
Object  value 
)

Set parameter.

Supported parameters: | name | value | Setter | | canvasFrame | CanvasCreator | setCreatorFrame | | canvasKnob | CanvasCreator | setCreatorKnob | | canvasKnobHover | CanvasCreator or null | setCreatorKnobHover | | size | int | setSize | | paddingKnobFrame | BorderSize | setPaddingKnobFrame | | buttonUp | WidgetDesignerFactory | setButtonUp | | buttonDown | WidgetDesignerFactory | setButtonDown | | buttonLeft | WidgetDesignerFactory | setButtonLeft | | buttonRight | WidgetDesignerFactory | setButtonRight | | imageUpNormal | Image | setButtonUpImageNormal | | imageUpHover | Image | setButtonUpImageHover | | imageDownNormal | Image | setButtonDownImageNormal | | imageDownHover | Image | setButtonDownImageHover | | imageLeftNormal | Image | setButtonLeftImageNormal | | imageLeftHover | Image | setButtonLeftImageHover | | imageRightNormal | Image | setButtonRightImageNormal | | imageRightHover | Image | setButtonRightImageHover |

Implements WidgetDesigner.

◆ setSize()

void setSize ( int  size)

Set scrollbar size.


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