java.lang.Object
org.jpo.gui.ThumbnailController
- All Implemented Interfaces:
ThumbnailQueueRequestCallbackHandler,JpoDropTargetDropEventHandler
public class ThumbnailController
extends Object
implements JpoDropTargetDropEventHandler, ThumbnailQueueRequestCallbackHandler
ThumbnailController controls a visual representation of the specified node.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcallbackThumbnailCreated(ThumbnailQueueRequest thumbnailQueueRequest) Entry point for the callback handlervoiddetermines if the thumbnail is part of the mail selection and changes the drawMailIcon flag to ensure that the mail icon will be place over the image.getNode()Returns the node for which the controller is actingreturns the Thumbnail that is being controlled by this Controller.voidThe implementing class must handle the drop event if one occurs.booleanisAlreadyDisplayingNode(NodeNavigatorInterface nodeNavigator, int index) Returns to the caller whether this ThumbnailController is already linked to the specified node.voidsetDecorateThumbnails(boolean decorateThumbnails) Determines whether decorations should be drawn or notvoidsetFactor(float thumbnailSizeFactor) This method sets the scaling factor for the display of a thumbnail.voidsetNode(NodeNavigatorInterface mySetOfNodes, int index) Sets the node being visualised by this ThumbnailController object.voidsetShowTimestamp(boolean show)
-
Constructor Details
-
ThumbnailController
public ThumbnailController(int thumbnailSize) Constructor- Parameters:
thumbnailSize- The size in which the thumbnail is to be created
-
-
Method Details
-
getNode
Returns the node for which the controller is acting- Returns:
- the node
-
getThumbnail
returns the Thumbnail that is being controlled by this Controller.- Returns:
- the Thumbnail
-
setShowTimestamp
public void setShowTimestamp(boolean show) -
callbackThumbnailCreated
Entry point for the callback handler- Specified by:
callbackThumbnailCreatedin interfaceThumbnailQueueRequestCallbackHandler- Parameters:
thumbnailQueueRequest- The request from the queue
-
setFactor
public void setFactor(float thumbnailSizeFactor) This method sets the scaling factor for the display of a thumbnail. 0..1- Parameters:
thumbnailSizeFactor- Factor
-
setDecorateThumbnails
public void setDecorateThumbnails(boolean decorateThumbnails) Determines whether decorations should be drawn or not- Parameters:
decorateThumbnails- Whether to decorate
-
determineMailSelectionStatus
public void determineMailSelectionStatus()determines if the thumbnail is part of the mail selection and changes the drawMailIcon flag to ensure that the mail icon will be place over the image. -
handleJpoDropTargetDropEvent
Description copied from interface:JpoDropTargetDropEventHandlerThe implementing class must handle the drop event if one occurs.- Specified by:
handleJpoDropTargetDropEventin interfaceJpoDropTargetDropEventHandler- Parameters:
event- The drop event
-