|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.cosylab.vdct.graphics.DsManager
public class DsManager
Field Summary | |
---|---|
protected CopyContext |
copyContext
|
protected DesktopInterface |
desktopInterface
|
protected static java.util.HashMap |
drawingSurfaces
|
protected int |
dsCount
|
protected java.util.Vector |
dsEventListeners
|
protected DSGUIInterface |
dsInterface
|
protected static DsManager |
instance
|
Fields inherited from interface java.awt.print.Pageable |
---|
UNKNOWN_NUMBER_OF_PAGES |
Constructor Summary | |
---|---|
DsManager(DesktopInterface desktopInterface)
|
Method Summary | |
---|---|
VisualComponent |
addDrawingSurface(java.lang.Object id,
InternalFrameInterface displayer)
|
void |
addDsEventListener(DsEventListener listener)
|
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. |
void |
close()
|
void |
closeAll()
|
void |
closeDrawingSurface(java.lang.Object id)
|
void |
copy()
Insert the method's description here. |
Box |
createBox()
Insert the method's description here. |
void |
createDummyDrawingSurface()
|
Line |
createLine()
|
void |
createRecord(java.lang.String name,
java.lang.String type,
boolean relative)
|
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. |
static java.util.Vector |
getAllDrawingSurfaces()
|
static DrawingSurface |
getDrawingSurface()
|
static DrawingSurface |
getDrawingSurface(java.lang.Object id)
|
DrawingSurfaceInterface |
getDrawingSurfaceById(java.lang.Object id)
|
DrawingSurfaceInterface[] |
getDrawingSurfaces()
|
DrawingSurfaceInterface |
getFocusedDrawingSurface()
|
int |
getNumberOfPages()
|
java.awt.print.PageFormat |
getPageFormat(int pageIndex)
|
java.awt.print.Printable |
getPrintable(int pageIndex)
|
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 |
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 |
isMacroPortsIDChanged()
|
boolean |
isModified()
Insert the method's description here. |
void |
levelUp()
Insert the method's description here. |
void |
linkCommand(VisibleObject linkObject,
LinkSource linkData)
|
void |
loadRdbGroup(javax.swing.JFrame guiContext)
|
void |
morph()
|
void |
morph(java.lang.String name,
java.lang.String newType)
|
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()
Insert the method's description here. |
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 |
removeDrawingSurface(java.lang.Object id)
|
void |
removeDsEventListener(DsEventListener listener)
|
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 |
repaint(boolean highlighted)
|
void |
repaintAll(boolean highlighted)
|
void |
reset()
|
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)
Insert the method's description here. |
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 |
setFocusedDrawingSurface(java.lang.Object id)
|
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()
Insert the method's description here. |
void |
snapToGrid(boolean state)
Insert the method's description here. |
void |
systemCopy()
|
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 |
Field Detail |
---|
protected static DsManager instance
protected DSGUIInterface dsInterface
protected static java.util.HashMap drawingSurfaces
protected DesktopInterface desktopInterface
protected CopyContext copyContext
protected java.util.Vector dsEventListeners
protected int dsCount
Constructor Detail |
---|
public DsManager(DesktopInterface desktopInterface)
Method Detail |
---|
public static DrawingSurface getDrawingSurface()
public static DrawingSurface getDrawingSurface(java.lang.Object id)
public static java.util.Vector getAllDrawingSurfaces()
public void createDummyDrawingSurface()
public VisualComponent addDrawingSurface(java.lang.Object id, InternalFrameInterface displayer)
addDrawingSurface
in interface DsManagerInterface
public DrawingSurfaceInterface getDrawingSurfaceById(java.lang.Object id)
getDrawingSurfaceById
in interface DsManagerInterface
public void removeDrawingSurface(java.lang.Object id)
removeDrawingSurface
in interface DsManagerInterface
public DrawingSurfaceInterface getFocusedDrawingSurface()
getFocusedDrawingSurface
in interface DsManagerInterface
public void setFocusedDrawingSurface(java.lang.Object id)
setFocusedDrawingSurface
in interface DsManagerInterface
public DrawingSurfaceInterface[] getDrawingSurfaces()
getDrawingSurfaces
in interface DsManagerInterface
public void closeDrawingSurface(java.lang.Object id)
closeDrawingSurface
in interface DsManagerInterface
public void addDsEventListener(DsEventListener listener)
addDsEventListener
in interface DsManagerInterface
public void removeDsEventListener(DsEventListener listener)
removeDsEventListener
in interface DsManagerInterface
public void linkCommand(VisibleObject linkObject, LinkSource linkData)
linkCommand
in interface LinkCommandInterface
public java.lang.String checkGroupName(java.lang.String name, boolean relative)
VDBInterface
checkGroupName
in interface VDBInterface
name
- java.lang.String
public java.lang.String checkRecordName(java.lang.String name, java.lang.String oldName, boolean relative)
VDBInterface
checkRecordName
in interface VDBInterface
name
- java.lang.String
public Box createBox()
VDBInterface
createBox
in interface VDBInterface
public Line createLine()
createLine
in interface VDBInterface
public void createRecord(java.lang.String name, java.lang.String type, boolean relative)
createRecord
in interface VDBInterface
public TextBox createTextBox()
createTextBox
in interface VDBInterface
public boolean isErrorMessage(java.lang.String message)
VDBInterface
isErrorMessage
in interface VDBInterface
public void baseView()
GUIMenuInterface
baseView
in interface GUIMenuInterface
public void copy()
GUIMenuInterface
copy
in interface GUIMenuInterface
public void cut()
GUIMenuInterface
cut
in interface GUIMenuInterface
public void delete()
GUIMenuInterface
delete
in interface GUIMenuInterface
public void export(java.io.File file) throws java.io.IOException
GUIMenuInterface
export
in interface GUIMenuInterface
file
- java.io.File
java.io.IOException
- The exception description.public void exportAsGroup(java.io.File file) throws java.io.IOException
GUIMenuInterface
exportAsGroup
in interface GUIMenuInterface
file
- java.io.File
java.io.IOException
- The exception description.public void group(java.lang.String groupName)
GUIMenuInterface
group
in interface GUIMenuInterface
public void importBorder(java.io.File file) throws java.io.IOException
GUIMenuInterface
importBorder
in interface GUIMenuInterface
file
- java.io.File
java.io.IOException
- The exception description.public void importDB(java.io.File file) throws java.io.IOException
GUIMenuInterface
importDB
in interface GUIMenuInterface
file
- java.io.File
java.io.IOException
- The exception description.public void importDBD(java.io.File file) throws java.io.IOException
GUIMenuInterface
importDBD
in interface GUIMenuInterface
file
- java.io.File
java.io.IOException
- The exception description.public void importFields(java.io.File file) throws java.io.IOException
GUIMenuInterface
importFields
in interface GUIMenuInterface
file
- java.io.File
java.io.IOException
- The exception description.public void importTemplateDB(java.io.File file) throws java.io.IOException
GUIMenuInterface
importTemplateDB
in interface GUIMenuInterface
file
- java.io.File
java.io.IOException
- The exception description.public boolean isModified()
GUIMenuInterface
isModified
in interface GUIMenuInterface
public boolean isMacroPortsIDChanged()
isMacroPortsIDChanged
in interface GUIMenuInterface
public void levelUp()
GUIMenuInterface
levelUp
in interface GUIMenuInterface
public void loadRdbGroup(javax.swing.JFrame guiContext)
loadRdbGroup
in interface GUIMenuInterface
public void morph()
morph
in interface GUIMenuInterface
public void morph(java.lang.String name, java.lang.String newType)
morph
in interface GUIMenuInterface
public void moveOrigin(int direction)
GUIMenuInterface
moveOrigin
in interface GUIMenuInterface
public void newCmd()
GUIMenuInterface
newCmd
in interface GUIMenuInterface
public void openDB(java.io.File file) throws java.io.IOException
GUIMenuInterface
openDB
in interface GUIMenuInterface
file
- java.io.File
java.io.IOException
- The exception description.public void openDBD(java.io.File file) throws java.io.IOException
GUIMenuInterface
openDBD
in interface GUIMenuInterface
file
- java.io.File
java.io.IOException
- The exception description.public void paste()
GUIMenuInterface
paste
in interface GUIMenuInterface
public void pasteAtPosition(int pX, int pY)
GUIMenuInterface
pasteAtPosition
in interface GUIMenuInterface
public void print()
GUIMenuInterface
print
in interface GUIMenuInterface
public void redo()
GUIMenuInterface
redo
in interface GUIMenuInterface
public void rename()
GUIMenuInterface
rename
in interface GUIMenuInterface
public void rename(java.lang.String oldName, java.lang.String newName)
GUIMenuInterface
rename
in interface GUIMenuInterface
public void save(java.io.File file) throws java.io.IOException
GUIMenuInterface
save
in interface GUIMenuInterface
file
- java.io.File
java.io.IOException
- The exception description.public void saveAsGroup(java.io.File file) throws java.io.IOException
GUIMenuInterface
saveAsGroup
in interface GUIMenuInterface
file
- java.io.File
java.io.IOException
- The exception description.public void saveRdbGroup(javax.swing.JFrame guiContext, boolean dialog)
saveRdbGroup
in interface GUIMenuInterface
public void saveAsTemplate(java.io.File file) throws java.io.IOException
GUIMenuInterface
saveAsTemplate
in interface GUIMenuInterface
file
- java.io.File
java.io.IOException
- The exception description.public void selectAll()
GUIMenuInterface
selectAll
in interface GUIMenuInterface
public void setFlatView(boolean state)
GUIMenuInterface
setFlatView
in interface GUIMenuInterface
state
- booleanpublic void setScale(double scale)
GUIMenuInterface
setScale
in interface GUIMenuInterface
scale
- doublepublic void showGrid(boolean state)
GUIMenuInterface
showGrid
in interface GUIMenuInterface
state
- booleanpublic void showNavigator(boolean state)
GUIMenuInterface
showNavigator
in interface GUIMenuInterface
state
- booleanpublic void smartZoom()
GUIMenuInterface
smartZoom
in interface GUIMenuInterface
public void snapToGrid(boolean state)
GUIMenuInterface
snapToGrid
in interface GUIMenuInterface
state
- booleanpublic void systemCopy()
systemCopy
in interface GUIMenuInterface
DSGUIInterface.systemCopy()
public void systemPaste()
systemPaste
in interface GUIMenuInterface
DSGUIInterface.systemPaste()
public void undo()
GUIMenuInterface
undo
in interface GUIMenuInterface
DSGUIInterface.undo()
public void ungroup()
GUIMenuInterface
ungroup
in interface GUIMenuInterface
DSGUIInterface.ungroup()
public void updateGroupLabel()
GUIMenuInterface
updateGroupLabel
in interface GUIMenuInterface
DSGUIInterface.updateGroupLabel()
public void repaint(boolean highlighted)
repaint
in interface RepaintInterface
public void repaintAll(boolean highlighted)
repaintAll
in interface RepaintInterface
public void reset()
reset
in interface GUIMenuInterface
public int getNumberOfPages()
getNumberOfPages
in interface java.awt.print.Pageable
public java.awt.print.PageFormat getPageFormat(int pageIndex) throws java.lang.IndexOutOfBoundsException
getPageFormat
in interface java.awt.print.Pageable
java.lang.IndexOutOfBoundsException
public java.awt.print.Printable getPrintable(int pageIndex) throws java.lang.IndexOutOfBoundsException
getPrintable
in interface java.awt.print.Pageable
java.lang.IndexOutOfBoundsException
public void close()
close
in interface GUIMenuInterface
public void closeAll()
closeAll
in interface GUIMenuInterface
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |