public Dimension getMaximumSize()
{
if (this.getLayoutManager() instanceof SapphireSequenceLayout)
{
SapphireSequenceLayout sapphireSequenceLayout = (SapphireSequenceLayout)this.getLayoutManager();
return sapphireSequenceLayout.calculateMaximumSize(this);
}
else if (this.getLayoutManager() instanceof SapphireStackLayout)
{
SapphireStackLayout sapphireStackLayout = (SapphireStackLayout)this.getLayoutManager();
return sapphireStackLayout.calculateMaximumSize(this);