t3.portfolios
Class RootPortfolio

java.lang.Object
  extended by t3.portfolios.Portfolio
      extended by t3.portfolios.RootPortfolio

public class RootPortfolio
extends Portfolio

Represents the root portfolio, of which all other portfolio are anscestors. It has no tile and by default it is visible and located in DESK space at (0,0) with scale factor 1 and no rotation.

Author:
pjt40

Field Summary
 
Fields inherited from class t3.portfolios.Portfolio
childrenTopToBottomReadOnly, commonBehaviour, FLAG_PREALLOCATE_IMAGE_BUFFERS, FLAG_USES_UNWARPED_RECTANGLES, portfolioFlags, portfolioLinksFromThisReadOnly, portfolioServer, tileUpdateCompressionHints, unwarpedRectLinesList, unwarpedRectWordsList
 
Constructor Summary
RootPortfolio(PortfolioServer t3)
           
 
Method Summary
protected  void customProcessEndOfFDOPmode(PointInputDevice pid, int button)
          Implement this method to be notified when a PID stops being in FDOP mode.
protected  boolean customProcessEventForThisPortfolioNotChildren(PortfolioEvent e, boolean bubbled)
          Implement this method to receive events.
protected  void customProcessFDOPevent(PortfolioEvent e, double PORTxWhenEnteredFDOPmode, double PORTyWhenEnteredFDOPmode)
          Implement this method to receive FDOP mode events.
 void customRepaintTileForThisPortfolioNotChildren(java.awt.Rectangle r, java.awt.image.BufferedImage update, java.awt.Graphics2D g)
          Implement this method to draw into the portfolio's tile.
 
Methods inherited from class t3.portfolios.Portfolio
bringChildrenToFront, bringChildToFront, createCompatibleBufferedImage, customProcessAboutToBeDestroyed, destroyThisAndAllDescendants, getAnscestorsList, getAnscestorsSet, getGpDESKoutlineOfOurTile, getIntegerTileSpaceCoordsFromDESK, getmDESKtoPORTReadOnly, getmDESKtoTILE, getParent, getPortfolioAtCoordinates, getRDESKboundingBoxOfOurTile, getRDESKboundingBoxOfOurTileAndAllDescendantsTiles, getThisAndAnscestorsList, getThisAndAnscestorsSet, getTileHeightInPORT, getTileHeightInTILE, getTileWidthInPORT, getTileWidthInTILE, gettPORTtoDESK, gettPORTtoPPORT, getUd2PORTfromUd2DESK, getVisibileWhenParentVisible, getVisibility, hasTile, isDestroyed, isRoot, setChildToPosition, setDESKtoPORT, setNewChildrenOrder, setPORTtoDESK, setPORTtoPPORT, setTileWidthAndHeightInPORT, setVisibleWhenParentVisible, triggerRepaintEntireTile, triggerRepaintTile, triggerRepaintTile, triggerRepaintTileByCopyingFromOtherPortfoliosTile, unhookFromParentAndMakeChildOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RootPortfolio

public RootPortfolio(PortfolioServer t3)
Method Detail

customRepaintTileForThisPortfolioNotChildren

public void customRepaintTileForThisPortfolioNotChildren(java.awt.Rectangle r,
                                                         java.awt.image.BufferedImage update,
                                                         java.awt.Graphics2D g)
Description copied from class: Portfolio
Implement this method to draw into the portfolio's tile. The supplied Graphics2D is in the same coordinate space as TILE, with the specified rectangle set to draw into the supplied BufferedImage.

Specified by:
customRepaintTileForThisPortfolioNotChildren in class Portfolio
Parameters:
r - rectangle in TILE space that must be redrawn.
update - BufferedImage of same dimensions as r, into which you draw.
g - Graphics2D which is configured to draw into update.

customProcessEventForThisPortfolioNotChildren

protected boolean customProcessEventForThisPortfolioNotChildren(PortfolioEvent e,
                                                                boolean bubbled)
Description copied from class: Portfolio
Implement this method to receive events. See PortfolioServer for more information on the event model. Note that any events handled by this portfolio's PortfolioCommonBehaviour object will not be passed to this method.

Specified by:
customProcessEventForThisPortfolioNotChildren in class Portfolio
Parameters:
e - Event
bubbled - True iff the event did not occur on this portfolio's tile but has been bubbled from one of its children.
Returns:
True iff the event should not be bubbled to this portfolio's parent.

customProcessFDOPevent

protected void customProcessFDOPevent(PortfolioEvent e,
                                      double PORTxWhenEnteredFDOPmode,
                                      double PORTyWhenEnteredFDOPmode)
Description copied from class: Portfolio
Implement this method to receive FDOP mode events. See PortfolioServer for more information on the event model. Note that any events handled by this portfolio's PortfolioCommonBehaviour object will not be passed to this method.

Specified by:
customProcessFDOPevent in class Portfolio
Parameters:
e - Event
PORTxWhenEnteredFDOPmode - PORT space coordinate of the PID when it entered FDOP mode.
PORTyWhenEnteredFDOPmode - PORT space coordinate of the PID when it entered FDOP mode.

customProcessEndOfFDOPmode

protected void customProcessEndOfFDOPmode(PointInputDevice pid,
                                          int button)
Description copied from class: Portfolio
Implement this method to be notified when a PID stops being in FDOP mode. See PortfolioServer for more information on the event model. Note that any notifications handled by this portfolio's PortfolioCommonBehaviour object will not be passed to this method.

Specified by:
customProcessEndOfFDOPmode in class Portfolio