org.devaki.nextobjects.util
Class NOClipboard

java.lang.Object
  extended byorg.devaki.nextobjects.util.NOClipboard
All Implemented Interfaces:
java.awt.datatransfer.ClipboardOwner

public class NOClipboard
extends java.lang.Object
implements java.awt.datatransfer.ClipboardOwner

Tha App Clipboard Based on simple examples found on www

Author:
Emmanuel Florent

Constructor Summary
NOClipboard()
          Construct the clipboard
 
Method Summary
static void copy(ClassStyle pClassStyle)
          Copy a class style
static void copy(LineStyle pLineStyle)
          Copy a line style
static void copy(java.lang.String pString)
          Copy some Text
static void copy(java.util.Vector pCurrentObjects)
          Copy an object
static void cut(java.util.Vector objects)
          Cut an object
static boolean isBaseObjectClipped()
          Define if there is a usable class like object in the clipboard.
static boolean isClassStyleClipped()
          Define if there is a style object in the clipboard
static boolean isColumnClipped()
          Define if there is a column like object in the clipboard
static boolean isLineStyleClipped()
          Define if there is a style object in the clipboard
 void lostOwnership(java.awt.datatransfer.Clipboard parClipboard, java.awt.datatransfer.Transferable parTransferable)
          This function must be declared because of the class implementation
static void pasteBaseObject(int x, int y)
          Paste the objects contained in the clipboard TODO: simplify using BaseModel instead of ConceptualModel/PhysicalModel
static void pasteClassStyle(ClassView pClassView)
          Paste clipped style
static void pasteColumn(BaseObject object)
          Paste a field contained in the clipboard
static void pasteLineStyle(LineView pLineView)
          Paste clipped style
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NOClipboard

public NOClipboard()
Construct the clipboard

Method Detail

lostOwnership

public void lostOwnership(java.awt.datatransfer.Clipboard parClipboard,
                          java.awt.datatransfer.Transferable parTransferable)
This function must be declared because of the class implementation

Specified by:
lostOwnership in interface java.awt.datatransfer.ClipboardOwner
Parameters:
parClipboard - the parent clipboard
parTransferable - the parent transferable object

isBaseObjectClipped

public static boolean isBaseObjectClipped()
Define if there is a usable class like object in the clipboard.

Returns:
true if a BaseObject is in the clipboard

isColumnClipped

public static boolean isColumnClipped()
Define if there is a column like object in the clipboard

Returns:
true if there is a column in the clipboard

isClassStyleClipped

public static boolean isClassStyleClipped()
Define if there is a style object in the clipboard

Returns:
true if there is a ClassStyle object in the clipboard

isLineStyleClipped

public static boolean isLineStyleClipped()
Define if there is a style object in the clipboard

Returns:
true if there is a LineStyle object in the clipboard

cut

public static void cut(java.util.Vector objects)
Cut an object

Parameters:
objects - a Vector containing the objects to cut

copy

public static void copy(java.util.Vector pCurrentObjects)
Copy an object

Parameters:
pCurrentObjects - the objects to be copied

copy

public static void copy(java.lang.String pString)
Copy some Text

Parameters:
pString - the string to be copied

copy

public static void copy(ClassStyle pClassStyle)
Copy a class style

Parameters:
pClassStyle - the class style to be copied

copy

public static void copy(LineStyle pLineStyle)
Copy a line style

Parameters:
pLineStyle - the line style to be copied

pasteBaseObject

public static void pasteBaseObject(int x,
                                   int y)
Paste the objects contained in the clipboard TODO: simplify using BaseModel instead of ConceptualModel/PhysicalModel

Parameters:
x - the x coordinate
y - the y coordinate

pasteColumn

public static void pasteColumn(BaseObject object)
Paste a field contained in the clipboard

Parameters:
object - the column to paste

pasteClassStyle

public static void pasteClassStyle(ClassView pClassView)
Paste clipped style

Parameters:
pClassView - the class view to which the style will apply

pasteLineStyle

public static void pasteLineStyle(LineView pLineView)
Paste clipped style

Parameters:
pLineView - the line view to which the style will apply


Copyright © 2002-2004 devaki.org. All Rights Reserved.