[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]

BackgroundWithBorder

mixes in with Viewable

BackgroundWithBorder



Operations

Get list of all operations

BorderInsideBox
CalcBorderBox
CalcInsidePart
CalcOpaqueBox
Draw
DrawBackground


Attributes

Get list of all attributes

Border


Fields

No fields are defined by BackgroundWithBorder or any of its superclasses.


Instance template

Class BackgroundWithBorder cannot be instantiated.


Class definition

Define Class BackgroundWithBorder;
    mixes in with Viewable;

    // note: if you inherit from BackgroundWithBorder, you must call DrawBackground from your Draw method (otherwise OpaqueBox is wrong)

    attribute Border: Border, readOnly;
        // return border (default to no border)

    // drawing

    overrides Draw;
        // call DrawBackground
    operation DrawBackground();
        // fill content with content color, draw border, and shadow

    // geometry and hit testing

    operation BorderInsideBox(var insideBorder: Box);
        // return inherited border box; override to control where border is drawn
    overrides CalcBorderBox;
        // return outer edge of border (border inside box outset by border Thickness)
    overrides CalcInsidePart;
        // return partContent if probe is in the content, partBorder if probe is on the border
    overrides CalcOpaqueBox;
        // return content if opaque
end class;