com.cosylab.vdct.graphics
Class DSGUIInterface

java.lang.Object
  extended by com.cosylab.vdct.graphics.DSGUIInterface
All Implemented Interfaces:
VDBInterface

public class DSGUIInterface
extends java.lang.Object
implements VDBInterface

Insert the type's description here. Creation date: (4.2.2001 15:32:01)

Author:
Matej Sekoranja

Constructor Summary
DSGUIInterface(DrawingSurface drawingSurface, CopyContext copyContext)
          Insert the method's description here.
 
Method Summary
 void baseView()
          Insert the method's description here.
 java.lang.String checkGroupName(java.lang.String name, boolean relative)
          Returns error message or null if OK Creation date: (3.2.2001 22:11:01)
 java.lang.String checkRecordName(java.lang.String name, java.lang.String oldName, boolean relative)
          Returns error message or null if OK Creation date: (3.2.2001 22:11:01)
 void copy()
          Insert the method's description here.
 void copyToSystemClipboard(java.util.Vector objs)
           
 Box createBox()
          Insert the method's description here.
 Line createLine()
           
 void createRecord(java.lang.String name, java.lang.String type, boolean relative)
          Insert the method's description here.
 TextBox createTextBox()
           
 void cut()
          Insert the method's description here.
 void delete()
          Insert the method's description here.
 void export(java.io.File file)
          Insert the method's description here.
 void exportAsGroup(java.io.File file)
          Insert the method's description here.
 DrawingSurface getDrawingSurface()
           
 java.lang.Object getDsId()
           
 void group(java.lang.String groupName)
          Insert the method's description here.
 void importBorder(java.io.File file)
          Insert the method's description here.
 void importDB(java.io.File file)
          Insert the method's description here.
 void importDBD(java.io.File file)
          Insert the method's description here.
 void importFields(java.io.File file)
          Insert the method's description here.
 void importTemplateDB(java.io.File file)
          Insert the method's description here.
 boolean isEmpty()
           
 boolean isErrorMessage(java.lang.String message)
          Returns true if the string returned by checkGroupName(...) and checkRecordName(...) is an error message and false when it is a warning.
 boolean isModified()
          Insert the method's description here.
 void levelUp()
          Insert the method's description here.
 void loadRdbGroup(javax.swing.JFrame guiContext)
           
 void morph()
           
 void morph(java.lang.String name, java.lang.String newType)
          Insert the method's description here.
 void moveOrigin(int direction)
          Insert the method's description here.
 void newCmd()
          Insert the method's description here.
 void openDB(java.io.File file)
          Insert the method's description here.
 void openDBD(java.io.File file)
          Insert the method's description here.
 void paste()
           
 void pasteAtPosition(int pX, int pY)
          Insert the method's description here.
 void print()
          Insert the method's description here.
 void redo()
          Insert the method's description here.
 void rename()
          Insert the method's description here.
 void rename(java.lang.String oldName, java.lang.String newName)
          Insert the method's description here.
 void save(java.io.File file)
          Insert the method's description here.
 void saveAsGroup(java.io.File file)
          Insert the method's description here.
 void saveAsTemplate(java.io.File file)
           
 void saveRdbGroup(javax.swing.JFrame guiContext, boolean dialog)
           
 void selectAll()
          Insert the method's description here.
 void setFlatView(boolean state)
          Insert the method's description here.
 void setScale(double scale)
          Insert the method's description here.
 void showGrid(boolean state)
          Insert the method's description here.
 void showNavigator(boolean state)
          Insert the method's description here.
 void smartZoom()
          Zoom selection Creation date: (4.2.2001 15:57:56)
 void snapToGrid(boolean state)
          Insert the method's description here.
 void systemCopy()
          Insert the method's description here.
 void systemPaste()
           
 void undo()
          Insert the method's description here.
 void ungroup()
          Insert the method's description here.
 void updateGroupLabel()
          Insert the method's description here.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DSGUIInterface

public DSGUIInterface(DrawingSurface drawingSurface,
                      CopyContext copyContext)
