|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
com.threerings.media.MediaPanel
com.threerings.media.VirtualMediaPanel
com.threerings.miso.client.MisoScenePanel
public class MisoScenePanel
Renders a Miso scene for all to see.
| Nested Class Summary | |
|---|---|
protected class |
MisoScenePanel.PaintTileOp
Used by paintTiles(java.awt.Graphics2D, java.awt.Rectangle). |
| Nested classes/interfaces inherited from class com.threerings.media.MediaPanel |
|---|
MediaPanel.ActionSpriteHandler, MediaPanel.Obscurer |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected RadialMenu |
_activeMenu
The active radial menu (or null). |
protected TileOpApplicator |
_applicator
|
protected Object |
_armedItem
The item that the user has clicked on with the mouse. |
protected ConcurrentHashMap<Integer,SceneBlock> |
_blocks
Contains our scene blocks. |
protected static RuntimeAdjust.BooleanAdjust |
_coordsDebug
A debug hook that toggles debug rendering of tile coordinates. |
protected MisoContext |
_ctx
Provides access to a few things. |
protected boolean |
_delayRepaint
Used to avoid repaints while we don't yet have resolved all the blocks needed to render the visible view. |
protected JFrame |
_dframe
|
protected DirtyItemList |
_dirtyItems
The dirty sprites and objects that need to be re-painted. |
protected List<Sprite> |
_dirtySprites
The working sprites list used when calculating dirty regions. |
protected ResolutionView |
_dpanel
|
protected Map<AutoFringer.FringeTile,WeakReference<AutoFringer.FringeTile>> |
_fringes
Map of active fringe tiles. |
protected Point |
_hcoords
Used to track the tile coordinates over which the mouse is hovering. |
protected DirtyItemList |
_hitList
The list that we use to track and sort the items over which the mouse is hovering. |
protected List<Sprite> |
_hitSprites
Used to collect the list of sprites "hit" by a particular mouse location. |
protected Object |
_hobject
Info on the object that the mouse is currently hovering over. |
protected Rectangle |
_ibounds
Contains the bounds of our "area of influence" in screen coords. |
protected Map<SceneObject,SceneObjectIndicator> |
_indicators
Our object indicators, indexed by the object that they indicate. |
protected boolean |
_indicatorsLaidOut
Have the indicators been laid out? |
protected Map<Long,BufferedImage> |
_masks
Map of the masks used to calculate fringes in this scene. |
protected MisoSceneMetrics |
_metrics
Contains basic scene metrics like tile width and height. |
protected MisoSceneModel |
_model
The scene model to be displayed. |
protected MisoScenePanel.PaintTileOp |
_paintOp
Used to paint tiles. |
protected static RuntimeAdjust.BooleanAdjust |
_pathsDebug
A debug hook that toggles debug rendering of sprite paths. |
protected int |
_pendingBlocks
A count of blocks in the process of being resolved. |
protected static RuntimeAdjust.BooleanAdjust |
_resolveDebug
A debug hook that toggles the block resolution display. |
protected SceneBlockResolver |
_resolver
The scene block resolver for this scene panel's context. |
protected static Map<MisoContext,SceneBlockResolver> |
_resolvers
Scene block resolvers shared by all scene panels in a context. |
protected RethinkOp |
_rethinkOp
Used by rethink(). |
protected Dimension |
_rsize
Tracks the size at which we were last "rethunk". |
protected int |
_showFlags
Flags indicating which features we should show in the scene. |
protected Point |
_tcoords
Temporary point used for intermediate calculations. |
protected static RuntimeAdjust.BooleanAdjust |
_traverseDebug
A debug hook that toggles debug rendering of traversable tiles. |
protected Point |
_ulpos
Contains the tile coords of our upper-left view coord. |
protected Rectangle |
_vibounds
Contains the bounds of our visible "area of influence" in screen coords. |
protected Set<SceneBlock> |
_visiBlocks
Used to track visible blocks that are waiting to be resolved. |
protected List<SceneObject> |
_vizobjs
A list of the potentially visible objects in the scene. |
protected static Composite |
ALPHA_FILL_TILE
The alpha used to fill tiles for debugging purposes. |
protected static Dimension |
DEF_RADIAL_RECT
The default size of the "box" that defines the size of our radial menu circles. |
protected static Stroke |
DIRTY_RECT_STROKE
The stroke used to draw dirty rectangles. |
static int |
SHOW_TIPS
Show flag that indicates we should show all tips. |
| Fields inherited from class com.threerings.media.VirtualMediaPanel |
|---|
_abounds, _background, _dx, _dy, _fmode, _fpath, _nx, _ny, _trackers, _vbounds, CENTER_ON_PATHABLE, ENCLOSE_PATHABLE, TRACK_PATHABLE |
| Fields inherited from class com.threerings.media.MediaPanel |
|---|
_actionHandler, _actionSpriteCount, _animmgr, _metamgr, _obscurerList, _remgr, _spritemgr, _tickPaintPending |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface com.threerings.media.MediaConstants |
|---|
ALL, BACK, FRONT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
MisoScenePanel(MisoContext ctx,
MisoSceneMetrics metrics)
Creates a blank miso scene display. |
|
| Method Summary | |
|---|---|
void |
addNotify()
|
protected void |
allBlocksFinished()
Called to handle the proceedings once our last resolving block has been finished. |
protected void |
appendDirtySprite(DirtyItemList list,
Sprite sprite)
Computes the tile coordinates of the supplied sprite and appends it to the supplied dirty item list. |
protected void |
blockAbandoned(SceneBlock block)
Called by the scene block if it has come up for resolution but is no longer influential. |
protected void |
blockFinished(SceneBlock block)
Called whenever a block is done resolving, whether it was successfully resolved or if it was abandoned. |
protected void |
blockResolved(SceneBlock block)
Called by a scene block when it has completed its resolution process. |
protected void |
blockResolving(SceneBlock block)
Called by the scene block when it has started its resolution. |
boolean |
canTraverse(Object traverser,
int tx,
int ty)
Requests to know if the specified traverser (which was provided in the call to AStarPathUtil.getPath(TraversalPred,Object,int,int,int,int,int,boolean)) can traverse the
specified tile coordinate. |
protected boolean |
canTraverseUnresolved(Object traverser,
int tx,
int ty)
Derived classes can control whether or not we consider unresolved tiles to be traversable or not. |
void |
centerOnTile(int tx,
int ty)
Moves the scene such that the specified tile is in the center. |
protected void |
changeHoverObject(Object newHover)
Change the hover object to the new object. |
boolean |
checkShowFlag(int flag)
Check to see if the specified show flag is on. |
void |
clearRadialMenu()
Clears any radial menu being displayed. |
protected void |
clearScene()
Clears out our old scene business. |
protected static int |
compose(int x,
int y)
Masks off the lower 16 bits of the supplied integers and composes them into a single int. |
protected BaseTile |
computeFringeTile(int tx,
int ty)
Computes the fringe tile for the specified coordinate. |
void |
computeIndicators()
Compute the indicators for any objects in the scene. |
protected void |
computeInfluentialBounds()
Calls through to computeInfluentialBounds(Rectangle, Rectangle, Rectangle) with
_vbounds, _ibounds and _vibounds. |
static void |
computeInfluentialBounds(Rectangle visibleBounds,
Rectangle influentualBounds,
Rectangle visibleBlockBounds)
Configures influentialBounds to contain the bounds of the potentially
"influential" world and visibleBlockBounds to contain bounds that are used
to determine which blocks should be resolved before making the view visible. |
protected Object |
computeOverHover(int mx,
int my)
Gives derived classes a chance to compute a hover object that takes precedence over sprites and actionable objects. |
protected Object |
computeUnderHover(int mx,
int my)
Gives derived classes a chance to compute a hover object that is used if the mouse is not hovering over a sprite or actionable object. |
protected void |
dirtyIndicator(SceneObjectIndicator indic)
Dirties the specified indicator. |
Iterator<SceneBlock> |
enumerateResolvedBlocks()
Returns an iterator over all resolved SceneBlock instances. |
protected void |
fillTile(Graphics2D gfx,
int tx,
int ty,
Color color)
Fills the specified tile with the given color at 50% alpha. |
protected void |
fireObjectAction(ObjectActionHandler handler,
SceneObject scobj,
ActionEvent event)
Called when an object or object menu item has been clicked. |
protected BaseTile |
getBaseTile(int tx,
int ty)
Returns the base tile for the specified tile coordinate. |
SceneBlock |
getBlock(int tx,
int ty)
Returns the resolved block that contains the specified tile coordinate or null if no block is resolved for that coordinate. |
protected TileSet.Colorizer |
getColorizer(ObjectInfo oinfo)
Derived classes can override this method and provide a colorizer that will be used to colorize the supplied scene object when rendering. |
Component |
getComponent()
If a frame participant wishes also to be actively rendered every frame rather than use passive rendering (which for Swing, at least, is hijacked when using the frame manager such that we take care of repainting dirty Swing components every frame into our off-screen buffer), it can return a component here which will have Component.paint(java.awt.Graphics) called on it once per frame with a translated but
unclipped graphics object. |
protected BaseTile |
getFringeTile(int tx,
int ty)
Returns the fringe tile for the specified tile coordinate. |
Point |
getFullCoords(int x,
int y)
Converts the supplied screen coordinates to full coordinates. |
protected void |
getHitObjects(DirtyItemList list,
int x,
int y)
Adds to the supplied dirty item list, all of the object tiles that are hit by the specified point (meaning the point is contained within their bounds and intersects a non-transparent pixel in the actual object image. |
Point |
getHoverCoords()
Returns the tile coordinates of the tile over which the mouse is hovering. |
Object |
getHoverObject()
Returns the top-most object over which the mouse is hovering; this may be a sprite or a SceneObject. |
protected Rectangle |
getInfluentialBounds()
Returns the bounds for which all intersecting scene blocks are kept resolved. |
protected Dimension |
getObjectRadialSize()
Returns the size of the rectangle around which we create an object's radial menu. |
Path |
getPath(Sprite sprite,
int x,
int y,
boolean loose)
Computes a path for the specified sprite to the specified tile coordinates. |
protected Rectangle |
getRadialMenuBounds(SceneObject scobj)
Returns an appropriate set of menu bounds for the specified object. |
MisoSceneMetrics |
getSceneMetrics()
Returns the scene metrics in use by this panel. |
MisoSceneModel |
getSceneModel()
Returns the scene model being displayed by this panel. |
Point |
getScreenCoords(int x,
int y)
Converts the supplied full coordinates to screen coordinates. |
Point |
getTileCoords(int x,
int y)
Converts the supplied screen coordinates to tile coordinates. |
protected TileManager |
getTileManager()
Returns the tile manager from which we load our tiles. |
protected Icon |
getTipIcon(SceneObject scobj,
String action)
Provides an icon for this tooltip, the default looks up an object action handler for the action and requests the icon from it. |
protected String |
getTipText(SceneObject scobj,
String action)
Derived classes can provide human readable object tips via this method. |
Rectangle |
getViewBounds()
Returns the bounds of the viewport in virtual coordinates. |
protected boolean |
handleMousePressed(Object hobject,
MouseEvent event)
Called when the mouse is pressed over an unknown or non-existent hover object. |
protected void |
handleObjectPressed(SceneObject scobj,
int mx,
int my)
Called when the user presses the mouse button over an object. |
protected void |
handleSpritePressed(Sprite sprite,
int mx,
int my)
Called when the user presses the mouse button over a sprite. |
protected void |
hoverObjectChanged(Object oldHover,
Object newHover)
A place for subclasses to react to the hover object changing. |
protected boolean |
isResponsive()
Returns true if we're responding to user input. |
void |
menuDeactivated(RadialMenu menu)
|
void |
mouseClicked(MouseEvent e)
|
void |
mouseDragged(MouseEvent e)
|
void |
mouseEntered(MouseEvent e)
|
void |
mouseExited(MouseEvent e)
|
void |
mouseMoved(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
|
void |
mouseReleased(MouseEvent e)
|
void |
paint(Graphics g)
|
protected void |
paintBaseDecorations(Graphics2D gfx,
Rectangle clip)
A function where derived classes can paint things after the base tiles have been rendered but before anything else has been rendered (so that whatever is painted appears to be on the ground). |
protected void |
paintBetween(Graphics2D gfx,
Rectangle dirty)
Paints between the front and back layer of sprites and animations. |
protected void |
paintBits(Graphics2D gfx,
int layer,
Rectangle dirty)
We don't want sprites rendered using the standard mechanism because we intersperse them with objects in our scene and need to manage their z-order. |
protected void |
paintDirtyItems(Graphics2D gfx,
Rectangle clip)
Renders the dirty sprites and objects in the scene to the given graphics context. |
protected void |
paintExtras(Graphics2D gfx,
Rectangle clip)
A function where derived classes can paint extra stuff while we've got the clipping region set up. |
protected void |
paintIndicator(Graphics2D gfx,
Rectangle clip,
SceneObjectIndicator tip)
Paint the specified indicator if it intersects the clipping rectangle. |
protected void |
paintIndicators(Graphics2D gfx,
Rectangle clip)
Paint all the appropriate indicators for our scene objects. |
protected void |
paintInFront(Graphics2D gfx,
Rectangle dirty)
Paints in front of all sprites and animations. |
protected void |
paintTiles(Graphics2D gfx,
Rectangle clip)
Renders the base and fringe layer tiles that intersect the specified clipping rectangle. |
void |
pressObject(SceneObject scobj)
Programmatically "click" a scene object. |
protected void |
recomputeVisible()
Recomputes our set of visible objects and their indicators. |
void |
refreshScene()
Completely invalidates our current resolved scene and re-resolves it from the ground up. |
void |
removeNotify()
|
void |
repaintRect(int x,
int y,
int width,
int height)
|
void |
reportMemoryUsage()
Reports the memory usage of the resolved tiles in the current scene block. |
protected int |
rethink()
This is called when our view position has changed by more than one tile in any direction. |
void |
setBounds(int x,
int y,
int width,
int height)
|
void |
setSceneModel(MisoSceneModel model)
Configures this display with a scene model which will immediately be resolved and displayed. |
void |
setShowFlags(int flags,
boolean on)
Set whether or not to highlight object tooltips (and potentially other scene entities). |
protected void |
showFlagsDidChange(int oldflags)
Called when our show flags have changed. |
protected boolean |
skipHitObject(SceneObject scobj)
Determines whether we should skip the specified object when compiling the list of objects under a specified point using getHitObjects(com.threerings.miso.client.DirtyItemList, int, int). |
protected boolean |
updateTileCoords(int sx,
int sy,
Point tpos)
Converts the supplied screen coordinates into tile coordinates, writing the values into the supplied Point instance and returning true if the screen coordinates translated
into a different set of tile coordinates than were already contained in the point (so that
the caller can know to update a highlight, for example). |
protected void |
viewLocationDidChange(int dx,
int dy)
Called during our tick when we have adjusted the view location. |
protected void |
warnVisible(SceneBlock block,
Rectangle sbounds)
Issues a warning to the error log that the specified block became visible prior to being resolved. |
| Methods inherited from class com.threerings.media.VirtualMediaPanel |
|---|
addObscurerDirtyRegion, addViewTracker, adjustBoundsCenter, clearPathable, constrainToBounds, didTick, dirtyScreenRect, doLayout, findRootBounds, paint, paintBehind, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeViewTracker, setBackground, setFollowsPathable, setViewLocation, trackPathable |
| Methods inherited from class com.threerings.media.MediaPanel |
|---|
abortAnimation, addAnimation, addObscurer, addObscurerDirtyRegions, addSprite, clearAnimations, clearSprites, clipToDirtyRegion, createActionSpriteHandler, createGraphics, getAnimationManager, getRegionManager, getSpriteManager, getTimeStamp, isManaged, isManaged, needsPaint, paintDirtyRect, removeObscurer, removeSprite, repaint, setOpaque, setPaused, tick, willTick |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int SHOW_TIPS
protected MisoContext _ctx
protected MisoSceneMetrics _metrics
protected MisoSceneModel _model
protected Dimension _rsize
protected Point _ulpos
protected Rectangle _ibounds
protected Rectangle _vibounds
protected RethinkOp _rethinkOp
rethink().
protected ConcurrentHashMap<Integer,SceneBlock> _blocks
getBlock(int, int) for details.
protected int _pendingBlocks
protected Set<SceneBlock> _visiBlocks
protected boolean _delayRepaint
protected List<SceneObject> _vizobjs
protected Map<Long,BufferedImage> _masks
protected Map<AutoFringer.FringeTile,WeakReference<AutoFringer.FringeTile>> _fringes
protected DirtyItemList _dirtyItems
protected List<Sprite> _dirtySprites
protected MisoScenePanel.PaintTileOp _paintOp
protected Point _tcoords
protected List<Sprite> _hitSprites
protected DirtyItemList _hitList
protected Object _hobject
protected Object _armedItem
protected RadialMenu _activeMenu
protected Point _hcoords
protected Map<SceneObject,SceneObjectIndicator> _indicators
protected boolean _indicatorsLaidOut
protected int _showFlags
protected SceneBlockResolver _resolver
protected static Map<MisoContext,SceneBlockResolver> _resolvers
protected JFrame _dframe
protected ResolutionView _dpanel
protected TileOpApplicator _applicator
protected static RuntimeAdjust.BooleanAdjust _traverseDebug
protected static RuntimeAdjust.BooleanAdjust _coordsDebug
protected static RuntimeAdjust.BooleanAdjust _pathsDebug
protected static RuntimeAdjust.BooleanAdjust _resolveDebug
protected static final Stroke DIRTY_RECT_STROKE
protected static final Composite ALPHA_FILL_TILE
protected static final Dimension DEF_RADIAL_RECT
| Constructor Detail |
|---|
public MisoScenePanel(MisoContext ctx,
MisoSceneMetrics metrics)
setSceneModel(com.threerings.miso.data.MisoSceneModel) to cause it to display something.
| Method Detail |
|---|
public void setSceneModel(MisoSceneModel model)
protected void clearScene()
public void refreshScene()
public void centerOnTile(int tx,
int ty)
public MisoSceneModel getSceneModel()
public MisoSceneMetrics getSceneMetrics()
public void setShowFlags(int flags,
boolean on)
public boolean checkShowFlag(int flag)
protected void showFlagsDidChange(int oldflags)
public Object getHoverObject()
SceneObject.
public Point getHoverCoords()
public Iterator<SceneBlock> enumerateResolvedBlocks()
SceneBlock instances.
public SceneBlock getBlock(int tx,
int ty)
public Path getPath(Sprite sprite,
int x,
int y,
boolean loose)
loose - if true, an approximate path will be returned if a complete path cannot be
located. This path will navigate the sprite "legally" as far as possible and then walk the
sprite in a straight line to its final destination. This is generally only useful if the
the path goes "off screen".
public Point getScreenCoords(int x,
int y)
public Point getFullCoords(int x,
int y)
public Point getTileCoords(int x,
int y)
public void clearRadialMenu()
public void reportMemoryUsage()
public void addNotify()
addNotify in class JComponentpublic void removeNotify()
removeNotify in class JComponentpublic void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenerpublic void mousePressed(MouseEvent e)
mousePressed in interface MouseListenerpublic void pressObject(SceneObject scobj)
handleObjectPressed(com.threerings.miso.client.SceneObject, int, int) with click coordinates in the center of the object.
protected void handleSpritePressed(Sprite sprite,
int mx,
int my)
protected void handleObjectPressed(SceneObject scobj,
int mx,
int my)
protected Rectangle getRadialMenuBounds(SceneObject scobj)
getObjectRadialSize() centered around the object.
protected Dimension getObjectRadialSize()
protected void fireObjectAction(ObjectActionHandler handler,
SceneObject scobj,
ActionEvent event)
protected boolean handleMousePressed(Object hobject,
MouseEvent event)
hobject - the hover object at the time of the mouse press or null if no hover object
is active.
public void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenerpublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenerpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenerpublic void mouseDragged(MouseEvent e)
mouseDragged in interface MouseMotionListenerpublic void mouseMoved(MouseEvent e)
mouseMoved in interface MouseMotionListener
protected Object computeOverHover(int mx,
int my)
protected Object computeUnderHover(int mx,
int my)
public boolean canTraverse(Object traverser,
int tx,
int ty)
AStarPathUtil.TraversalPredAStarPathUtil.getPath(TraversalPred,Object,int,int,int,int,int,boolean)) can traverse the
specified tile coordinate.
canTraverse in interface AStarPathUtil.TraversalPred
protected boolean canTraverseUnresolved(Object traverser,
int tx,
int ty)
public Rectangle getViewBounds()
VirtualMediaPanel
getViewBounds in interface RadialMenu.HostgetViewBounds in class VirtualMediaPanelpublic Component getComponent()
FrameParticipantComponent.paint(java.awt.Graphics) called on it once per frame with a translated but
unclipped graphics object.
Because clipping is expensive in terms of rectangle object allocation, frame participants are given the opportunity to do their own clipping because they are likely to want to clip to a more fine grained region than their entire bounds. If a participant does not wish to be actively rendered, it can safely return null.
getComponent in interface RadialMenu.HostgetComponent in interface FrameParticipantgetComponent in class MediaPanel
public void repaintRect(int x,
int y,
int width,
int height)
repaintRect in interface RadialMenu.Hostpublic void menuDeactivated(RadialMenu menu)
menuDeactivated in interface RadialMenu.Host
public void setBounds(int x,
int y,
int width,
int height)
setBounds in class VirtualMediaPanel
protected void viewLocationDidChange(int dx,
int dy)
VirtualMediaPanelVirtualMediaPanel._vbounds will
already have been updated to reflect our new view coordinates.
viewLocationDidChange in class VirtualMediaPaneldx - the delta scrolled in the x direction (in pixels).dy - the delta scrolled in the y direction (in pixels).protected TileSet.Colorizer getColorizer(ObjectInfo oinfo)
protected void appendDirtySprite(DirtyItemList list,
Sprite sprite)
protected TileManager getTileManager()
protected int rethink()
protected void computeInfluentialBounds()
computeInfluentialBounds(Rectangle, Rectangle, Rectangle) with
_vbounds, _ibounds and _vibounds.
public static void computeInfluentialBounds(Rectangle visibleBounds,
Rectangle influentualBounds,
Rectangle visibleBlockBounds)
influentialBounds to contain the bounds of the potentially
"influential" world and visibleBlockBounds to contain bounds that are used
to determine which blocks should be resolved before making the view visible.
Everything that intersects the influential area will be resolved on the expectation that it could be scrolled into view at any time. The influential bounds should be large enough that the time between a block becoming influential and the time at which it is resolved is longer than the expected time by which it will be scrolled into view, otherwise the users will see the man behind the curtain.
protected Rectangle getInfluentialBounds()
protected void blockResolving(SceneBlock block)
protected void blockAbandoned(SceneBlock block)
protected void blockResolved(SceneBlock block)
protected void blockFinished(SceneBlock block)
protected void allBlocksFinished()
protected void warnVisible(SceneBlock block,
Rectangle sbounds)
protected void recomputeVisible()
protected static int compose(int x,
int y)
public void computeIndicators()
protected String getTipText(SceneObject scobj,
String action)
protected Icon getTipIcon(SceneObject scobj,
String action)
protected void dirtyIndicator(SceneObjectIndicator indic)
protected void changeHoverObject(Object newHover)
protected void hoverObjectChanged(Object oldHover,
Object newHover)
protected void getHitObjects(DirtyItemList list,
int x,
int y)
protected boolean skipHitObject(SceneObject scobj)
getHitObjects(com.threerings.miso.client.DirtyItemList, int, int). The default implementation returns
true if the object has no action.
protected boolean updateTileCoords(int sx,
int sy,
Point tpos)
Point instance and returning true if the screen coordinates translated
into a different set of tile coordinates than were already contained in the point (so that
the caller can know to update a highlight, for example).
public void paint(Graphics g)
paint in class MediaPanel
protected void paintInFront(Graphics2D gfx,
Rectangle dirty)
MediaPanel
paintInFront in class MediaPanel
protected void paintBetween(Graphics2D gfx,
Rectangle dirty)
MediaPanel
paintBetween in class MediaPanel
protected void paintBits(Graphics2D gfx,
int layer,
Rectangle dirty)
paintBits in class MediaPanel
protected void paintBaseDecorations(Graphics2D gfx,
Rectangle clip)
protected void paintDirtyItems(Graphics2D gfx,
Rectangle clip)
protected void paintExtras(Graphics2D gfx,
Rectangle clip)
protected void paintIndicators(Graphics2D gfx,
Rectangle clip)
protected void paintIndicator(Graphics2D gfx,
Rectangle clip,
SceneObjectIndicator tip)
protected void paintTiles(Graphics2D gfx,
Rectangle clip)
protected void fillTile(Graphics2D gfx,
int tx,
int ty,
Color color)
protected BaseTile getBaseTile(int tx,
int ty)
protected BaseTile getFringeTile(int tx,
int ty)
protected BaseTile computeFringeTile(int tx,
int ty)
protected boolean isResponsive()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||