|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IPlugInPort
Interface for communication between plug-ins and the application. Plug-ins may acquire
information or make changes through this interface. Application events are dispatched to plug-ins
through MessageDispatcher
IPlugIn,
MessageDispatcher,
IMessageListener,
EventType| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.diylc.common.ITemplateProcessor |
|---|
ITemplateProcessor.TemplateAlreadyExistsException |
| Field Summary | |
|---|---|
static java.lang.String |
ABNORMAL_EXIT_KEY
|
static java.lang.String |
ANTI_ALIASING_KEY
|
static java.lang.String |
AUTO_EDIT_KEY
|
static int |
BUTTON1
|
static int |
BUTTON2
|
static int |
BUTTON3
|
static java.lang.String |
CONTINUOUS_CREATION_KEY
|
static int |
DND_TOGGLE_SNAP
|
static int |
DND_TOGGLE_STICKY
|
static java.lang.String |
EXPORT_GRID_KEY
|
static java.lang.String |
HI_QUALITY_RENDER_KEY
|
static java.lang.String |
METRIC_KEY
|
static int |
NOBUTTON
Mouse button constants. |
static java.lang.String |
OUTLINE_KEY
|
static java.lang.String |
RECENT_COMPONENTS_KEY
|
static java.lang.String |
SNAP_TO_GRID_KEY
|
static java.lang.String |
STICKY_POINTS_KEY
|
static java.lang.String |
THEME_KEY
|
static java.lang.String |
WHEEL_ZOOM_KEY
|
| Fields inherited from interface org.diylc.common.IKeyProcessor |
|---|
VK_DOWN, VK_LEFT, VK_RIGHT, VK_UP |
| Fields inherited from interface org.diylc.common.ITemplateProcessor |
|---|
TEMPLATES_KEY |
| Method Summary | |
|---|---|
boolean |
allowFileAction()
Shows a user dialog if there are changes to confirm that it's safe to proceed. |
void |
applyPropertiesToProject(java.util.List<PropertyWrapper> properties)
Applies specified properties to the current project. |
void |
bringSelectionToFront()
Brings each of the selected components one step to front. |
java.awt.geom.Point2D |
calculateSelectionDimension()
|
void |
createNewProject()
Creates a new project. |
void |
deleteSelectedComponents()
Deletes all the selected components from the project. |
void |
draw(java.awt.Graphics2D g2d,
java.util.Set<DrawOption> drawOptions,
IComponentFiler filter)
Draws project on the provided Graphics2D. |
void |
editSelection()
|
java.lang.Double[] |
getAvailableZoomLevels()
|
java.awt.Dimension |
getCanvasDimensions(boolean useZoom)
Returns size of the canvas that takes project dimensions into account as well as zoom level. |
java.util.Map<java.lang.String,java.util.List<ComponentType>> |
getComponentTypes()
Returns all available ComponentTypes classified by category. |
java.lang.String |
getCurrentFileName()
|
Project |
getCurrentProject()
Returns an instance of currently loaded project. |
org.diylc.appframework.update.VersionNumber |
getCurrentVersionNumber()
Returns current version number. |
java.awt.Cursor |
getCursorAt(java.awt.Point point)
Returns an instance of Cursor that should be used at the specified location. |
java.util.List<PropertyWrapper> |
getMutualSelectionProperties()
|
ComponentType |
getNewComponentTypeSlot()
Gets the current new component slot. |
java.util.List<PropertyWrapper> |
getProjectProperties()
|
Theme |
getSelectedTheme()
|
double |
getZoomLevel()
Returns current zoom level where zoomLevel = 1.0d means 100%. |
void |
groupSelectedComponents()
Groups all selected components. |
boolean |
isProjectModified()
|
void |
loadProject(Project project,
boolean freshStart)
Loads specified Project. |
void |
loadProjectFromFile(java.lang.String fileName)
Loads a project from the specified file. |
void |
pasteComponents(java.util.List<IDIYComponent<?>> components)
Adds a list of components to the project. |
void |
refresh()
Causes the display to refresh. |
void |
renumberSelectedComponents(boolean xAxisFirst)
Renumbers all the selected components. |
void |
saveProjectToFile(java.lang.String fileName,
boolean isBackup)
Saves the current project into the specified file. |
void |
sendSelectionToBack()
Sends each of the selected components one step back. |
void |
setLayerLocked(int layerZOrder,
boolean locked)
Locks or unlocks the specified layer. |
void |
setMetric(boolean isMetric)
Changes default size notation, true for metric, false for imperial. |
void |
setNewComponentTypeSlot(ComponentType componentType,
Template template)
Sets the new component slot. |
void |
setProjectDefaultPropertyValue(java.lang.String propertyName,
java.lang.Object value)
Sets default value for the specified property name for projects. |
void |
setSelectedTheme(Theme theme)
Changes the current theme. |
void |
setSelectionDefaultPropertyValue(java.lang.String propertyName,
java.lang.Object value)
Sets default value for the specified property name for currently selected component types. |
void |
setZoomLevel(double zoomLevel)
Changes current zoom level where zoomLevel = 1.0d means 100% |
void |
ungroupSelectedComponents()
Ungroups all selected components. |
| Methods inherited from interface org.diylc.common.ISelectionProcessor |
|---|
expandSelection, findComponentsAt, getSelectedComponents, rotateSelection, selectAll, updateSelection |
| Methods inherited from interface org.diylc.common.IMouseProcessor |
|---|
dragActionChanged, dragEnded, dragOver, dragStarted, mouseClicked, mouseMoved |
| Methods inherited from interface org.diylc.common.IKeyProcessor |
|---|
keyPressed |
| Methods inherited from interface org.diylc.common.ITemplateProcessor |
|---|
applyTemplateToSelection, deleteTemplate, getTemplatesFor, getTemplatesForSelection, saveSelectedComponentAsTemplate |
| Field Detail |
|---|
static final java.lang.String ANTI_ALIASING_KEY
static final java.lang.String HI_QUALITY_RENDER_KEY
static final java.lang.String EXPORT_GRID_KEY
static final java.lang.String STICKY_POINTS_KEY
static final java.lang.String METRIC_KEY
static final java.lang.String SNAP_TO_GRID_KEY
static final java.lang.String CONTINUOUS_CREATION_KEY
static final java.lang.String AUTO_EDIT_KEY
static final java.lang.String ABNORMAL_EXIT_KEY
static final java.lang.String WHEEL_ZOOM_KEY
static final java.lang.String OUTLINE_KEY
static final java.lang.String THEME_KEY
static final java.lang.String RECENT_COMPONENTS_KEY
static final int DND_TOGGLE_STICKY
static final int DND_TOGGLE_SNAP
static final int NOBUTTON
static final int BUTTON1
static final int BUTTON2
static final int BUTTON3
| Method Detail |
|---|
java.awt.Dimension getCanvasDimensions(boolean useZoom)
useZoom is set to true, the result is scaled by zoom factor.
useZoom -
java.awt.Cursor getCursorAt(java.awt.Point point)
Cursor that should be used at the specified location.
Note: point coordinates are scaled for zoom factor.
point -
Project getCurrentProject()
void loadProject(Project project,
boolean freshStart)
Project.
project - freshStart - void createNewProject()
void loadProjectFromFile(java.lang.String fileName)
fileName -
void saveProjectToFile(java.lang.String fileName,
boolean isBackup)
fileName - isBackup - java.lang.String getCurrentFileName()
boolean isProjectModified()
boolean allowFileAction()
java.util.Map<java.lang.String,java.util.List<ComponentType>> getComponentTypes()
ComponentTypes classified by category. Result is a Map
between category name to a List of all ComponentTypes that share that category
name.
void draw(java.awt.Graphics2D g2d,
java.util.Set<DrawOption> drawOptions,
IComponentFiler filter)
Graphics2D. If the provided filter is not null, it will
be used to filter the components that are shown.
g2d - drawOptions - specific drawing optionsfilter - java.lang.Double[] getAvailableZoomLevels()
double getZoomLevel()
zoomLevel = 1.0d means 100%.
void setZoomLevel(double zoomLevel)
zoomLevel = 1.0d means 100%
zoomLevel - new zoom leveorg.diylc.appframework.update.VersionNumber getCurrentVersionNumber()
void pasteComponents(java.util.List<IDIYComponent<?>> components)
components - void deleteSelectedComponents()
void setSelectionDefaultPropertyValue(java.lang.String propertyName,
java.lang.Object value)
propertyName - display name for propertyvalue - new default value, must not be null
void setProjectDefaultPropertyValue(java.lang.String propertyName,
java.lang.Object value)
propertyName - display name for propertyvalue - new default value, must not be nulljava.util.List<PropertyWrapper> getMutualSelectionProperties()
void editSelection()
java.util.List<PropertyWrapper> getProjectProperties()
void applyPropertiesToProject(java.util.List<PropertyWrapper> properties)
properties - ComponentType getNewComponentTypeSlot()
void setNewComponentTypeSlot(ComponentType componentType,
Template template)
componentType - template - void setMetric(boolean isMetric)
isMetric - void groupSelectedComponents()
void ungroupSelectedComponents()
void setLayerLocked(int layerZOrder,
boolean locked)
layerZOrder - locked - java.awt.geom.Point2D calculateSelectionDimension()
void sendSelectionToBack()
void bringSelectionToFront()
void refresh()
Theme getSelectedTheme()
void setSelectedTheme(Theme theme)
theme - void renumberSelectedComponents(boolean xAxisFirst)
xAxisFirst -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||