[operations] [attributes] [fields] [template] [definition]
[implementation] [documentation]
To use the search tool you need to use a browser which supports JAVA (c)

[next] [prev] [superclass] [next peer] [prev peer] [subclass] [index] [hierarchy]

ChooseableTool

abstract
inherits from Object
inherits from Tool

Object <- ChooseableTool



Operations

Get list of all operations

BeginTool
DrawImage
EndTool
GetTool
GetToolTarget
MakeViewable
ResetClass
SetTool
SetTouchTool
ShouldForceBorders
ShouldFreezeScreen


Attributes

Get list of all attributes

Image
LineStyle


Fields

Field Type
ChooseableTool: image: Image


Instance template

Class ChooseableTool cannot be instantiated.


Class definition

Define Class ChooseableTool; 
        // tools are what we call visible touch modes
    abstract;
    inherits from Object;
    inherits from Tool;

    field image: Image, getter, sharedSetter;

    intrinsic GetTool(): ChooseableTool;
    intrinsic SetTool(newTool: ChooseableTool);
        // call to set the tool to newTool
    intrinsic SetTouchTool();

    intrinsic GetToolTarget(touchInput: TouchInput; var tool: Tool; var target: Viewable);
    
    operation DrawImage(origin: Dot), noFail;
    operation MakeViewable(): Viewable;
    operation ShouldForceBorders(): Boolean, noFail;
    operation ShouldFreezeScreen(): Boolean;

    operation BeginTool();
    operation EndTool();
    overrides ResetClass;

    attribute Image: Image;
    attribute LineStyle: LineStyle, readOnly;
end class;