Insert the method's description here. Creation date: (4.2.2001 15:32:49)

Parameters:
drawingSurface - com.cosylab.vdct.graphics.DrawingSurface
Method Detail

moveOrigin

public void moveOrigin(int direction)
Insert the method's description here. Creation date: (4.2.2001 15:12:21)


baseView

public void baseView()
Insert the method's description here. Creation date: (4.2.2001 15:32:01)


checkGroupName

public java.lang.String checkGroupName(java.lang.String name,
                                       boolean relative)
Returns error message or null if OK Creation date: (3.2.2001 22:11:01)

Specified by:
checkGroupName in interface VDBInterface
Parameters:
name - java.lang.String
Returns:
java.lang.String

checkRecordName

public java.lang.String checkRecordName(java.lang.String name,
                                        java.lang.String oldName,
                                        boolean relative)
Returns error message or null if OK Creation date: (3.2.2001 22:11:01)

Specified by:
checkRecordName in interface VDBInterface
Parameters:
name - java.lang.String
Returns:
java.lang.String

isErrorMessage

public boolean isErrorMessage(java.lang.String message)
Description copied from interface: VDBInterface
Returns true if the string returned by checkGroupName(...) and checkRecordName(...) is an error message and false when it is a warning.

Specified by:
isErrorMessage in interface VDBInterface

copyToSystemClipboard

public void copyToSystemClipboard(java.util.Vector objs)

copy

public void copy()
Insert the method's description here. Creation date: (4.2.2001 15:32:01)


systemCopy

public void systemCopy()
Insert the method's description here. Creation date: (4.2.2001 15:32:01)


createBox

public Box createBox()
Description copied from interface: VDBInterface
Insert the method's description here. Creation date: (3.2.2001 23:27:30)

Specified by:
createBox in interface VDBInterface

createLine

public Line createLine()
Specified by:
createLine in interface VDBInterface

createTextBox

public TextBox createTextBox()
Specified by:
createTextBox in interface VDBInterface

createRecord

public void createRecord(java.lang.String name,
                         java.lang.String type,
                         boolean relative)
Insert the method's description here. Creation date: (3.2.2001 23:27:30)

Specified by:
createRecord in interface VDBInterface
Parameters:
name - java.lang.String
type - java.lang.String
relative - boolean

cut

public void cut()
Insert the method's description here. Creation date: (4.2.2001 15:32:01)


delete

public void delete()
Insert the method's description here. Creation date: (4.2.2001 15:32:01)


group

public void group(java.lang.String groupName)
Insert the method's description here. Creation date: (4.2.2001 15:32:01)


importDB

public void importDB(java.io.File file)
              throws java.io.IOException
Insert the method's description here. Creation date: (4.2.2001 15:32:01)

Parameters:
file - java.io.File
Throws:
java.io.IOException

importTemplateDB

public void importTemplateDB(java.io.File file)
                      throws java.io.IOException
Insert the method's description here. Creation date: (4.2.2001 15:32:01)

Parameters:
file - java.io.File
Throws:
java.io.IOException

importFields

public void importFields(java.io.File file)
                  throws java.io.IOException
Insert the method's description here. Creation date: (4.2.2001 15:32:01)

Parameters:
file - java.io.File
Throws:
java.io.IOException

importBorder

public void importBorder(java.io.File file)
                  throws java.io.IOException
Insert the method's description here. Creation date: (4.2.2001 15:32:01)

Parameters:
file - java.io.File
Throws:
java.io.IOException

importDBD

public void importDBD(java.io.File file)
               throws java.io.IOException
Insert the method's description here. Creation date: (4.2.2001 15:32:01)

Parameters:
file - java.io.File
Throws:
java.io.IOException

loadRdbGroup

public void loadRdbGroup(javax.swing.JFrame guiContext)

saveRdbGroup

public void saveRdbGroup(javax.swing.JFrame guiContext,
                         boolean dialog)

isModified

public boolean isModified()
Insert the method's description here. Creation date: (29.4.2001 11:37:22)

Returns:
boolean

