|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectt3.portfolios.Portfolio
t3.portfolios.JotterPortfolio
public class JotterPortfolio
A jotter portfolio has a tile which contains an image into which you can draw using a Graphics2D. The user can then draw into the tile using a point input device.
Call getGraphicsToDrawIntoJotter, then do the drawing, then call triggerRepaint to send the update to the display.
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 | |
---|---|
JotterPortfolio(PortfolioServer t3,
Portfolio parent,
PortfolioCommonBehaviour c,
int jotterTileWidth,
int jotterTileHeight,
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. |
java.awt.Graphics2D |
getGraphicsToDrawIntoJotter()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JotterPortfolio(PortfolioServer t3, Portfolio parent, PortfolioCommonBehaviour c, int jotterTileWidth, int jotterTileHeight, int jotterTileFlags)
Method Detail |
---|
public boolean customProcessEventForThisPortfolioNotChildren(PortfolioEvent e, boolean bubbled)
Portfolio
customProcessEventForThisPortfolioNotChildren
in class Portfolio
e
- Eventbubbled
- True iff the event did not occur on this portfolio's tile but has been bubbled from one of its children.
public java.awt.Graphics2D getGraphicsToDrawIntoJotter()
public void customRepaintTileForThisPortfolioNotChildren(java.awt.Rectangle r, java.awt.image.BufferedImage update, java.awt.Graphics2D g)
Portfolio
customRepaintTileForThisPortfolioNotChildren
in class Portfolio
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.public void customProcessFDOPevent(PortfolioEvent e, double PORTxWhenEnteredFDOPmode, double PORTyWhenEnteredFDOPmode)
Portfolio
customProcessFDOPevent
in class Portfolio
e
- EventPORTxWhenEnteredFDOPmode
- PORT space coordinate of the PID when it entered FDOP mode.PORTyWhenEnteredFDOPmode
- PORT space coordinate of the PID when it entered FDOP mode.public void customProcessEndOfFDOPmode(PointInputDevice pen, int button)
Portfolio
customProcessEndOfFDOPmode
in class Portfolio
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |