t3.portfolios
Class PlainPortfolio

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

public class PlainPortfolio
extends Portfolio

Author:
pjt40 Just a plain colour.

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
PlainPortfolio(PortfolioServer t3, Portfolio parent, PortfolioCommonBehaviour c, java.awt.Color cc, int jotterTileFlags)
           
 
Method Summary
 void customProcessEndOfFDOPmode(PointInputDevice pen, int button)
          Implement this method to be notified when a PID stops being in FDOP mode.
 boolean customProcessEventForThisPortfolioNotChildren(PortfolioEvent e, boolean bubbled)
          Implement this method to receive events.
 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

PlainPortfolio

public PlainPortfolio(PortfolioServer t3,
                      Portfolio parent,
                      PortfolioCommonBehaviour c,
                      java.awt.Color cc,
                      int jotterTileFlags)
Method Detail

customProcessEventForThisPortfolioNotChildren

public 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.

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.

customProcessFDOPevent

public 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

public void customProcessEndOfFDOPmode(PointInputDevice pen,
                                       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