Package com.cosylab.vdct.graphics
Class DSGUIInterface
- java.lang.Object
-
- com.cosylab.vdct.graphics.DSGUIInterface
-
- All Implemented Interfaces:
VDBInterface
public class DSGUIInterface extends Object implements VDBInterface
Insert the type's description here. Creation date: (4.2.2001 15:32:01)- Author:
- Matej Sekoranja
-
-
Constructor Summary
Constructors Constructor Description DSGUIInterface(DrawingSurface drawingSurface, CopyContext copyContext)
Insert the method's description here.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
baseView()
Insert the method's description here.String
checkGroupName(String name, boolean relative)
Returns error message or null if OK Creation date: (3.2.2001 22:11:01)String
checkRecordName(String name, 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(Vector objs)
Box
createBox()
Insert the method's description here.Line
createLine()
void
createRecord(String name, 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(File file)
Insert the method's description here.void
exportAsGroup(File file)
Insert the method's description here.DrawingSurface
getDrawingSurface()
Object
getDsId()
void
group(String groupName)
Insert the method's description here.void
importBorder(File file)
Insert the method's description here.void
importDB(File file)
Insert the method's description here.void
importDBD(File file)
Insert the method's description here.void
importFields(File file)
Insert the method's description here.void
importTemplateDB(File file)
Insert the method's description here.boolean
isEmpty()
boolean
isErrorMessage(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(JFrame guiContext)
void
morph()
void
morph(String name, 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(File file)
Insert the method's description here.void
openDBD(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(String oldName, String newName)
Insert the method's description here.void
save(File file)
Insert the method's description here.void
saveAsGroup(File file)
Insert the method's description here.void
saveAsTemplate(File file)
void
saveRdbGroup(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.
-
-
-
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.DrawingSurfacecopyContext
- copyContext
-
-
Method Detail
-
moveOrigin
public void moveOrigin(int direction)
Insert the method's description here. Creation date: (4.2.2001 15:12:21)- Parameters:
direction
- direction
-
baseView
public void baseView()
Insert the method's description here. Creation date: (4.2.2001 15:32:01)
-
checkGroupName
public String checkGroupName(String name, boolean relative)
Returns error message or null if OK Creation date: (3.2.2001 22:11:01)- Specified by:
checkGroupName
in interfaceVDBInterface
- Parameters:
relative
- relativename
- java.lang.String- Returns:
- java.lang.String
-
checkRecordName
public String checkRecordName(String name, String oldName, boolean relative)
Returns error message or null if OK Creation date: (3.2.2001 22:11:01)- Specified by:
checkRecordName
in interfaceVDBInterface
- Parameters:
oldName
- oldNamerelative
- relativename
- java.lang.String- Returns:
- java.lang.String
-
isErrorMessage
public boolean isErrorMessage(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 interfaceVDBInterface
- Parameters:
message
- message- Returns:
- something
-
copyToSystemClipboard
public void copyToSystemClipboard(Vector objs)
- Parameters:
objs
- 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 interfaceVDBInterface
- Returns:
- something
-
createLine
public Line createLine()
- Specified by:
createLine
in interfaceVDBInterface
- Returns:
- something
-
createTextBox
public TextBox createTextBox()
- Specified by:
createTextBox
in interfaceVDBInterface
- Returns:
- something
-
createRecord
public void createRecord(String name, String type, boolean relative)
Insert the method's description here. Creation date: (3.2.2001 23:27:30)- Specified by:
createRecord
in interfaceVDBInterface
- Parameters:
name
- java.lang.Stringtype
- java.lang.Stringrelative
- 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(String groupName)
Insert the method's description here. Creation date: (4.2.2001 15:32:01)- Parameters:
groupName
- groupName
-
importDB
public void importDB(File file) throws IOException
Insert the method's description here. Creation date: (4.2.2001 15:32:01)- Parameters:
file
- java.io.File- Throws:
IOException
- foo
-
importTemplateDB
public void importTemplateDB(File file) throws IOException
Insert the method's description here. Creation date: (4.2.2001 15:32:01)- Parameters:
file
- java.io.File- Throws:
IOException
- foo
-
importFields
public void importFields(File file) throws IOException
Insert the method's description here. Creation date: (4.2.2001 15:32:01)- Parameters:
file
- java.io.File- Throws:
IOException
- foo
-
importBorder
public void importBorder(File file) throws IOException
Insert the method's description here. Creation date: (4.2.2001 15:32:01)- Parameters:
file
- java.io.File- Throws:
IOException
- foo
-
importDBD
public void importDBD(File file) throws IOException
Insert the method's description here. Creation date: (4.2.2001 15:32:01)- Parameters:
file
- java.io.File- Throws:
IOException
- foo
-
loadRdbGroup
public void loadRdbGroup(JFrame guiContext)
- Parameters:
guiContext
- guiContext
-
saveRdbGroup
public void saveRdbGroup(JFrame guiContext, boolean dialog)
- Parameters:
guiContext
- guiContextdialog
- 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()
- Returns:
- something
-
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(File file) throws IOException
Insert the method's description here. Creation date: (4.2.2001 15:32:01)- Parameters:
file
- java.io.File- Throws:
IOException
- foo
-
openDBD
public void openDBD(File file) throws IOException
Insert the method's description here. Creation date: (4.2.2001 15:32:01)- Parameters:
file
- java.io.File- Throws:
IOException
- foo
-
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)- Parameters:
pX
- pXpY
- pY
-
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(String oldName, String newName)
Insert the method's description here. Creation date: (3.5.2001 10:05:02)- Parameters:
oldName
- oldNamenewName
- newName
-
morph
public void morph()
-
morph
public void morph(String name, String newType)
Insert the method's description here. Creation date: (3.5.2001 10:05:02)- Parameters:
name
- namenewType
- newType
-
save
public void save(File file) throws IOException
Insert the method's description here. Creation date: (4.2.2001 15:48:27)- Parameters:
file
- java.io.File- Throws:
IOException
- foo
-
saveAsGroup
public void saveAsGroup(File file) throws IOException
Insert the method's description here. Creation date: (4.2.2001 15:32:01)- Parameters:
file
- java.io.File- Throws:
IOException
- foo
-
saveAsTemplate
public void saveAsTemplate(File file) throws IOException
- Parameters:
file
- file- Throws:
IOException
- foo- See Also:
GUIMenuInterface.saveAsTemplate(File)
-
export
public void export(File file) throws IOException
Insert the method's description here. Creation date: (4.2.2001 15:48:27)- Parameters:
file
- java.io.File- Throws:
IOException
- foo
-
exportAsGroup
public void exportAsGroup(File file) throws IOException
Insert the method's description here. Creation date: (4.2.2001 15:32:01)- Parameters:
file
- java.io.File- Throws:
IOException
- foo
-
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 Object getDsId()
- Returns:
- the id
-
-