public abstract class IlvDashboardAction extends IlvDiagrammerAction
IlvDashboardAction
is the base class for Swing Actions
used to control and edit an IlvDashboardDiagram
instance;
it extends the IlvDiagrammerAction
class.
IlvDashboardAction
to add open, save, and
edit functionality to dashboard diagrams.
sendBackward
action to a specific location in a Dashboard Editor toolbar.
JPanel panel = new JPanel(new BorderLayout()); JPanel panel1 = new JPanel(new IlvBetterFlowLayout(FlowLayout.LEADING, 0, 0)); IlvDashboardEditBar editBar = new IlvDashboardEditBar(); editBar.insertAction(IlvDashboardAction.sendBackward , 0); panel1.add(editBar); panel.add(panel1, BorderLayout.PAGE_START);
IlvDashboardAction
class inherits the following
capabilities from IlvDiagrammerAction
in addition to standard
Swing Action
capabilities:
IlvDiagrammerAction.ErrorHandler
interface. For more
information, see
IlvDiagrammerAction#setErrorHandler(ErrorHandler)
.
IlvDiagrammerAction.ErrorHandler
,
IlvDiagrammerAction
,
IlvDiagrammerAction.setErrorHandler(ErrorHandler)
,
IlvDashboardDiagram
,
Serialized FormIlvDiagrammerAction.ErrorHandler, IlvDiagrammerAction.FileAction, IlvDiagrammerAction.Handler, IlvDiagrammerAction.StatusEvent, IlvDiagrammerAction.StatusListener, IlvDiagrammerAction.ToggleAction
Modifier and Type | Field and Description |
---|---|
static IlvDashboardAction |
blinkingAllowed
This action enables or disables blinking in the current view
of the dashboard diagram.
|
static IlvDashboardAction |
bringForward
Shifts the selected object or objects up one layer in the dashboard
diagram.
|
static IlvDashboardAction |
bringToFront
Brings the selected object or objects to the highest position
in the dashboard diagram layers.
|
static IlvDashboardAction |
clearMapping
This action clears the parameter mappings of the selected symbols.
|
static IlvDashboardAction |
close
Closes the dashboard diagram.
|
static IlvDashboardAction |
componentDirection
Sets the base text direction of the diagram to be the same
as the component orientation.
|
static IlvDashboardAction |
contextualDirection
Sets the base text direction of the diagram to contextual,
meaning that the actual base text direction is determined from
the text,
if it contains at least one character with a strong
left-to-right or right-to-left direction.
|
static IlvDashboardAction |
defaultMappingEnabled
This action enables or disables the default mapping of symbol parameters
when you drag and drop a symbol.
|
static IlvDashboardAction |
generalPathEnabled
This action enables or disables the use of General Path objects
when creating a background graphic object.
|
static IlvDashboardAction |
importFile
Imports a Perforce JViews background graphic file into
the current dashboard diagram.
|
static IlvDashboardAction |
inheritedDirection
Sets the base text direction of the diagram to be inherited
from the parent.
|
static IlvDashboardAction |
layerPanel
This action shows or hide the dashboard layer panel.
|
static IlvDashboardAction |
leftToRightDirection
Sets the base text direction of the diagram to left-to-right.
|
static IlvDashboardAction |
linkIntermediatePointsAllowed
This actions allows or disallows the link intermediate points to be
inserted when creating a link.
|
static IlvDashboardAction |
linkLayoutEnabled
This action enables or disable the link layout.
|
static IlvDashboardAction |
open
Opens a dashboard diagram file.
|
static IlvDashboardAction |
rightToLeftDirection
Sets the base text direction of the diagram to right-to-left.
|
static IlvDashboardAction |
save
Saves the current dashboard diagram to an existing file.
|
static IlvDashboardAction |
saveAs
Saves the current dashboard diagram contents into a new dashboard file.
|
static IlvDashboardAction |
sendBack
Sends the selected objects to the bottom layer in the dashboard diagram.
|
static IlvDashboardAction |
sendBackward
Shifts the selected objects down one layer in the dashboard diagram.
|
static IlvDashboardAction |
setDefaultMapping
This action makes the default parameter mappings of the selected symbols.
|
static IlvDashboardAction |
showHiddenObjects
Sets the
visible property of the selected Symbols
to true . |
_new, about, ABOUT_APPLICATION_NAME, alignBottom, alignHorizontalCenter, alignLeft, alignRight, alignTop, alignVerticalCenter, autoEditLabel, autoLabelLayout, autoLinkLayout, autoNodeLayout, callBuilder, clearPrintArea, copy, createLink, createNode, cut, delete, distributeHorizontally, distributeVertically, duplicate, editing, editLabel, exit, fitToContents, grid, gridSpacing, group, help, layoutAllNodes, layoutSelectedNodes, openStyleSheet, pageSetup, pan, paste, printPreview, printToBitmap, printWithDialog, printWithoutDialog, read, redo, refresh, resetZoom, resizing, select, selectAll, setPrintArea, stickyModes, undo, ungroup, zoom, zoomIn, zoomOut
hideToolbarButtonBordersOnOceanTheme
changeSupport, enabled
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
Modifier | Constructor and Description |
---|---|
protected |
IlvDashboardAction(String prefix)
Constructs an
IlvDashboardAction instance using the
IlvDiagrammerAction prefix mechanism. |
protected |
IlvDashboardAction(String prefix,
ResourceBundle bundle)
Constructs an
IlvDashboardAction instance using the
IlvDiagrammerAction prefix mechanism for bundle . |
Modifier and Type | Method and Description |
---|---|
protected ResourceBundle |
getDefaultResourceBundle()
Returns the default resource bundle.
|
protected static IlvDashboardEditor |
getEditor(IlvDiagrammer diagrammer)
Returns the
IlvDashboardEditor instance attached to
a given IlvDashboardDiagram object. |
addActionToUpdate, addStatusListener, call, chooseFile, getActionFileChooser, getDefaultSelectedFile, getErrorHandler, getFileChooserDirectory, getString, isEnabled, isEnabled, isSelected, isSelected, perform, perform, removeActionToUpdate, removeStatusListener, setDefaultSelectedFile, setErrorHandler, setFileChooserDirectory, setHandler, update, update, updateActions
actionPerformed, addActionToUpdate, addPropertyChangeListener, addStatusListener, call, clone, createMenuItem, createToolBarButton, delayedUpdateActions, error, fireActionFinished, fireActionStarted, getActionErrorHandler, getPrefix, getResourceBundle, getSmallIconSize, init, isSelectable, isSelected, removeActions, removeActionToUpdate, removeStatusListener, setActionErrorHandler, setHandler, setSelected, setSmallIconSize, updateActions
firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
public static IlvDashboardAction importFile
public static IlvDashboardAction leftToRightDirection
public static IlvDashboardAction rightToLeftDirection
public static IlvDashboardAction contextualDirection
public static IlvDashboardAction componentDirection
public static IlvDashboardAction inheritedDirection
public static IlvDashboardAction bringToFront
public static IlvDashboardAction bringForward
public static IlvDashboardAction sendBackward
public static IlvDashboardAction sendBack
public static IlvDashboardAction blinkingAllowed
public static IlvDashboardAction generalPathEnabled
public static IlvDashboardAction linkLayoutEnabled
IlvDashboardDiagram.setLinkLayoutEnabled(boolean)
public static IlvDashboardAction linkIntermediatePointsAllowed
public static IlvDashboardAction defaultMappingEnabled
When default mapping is enabled, symbol parameters are automatically mapped to Styling Data Model(SDM) object properties.
public static IlvDashboardAction showHiddenObjects
visible
property of the selected Symbols
to true
.
Note: symbols with their visible
property set to false
can not be seen in the dashboard
diagram.
public static IlvDashboardAction saveAs
public static IlvDashboardAction save
public static IlvDashboardAction open
public static IlvDashboardAction close
public static IlvDashboardAction layerPanel
IlvDashboardLayerPanel
public static IlvDashboardAction clearMapping
public static IlvDashboardAction setDefaultMapping
protected IlvDashboardAction(String prefix)
IlvDashboardAction
instance using the
IlvDiagrammerAction
prefix mechanism.prefix
- The prefix key for an action. For example,
"Dashboard.Action.SaveAs"
.IlvDiagrammerAction
,
IlvDashboardAction(String, ResourceBundle)
protected IlvDashboardAction(String prefix, ResourceBundle bundle)
IlvDashboardAction
instance using the
IlvDiagrammerAction
prefix mechanism for bundle
.prefix
- The prefix key for an action. For example,
"Dashboard.Action.SaveAs"
.bundle
- The resource bundle used to retrieve the action properties.
Set to null
to use the default resource bundle.protected static IlvDashboardEditor getEditor(IlvDiagrammer diagrammer)
IlvDashboardEditor
instance attached to
a given IlvDashboardDiagram
object.diagrammer
- The IlvDashboardDiagram
instance whose
dashboard editor you wish to retrieve.IlvDashboardEditor
instance attached to
a given IlvDashboardDiagram
object.protected ResourceBundle getDefaultResourceBundle()
getDefaultResourceBundle
in class IlvDiagrammerAction
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.