isEmpty

public boolean isEmpty()

levelUp

public void levelUp()
Insert the method's description here. Creation date: (4.2.2001 15:32:01)


newCmd

public void newCmd()
Insert the method's description here. Creation date: (4.2.2001 15:32:01)


openDB

public void openDB(java.io.File file)
            throws java.io.IOException
Insert the method's description here. Creation date: (4.2.2001 15:32:01)

Parameters:
file - java.io.File
Throws:
java.io.IOException

openDBD

public void openDBD(java.io.File file)
             throws java.io.IOException
Insert the method's description here. Creation date: (4.2.2001 15:32:01)

Parameters:
file - java.io.File
Throws:
java.io.IOException

systemPaste

public void systemPaste()

paste

public void paste()

pasteAtPosition

public void pasteAtPosition(int pX,
                            int pY)
Insert the method's description here. Creation date: (4.2.2001 15:32:01)


print

public void print()
Insert the method's description here. Creation date: (4.2.2001 15:32:01)


redo

public void redo()
Insert the method's description here. Creation date: (4.2.2001 15:32:01)


rename

public void rename()
Insert the method's description here. Creation date: (4.2.2001 15:32:01)


rename

public void rename(java.lang.String oldName,
                   java.lang.String newName)
Insert the method's description here. Creation date: (3.5.2001 10:05:02)


morph

public void morph()

morph

public void morph(java.lang.String name,
                  java.lang.String newType)
Insert the method's description here. Creation date: (3.5.2001 10:05:02)


save

public void save(java.io.File file)
          throws java.io.IOException
Insert the method's description here. Creation date: (4.2.2001 15:48:27)

Parameters:
file - java.io.File
Throws:
java.io.IOException

saveAsGroup

public void saveAsGroup(java.io.File file)
                 throws java.io.IOException
Insert the method's description here. Creation date: (4.2.2001 15:32:01)

Parameters:
file - java.io.File
Throws:
java.io.IOException

saveAsTemplate

public void saveAsTemplate(java.io.File file)
                    throws java.io.IOException
Throws:
java.io.IOException
See Also:
GUIMenuInterface.saveAsTemplate(File)

export

public void export(java.io.File file)
            throws java.io.IOException
Insert the method's description here. Creation date: (4.2.2001 15:48:27)

Parameters:
file - java.io.File
Throws:
java.io.IOException

exportAsGroup

public void exportAsGroup(java.io.File file)
                   throws java.io.IOException
Insert the method's description here. Creation date: (4.2.2001 15:32:01)

Parameters:
file - java.io.File
Throws:
java.io.IOException

selectAll

public void selectAll()
Insert the method's description here. Creation date: (4.2.2001 15:32:01)


setFlatView

public void setFlatView(boolean state)
Insert the method's description here. Creation date: (4.2.2001 15:32:01)

Parameters:
state - boolean

setScale

public void setScale(double scale)
Insert the method's description here. Creation date: (4.2.2001 15:43:50)

Parameters:
scale - double

showGrid

public void showGrid(boolean state)
Insert the method's description here. Creation date: (4.2.2001 15:32:01)

Parameters:
state - boolean

showNavigator

public void showNavigator(boolean state)
Insert the method's description here. Creation date: (27.4.2001 19:54:27)

Parameters:
state - boolean

smartZoom

public void smartZoom()
Zoom selection Creation date: (4.2.2001 15:57:56)


snapToGrid

public void snapToGrid(boolean state)
Insert the method's description here. Creation date: (4.2.2001 15:32:01)

Parameters:
state - boolean

undo

public void undo()
Insert the method's description here. Creation date: (4.2.2001 15:32:01)


ungroup

public void ungroup()
Insert the method's description here. Creation date: (4.2.2001 15:32:01)


updateGroupLabel

public void updateGroupLabel()
Insert the method's description here. Creation date: (22.4.2001 18:12:34)


getDrawingSurface

public DrawingSurface getDrawingSurface()
Returns:
the drawingSurface

getDsId

public java.lang.Object getDsId()
Returns:
the id