com.sas.table
Interface LabelCellTypeInterface


public interface LabelCellTypeInterface

Defines the interface required by LabelCell for implementing different types of labels. LabelCell utilizes the state design pattern to change its behavior (state) without additional subclassing by delegating its implementation to the methods defined here. Thus for example, different LabelCell implementations can be provided for row and column labels (i.e. LabelCell.COLUMN_LABEL and LabelCell.ROW_LABEL) by providing different implementations of this interface and passing the appropriate instance to LabelCell's constructor.

See Also:
LabelCell

Method Summary
 int getDisplayedHeight(LabelCell cell)
           
 int getDisplayedWidth(LabelCell cell)
           
 int getHeight(LabelCell cell)
           
 int getHorizontalPosition(LabelCell cell)
           
 LabelCell getThisLabelCell(LabelCell cell)
           
 int getVerticalPosition(LabelCell cell)
           
 int getWidth(LabelCell cell)
           
 boolean isDisplayed(LabelCell cell)
           
 com.sas.collection.StaticPropertyBagInterface onGetModelStyle(LabelCell cell)
           
 java.lang.Object onGetObjectData(LabelCell cell)
           
 java.lang.String[] onGetTypes(LabelCell cell)
           
 void onWriteObjectData(LabelCell cell)
           
 

Method Detail

getDisplayedHeight

int getDisplayedHeight(LabelCell cell)

getDisplayedWidth

int getDisplayedWidth(LabelCell cell)

getHeight

int getHeight(LabelCell cell)

getWidth

int getWidth(LabelCell cell)

getHorizontalPosition

int getHorizontalPosition(LabelCell cell)

getVerticalPosition

int getVerticalPosition(LabelCell cell)

getThisLabelCell

LabelCell getThisLabelCell(LabelCell cell)

isDisplayed

boolean isDisplayed(LabelCell cell)

onGetObjectData

java.lang.Object onGetObjectData(LabelCell cell)
                                 throws com.sas.table.TableException
Throws:
com.sas.table.TableException

onWriteObjectData

void onWriteObjectData(LabelCell cell)
                       throws com.sas.table.TableException
Throws:
com.sas.table.TableException

onGetModelStyle

com.sas.collection.StaticPropertyBagInterface onGetModelStyle(LabelCell cell)
                                                              throws com.sas.table.TableException
Throws:
com.sas.table.TableException

onGetTypes

java.lang.String[] onGetTypes(LabelCell cell)
                              throws com.sas.table.TableException
Throws:
com.sas.table.TableException



Copyright © 2009 SAS Institute Inc. All Rights Reserved.