|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JSynopticInterface
JSynoptic current implementation assumes that there is one singleton owned by JSynoptic class which provides an interface to all the graphical elements coming from the plugins. This is the interface specification.
Method Summary | |
---|---|
void |
addContainer(ShapesContainer sc,
java.io.File f)
Add a new synoptic The name of the synoptic is based on the file name used to load it |
void |
addEditMenu(javax.swing.JPopupMenu popup)
Add an edit menu to a popup menu generated by a specific shape popup menu This edit menu is the generic menu for all the shapes. |
void |
addLongActions(long actionMask,
java.lang.Object target)
Add a long action If the action is related to a shape, then the shape can be locked until action completion |
boolean |
canEdit()
|
ShapesContainer.ShapesComponent |
getActiveComponent()
Get the active synoptic |
ShapesContainer |
getActiveContainer()
Get the active synoptic |
javax.swing.JFileChooser |
getFileChooser()
|
FiledDesktopCardPanel |
getFilePanel()
Returns the FiledDesktopCardPanel used to display the synoptics If this class is not used by the implementation, then it will return null but the Builtin plugin (at least) will not work. |
boolean |
getIsOpenProcessCancelled()
|
java.util.AbstractList |
getLockedShapes()
Get the list of locked shapes |
java.awt.Frame |
getOwner()
|
java.io.File |
getPath()
Get the current directory used to select files |
java.util.AbstractList |
getSelectionList()
Get the selection, i.e. an element to interract with the current synoptic That can be, for instance, a ShapeCreator to generate a new shape in the current synoptic or a DataSource to be used as the source of the selected shape in the current synoptic |
SourceTree |
getSourceTree()
Get the source tree which provides all the sources currently available |
void |
newComponent()
Create a new active synoptic |
boolean |
open(java.io.File f)
Open a file. |
void |
removeLongActions(long actionMask,
java.lang.Object target)
Remove a long action If the action was related to a shape and the shape was loacked then it becomes unlocked |
void |
setIsOpenProcessCancelled(boolean b)
|
void |
setPath(java.io.File f)
Set the current directory used to select file If the implementation is based on a JFileChooser this value will be used to define the first directory displayed by this dialog |
void |
setStatus(java.lang.String message)
Displays a status message |
Method Detail |
---|
java.awt.Frame getOwner()
boolean canEdit()
void addContainer(ShapesContainer sc, java.io.File f)
sc
- the shapes containerf
- the file used to load itShapesContainer getActiveContainer()
ShapesContainer.ShapesComponent getActiveComponent()
void newComponent()
SourceTree getSourceTree()
java.util.AbstractList getSelectionList()
void addEditMenu(javax.swing.JPopupMenu popup)
FiledDesktopCardPanel getFilePanel()
java.util.AbstractList getLockedShapes()
void addLongActions(long actionMask, java.lang.Object target)
actionMask
- target
- LongAction
void removeLongActions(long actionMask, java.lang.Object target)
actionMask
- target
- LongAction
void setPath(java.io.File f)
f
- the directoryjava.io.File getPath()
boolean open(java.io.File f)
f
- the file to load
void setStatus(java.lang.String message)
the
- message to displayjavax.swing.JFileChooser getFileChooser()
boolean getIsOpenProcessCancelled()
void setIsOpenProcessCancelled(boolean b)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |