3.10.5 - Button Drawer Interface - JdlButtonDrawer

John W. Campbell

3.10.5.1 Introduction

An interface for objects which have a drawing method for drawing on a JdlButton object.

Interface and methods:

Class Details
Accessible Fields
Interface Methods

3.10.5.2 Class Details

Package:
Jdl.JdlView;
Class name:
JdlButtonDrawer
Class definition:
public interface JdlButtonDrawer
Extends:
Object
Implements:
none
Actions:
none

3.10.5.3 Accessible Fields

No fields with public, package or protected access defined.

3.10.5.4 Interface Methods

3.10.5.4.1 Introduction

This section contains the methods which must be implemented for the interface.

Methods:

Draw button - jdl_button_drawer

3.10.5.4.2 Draw button - jdl_button_drawer

A method to draw on a JdlButton object.

Method Definition:
public void jdl_button_drawer(Graphics g, int id, boolean button_in, boolean disable, int xo, int yo, int draw_width, int draw_height, int total_width, int total_height)
Parameters List:
g
The graphics context for the drawing window.
id
The identifier used when the drawer object is set.
button_in
Button is pressed in (true) or is out (false).
disable
Button is disabled (true) or in normal mode (false).
xo
The 'x' origin of the drawing area (i.e. within the frame).
yo
The 'y' origin of the drawing area (i.e. within the frame).
draw_width
The width of the drawing area.
draw_height
The height of the drawing area.
total_width
The total width of the framed canvas.
total_height
The total height of the framed canvas.

⇑ Up 3   ⇑ Up 2   ⇑ Up 1   ⇑ Top of this