MetaDone
metadone.client.grasyla2.visuallibrary.widgets.backgrounds.WidgetTapeShape Class Reference
Inheritance diagram for metadone.client.grasyla2.visuallibrary.widgets.backgrounds.WidgetTapeShape:
Collaboration diagram for metadone.client.grasyla2.visuallibrary.widgets.backgrounds.WidgetTapeShape:

List of all members.

Classes

class  TapeStackingStrategy

Public Member Functions

 WidgetTapeShape (Scene scene)
int getTapeOutHeight ()
void setTapeOutHeight (int tapeOutHeight)
OvalStackingStrategy getDefaultStrategy ()
boolean isConformStrategy (Class<?extends StackingStrategy > strategy)

Protected Member Functions

Shape getPaintedShape ()

Private Attributes

int tapeOutHeight = 14

Detailed Description

A tape shape widget.

Author:
kma

Constructor & Destructor Documentation

metadone.client.grasyla2.visuallibrary.widgets.backgrounds.WidgetTapeShape.WidgetTapeShape ( Scene  scene)

Member Function Documentation

OvalStackingStrategy metadone.client.grasyla2.visuallibrary.widgets.backgrounds.WidgetTapeShape.getDefaultStrategy ( ) [virtual]

Gets an instance of a default stacking strategy conform to this shape.

Returns:
A stacking strategy

Reimplemented from metadone.client.grasyla2.visuallibrary.widgets.backgrounds.WidgetOvalShape.

Shape metadone.client.grasyla2.visuallibrary.widgets.backgrounds.WidgetTapeShape.getPaintedShape ( ) [protected, virtual]
int metadone.client.grasyla2.visuallibrary.widgets.backgrounds.WidgetTapeShape.getTapeOutHeight ( )
boolean metadone.client.grasyla2.visuallibrary.widgets.backgrounds.WidgetTapeShape.isConformStrategy ( Class<?extends StackingStrategy strategy) [virtual]

Checks if a strategy is conform to the shape.

Usually the implementation is:

 return MyCustomStrategy.class.isAssignableFrom(strategy);
 
Parameters:
Thestrategy to check
Returns:
Boolean
Exceptions:
NullPointerExceptionwhen strategy is null

Reimplemented from metadone.client.grasyla2.visuallibrary.widgets.backgrounds.WidgetOvalShape.

void metadone.client.grasyla2.visuallibrary.widgets.backgrounds.WidgetTapeShape.setTapeOutHeight ( int  tapeOutHeight)

Sets the height of the tape out.

Parameters:
tapeOutHeightNew height
Exceptions:
IllegalArgumentExceptionwhen tapeOutHeight <= 0

References metadone.client.grasyla2.visuallibrary.widgets.backgrounds.WidgetTapeShape.tapeOutHeight.


Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations