APIdia Launch Partner
Top Fields Constructors Methods
com.sun.javafx.tk

pack-priv final Class LocalClipboard

extends Object
implements TKClipboard
Class Inheritance
All Implemented Interfaces
com.sun.javafx.tk.TKClipboard
Imports
java.util.Collections, .HashMap, .HashSet, .Map, .Set, javafx.scene.image.Image, javafx.scene.input.DataFormat, .TransferMode, javafx.util.Pair

Field Summary

Modifier and TypeField and Description
private final Map<DataFormat, Object>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
getContent(final DataFormat dataFormat)

Implements com.sun.javafx.tk.TKClipboard.getContent.

Returns the content stored in this clipboard of the given type, or null if there is no content with this type.

public Set<DataFormat>
getContentTypes()

Implements com.sun.javafx.tk.TKClipboard.getContentTypes.

Gets the set of DataFormat types on this Clipboard instance which have associated data registered on the clipboard.

public Image
getDragView()

Implements com.sun.javafx.tk.TKClipboard.getDragView.

Gets the image used as a drag view.

public double
getDragViewOffsetX()

Implements com.sun.javafx.tk.TKClipboard.getDragViewOffsetX.

Gets the x position of the cursor of the drag view image.

public double
getDragViewOffsetY()

Implements com.sun.javafx.tk.TKClipboard.getDragViewOffsetY.

Gets the y position of the cursor of the drag view image.

public Set<TransferMode>
public boolean
hasContent(final DataFormat dataFormat)

Implements com.sun.javafx.tk.TKClipboard.hasContent.

Tests whether there is any content on this clipboard of the given DataFormat type.

public boolean
putContent(final Pair<DataFormat, Object>... content)

Implements com.sun.javafx.tk.TKClipboard.putContent.

Puts the specified content onto the clipboard.

public void
setDragView(final Image image)

Implements com.sun.javafx.tk.TKClipboard.setDragView.

Sets the visual representation of data being transfered in a drag and drop gesture.

public void
setDragViewOffsetX(final double offsetX)

Implements com.sun.javafx.tk.TKClipboard.setDragViewOffsetX.

Sets the x position of the cursor of the drag view image.

public void
setDragViewOffsetY(final double offsetY)

Implements com.sun.javafx.tk.TKClipboard.setDragViewOffsetY.

Sets the y position of the cursor of the drag view image.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

valuesback to summary
private final Map<DataFormat, Object> values

Constructor Detail

LocalClipboardback to summary
public LocalClipboard()

Method Detail

getContentback to summary
public Object getContent(final DataFormat dataFormat)

Implements com.sun.javafx.tk.TKClipboard.getContent.

Doc from com.sun.javafx.tk.TKClipboard.getContent.

Returns the content stored in this clipboard of the given type, or null if there is no content with this type.

Annotations
@Override
getContentTypesback to summary
public Set<DataFormat> getContentTypes()

Implements com.sun.javafx.tk.TKClipboard.getContentTypes.

Doc from com.sun.javafx.tk.TKClipboard.getContentTypes.

Gets the set of DataFormat types on this Clipboard instance which have associated data registered on the clipboard. This set will always be non-null and immutable. If the Clipboard is subsequently modifed, this returned set is not updated.

Annotations
@Override
getDragViewback to summary
public Image getDragView()

Implements com.sun.javafx.tk.TKClipboard.getDragView.

Doc from com.sun.javafx.tk.TKClipboard.getDragView.

Gets the image used as a drag view.

Annotations
@Override
getDragViewOffsetXback to summary
public double getDragViewOffsetX()

Implements com.sun.javafx.tk.TKClipboard.getDragViewOffsetX.

Doc from com.sun.javafx.tk.TKClipboard.getDragViewOffsetX.

Gets the x position of the cursor of the drag view image.

Annotations
@Override
getDragViewOffsetYback to summary
public double getDragViewOffsetY()

Implements com.sun.javafx.tk.TKClipboard.getDragViewOffsetY.

Doc from com.sun.javafx.tk.TKClipboard.getDragViewOffsetY.

Gets the y position of the cursor of the drag view image.

Annotations
@Override
getTransferModesback to summary
public Set<TransferMode> getTransferModes()

Implements com.sun.javafx.tk.TKClipboard.getTransferModes.

Annotations
@Override
hasContentback to summary
public boolean hasContent(final DataFormat dataFormat)

Implements com.sun.javafx.tk.TKClipboard.hasContent.

Doc from com.sun.javafx.tk.TKClipboard.hasContent.

Tests whether there is any content on this clipboard of the given DataFormat type.

Annotations
@Override
putContentback to summary
public boolean putContent(final Pair<DataFormat, Object>... content)

Implements com.sun.javafx.tk.TKClipboard.putContent.

Doc from com.sun.javafx.tk.TKClipboard.putContent.

Puts the specified content onto the clipboard. Note that all existing content is cleared from the clipboard prior to the specified content being added. A NullPointerException is thrown if either the DataFormat or the Object data in the content Pair is null.

Annotations
@Override
setDragViewback to summary
public void setDragView(final Image image)

Implements com.sun.javafx.tk.TKClipboard.setDragView.

Doc from com.sun.javafx.tk.TKClipboard.setDragView.

Sets the visual representation of data being transfered in a drag and drop gesture.

Annotations
@Override
setDragViewOffsetXback to summary
public void setDragViewOffsetX(final double offsetX)

Implements com.sun.javafx.tk.TKClipboard.setDragViewOffsetX.

Doc from com.sun.javafx.tk.TKClipboard.setDragViewOffsetX.

Sets the x position of the cursor of the drag view image.

Annotations
@Override
setDragViewOffsetYback to summary
public void setDragViewOffsetY(final double offsetY)

Implements com.sun.javafx.tk.TKClipboard.setDragViewOffsetY.

Doc from com.sun.javafx.tk.TKClipboard.setDragViewOffsetY.

Sets the y position of the cursor of the drag view image.

Annotations
@Override