public class IlvDashboardBackgroundBar extends IlvDashboardPanel
IlvDashboardBackgroundBar is a Java Swing component that lets
a user create and edit background objects in a dashboard diagram.
IlvDashboardBackgroundBar is a toolbar that you attached
to a IlvDashboardDiagram component. It contains buttons linked
to IlvDashboardAction instances. These Java Actions provide
a set functionality for this toolbar. Examples of these actions are Add
Rectangle and Choose Foreground Color.
Note: Unlike IlvDiagrammerEditBar,
IlvDiagrammerToolBar does not inherit from
IlvDiagrammerToolBar. To customize the contents of this toolbar
call getToolBar() and edit the IlvDiagrammerToolBar
instance that is returned.
IlvDashboardBackgroundBar to a standard JPanel in
a Dashboard Editor application.
private IlvDashboardEditor dashEd; ... JPanel panel = new JPanel(new BorderLayout()); JPanel panel1 = new JPanel(new BorderLayout()); editToolBar = new IlvDashboardEditBar(); final IlvDashboardBackgroundBar backgroundBar = new IlvDashboardBackgroundBar(dashEd); panel1.add(editToolBar, BorderLayout.LINE_START); panel1.add(backgroundBar, BorderLayout.LINE_END); panel.add(panel1, BorderLayout.PAGE_START); ... getContentPane().add(panel, BorderLayout.PAGE_START);
IlvDiagrammerToolBar,
Serialized FormJPanel.AccessibleJPanelJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
Action |
arcAction
Create an Arc object in the current dashboard diagram.
|
Action |
arrowPolylineAction
Create an arrow polyline object object in the current dashboard diagram.
|
Action |
closedSplineAction
Create a closed spline object in the current dashboard diagram.
|
Action |
ellipseAction
Create an ellipse object in the current dashboard diagram.
|
Action |
iconAction
Insert an icon in the current dashboard diagram.
|
static String |
ID |
Action |
labelAction
Create a new label in the current dashboard diagram.
|
Action |
lineAction
Create a line object in the current dashboard diagram.
|
Action |
polygonAction
Create a polygon object in the current dashboard diagram.
|
Action |
polylineAction
Create a polyline object object in the current dashboard diagram.
|
Action |
rectangleAction
Create a rectangle object in the current dashboard diagram.
|
Action |
reliefLabelAction
Create a relief label object in the current dashboard diagram.
|
Action |
reliefRectangleAction
Create a relief rectangle object in the current dashboard diagram.
|
Action |
roundRectangleAction
Create a round rectangle object in the current dashboard diagram.
|
Action |
shadowLabelAction
Create a shadow label object in the current dashboard diagram.
|
Action |
shadowRectangleAction
Create a shadow rectangle object in the current dashboard diagram.
|
Action |
splineAction
Create a spline object in the current dashboard diagram.
|
Action |
textAction
Create a new text object in the current dashboard diagram.
|
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWaccessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
IlvDashboardBackgroundBar(IlvDashboardEditor editor)
Creates a new
IlvDashboardBackgroundBar object using
the editor for this dashboard application. |
| Modifier and Type | Method and Description |
|---|---|
void |
addObjectPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener that will be invoked when a background
object property is changed by a component of this dashboard background
tool bar.
|
Cursor |
getInteractorCursor()
Returns the
Cursor used by the interactors. |
Color |
getPaletteBackground()
Returns the background color used for objects created using
this toolbar instance.
|
Font |
getPaletteFont()
Returns the
Font used in text labels created using
this toolbar instance. |
Color |
getPaletteForeground()
Returns the foreground color used for background objects created using
this toolbar instance.
|
Action[] |
getPredefinedActions()
Returns the predefined
Actions included in the toolbar. |
IlvDiagrammerToolBar |
getToolBar()
Returns the
IlvDiagrammerToolBar instance used by this
IlvDashboardBackgroundBar instance. |
void |
removeObjectPropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener previously added by calling the
addObjectPropertyChangeListener(PropertyChangeListener) function. |
void |
setInteractorCursor(Cursor aCursor)
Sets the
Cursor used by the interactors. |
void |
setPaletteBackground(Color color)
Sets the background color used for objects created using
this toolbar instance.
|
void |
setPaletteFont(Font font)
Sets the
Font to be used when text labels are created using
this toolbar instance. |
void |
setPaletteForeground(Color color)
Sets the foreground color used for background objects created using
this toolbar instance.
|
addNotify, getDiagram, getEditor, getID, getPanelManager, removeNotify, setDiagram, setID, setPanelManagergetAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic static final String ID
public Action labelAction
public Action textAction
public Action lineAction
public Action polylineAction
public Action arrowPolylineAction
public Action polygonAction
public Action splineAction
public Action closedSplineAction
public Action rectangleAction
public Action roundRectangleAction
public Action reliefRectangleAction
public Action reliefLabelAction
public Action shadowRectangleAction
public Action shadowLabelAction
public Action ellipseAction
public Action arcAction
public Action iconAction
public IlvDashboardBackgroundBar(IlvDashboardEditor editor)
IlvDashboardBackgroundBar object using
the editor for this dashboard application.
The editor object passed to this
IlvDashboardBackgroundBar instance is the central point
in a Dashboard Editor. It is used to access common components and
global properties in your Dashboard Editor application.editor - The IlvDashboardEditor instance used to
coordinate your Dashboard Editor application.public IlvDiagrammerToolBar getToolBar()
IlvDiagrammerToolBar instance used by this
IlvDashboardBackgroundBar instance.
Unlike IlvDiagrammerEditBar, IlvDiagrammerToolBar
does not inherit from IlvDiagrammerToolBar. You customize the
contents of this toolbar by editing the IlvDiagrammerToolBar
instance returned by this function.
public Action labelAction;
public Action lineAction;
IlvDashboardBackgroundBar backgroundBar = new IlvDashboardBackgroundBar(dashEd);
//Set all actions in the toolbar
//Make an array of actions
Action[] preDefActs = new Action[] {
labelAction,
lineAction};
//Initialize the Actions to be added to the toolbar
...
IlvDiagrammerToolBar tb = backgroundBar.getToolBar();
tb.setActions(preDefActs);
//Add a single action to the toolbar
//Create a single Action
Action myCustomizedAction = new Action();
//Initialize the Actions to be added to the toolbar
..
//Add the Action to the toolbar
tb.addAction(myCustomizedAction);
IlvDiagrammerToolBar,
Background Actionspublic Action[] getPredefinedActions()
Actions included in the toolbar.
Call initializeActions() to instantiate the
Action instances returned before invoking this
method.
Action instances.public Font getPaletteFont()
Font used in text labels created using
this toolbar instance.Font used by default in text labels.setPaletteFont(Font)public void setPaletteFont(Font font)
Font to be used when text labels are created using
this toolbar instance.
If you do not set the palette font, text labels are created using the default Java font. That is, Dialog 12pt.
font - The new default Font style for text labels.public Color getPaletteForeground()
public void setPaletteForeground(Color color)
color - The new foreground color to be used for background
objects.public Color getPaletteBackground()
public void setPaletteBackground(Color color)
color - The new color to be used for background objects.public Cursor getInteractorCursor()
Cursor used by the interactors.Cursor used by the interactors.public void setInteractorCursor(Cursor aCursor)
Cursor used by the interactors.aCursor - The Cursor to be used by the interactors.public void addObjectPropertyChangeListener(PropertyChangeListener listener)
listener - removeObjectPropertyChangeListener(PropertyChangeListener)public void removeObjectPropertyChangeListener(PropertyChangeListener listener)
addObjectPropertyChangeListener(PropertyChangeListener) function.listener - The listener to be removed.addObjectPropertyChangeListener(PropertyChangeListener)© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.