public class LayerListView
extends javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
LayerListView()
Initializes a new instance of the LayerListView class.
|
Modifier and Type | Method and Description |
---|---|
void |
addLayerListViewListener(LayerListViewListener listener)
Registers
listener so that it will receive events when
users select, add or remove layers from the list. |
java.lang.String |
getActiveButtonTooltip()
Gets the tooltip for the 'Active Layer' button in each item.
|
java.lang.String |
getAddLayerButtonTooltip()
Gets the tooltip for the 'Add Layer' button.
|
boolean |
getAllowTitleEdit()
Gets a value indicating whether layer titles can be
in-place edited.
|
Diagram |
getDiagram()
Gets the diagram this control is associated with.
|
boolean |
getDisplayText()
Gets a value indicating whether to paint the text
of items in the overview.
|
java.util.List<java.awt.Image> |
getImages()
Gets the image list used to draw icons for visibility and lock status.
|
java.awt.Color |
getItemColor()
Gets the color with which items' background is painted.
|
int |
getItemHeight()
Gets the height of the list items.
|
com.mindfusion.common.ExtendedArrayList<LayerListViewItem> |
getItems()
Gets a list of layer items shown in this control.
|
java.lang.String |
getLockedButtonTooltip()
Gets the tooltip for the 'Locked' button in each item.
|
int |
getOverviewWidth()
Gets the width of the layer overview.
|
java.lang.String |
getRemoveLayerButtonTooltip()
Gets the tooltip for the 'Remove Layer' button.
|
java.awt.Color |
getSelectedColor()
Gets the color with which selected items' background is painted.
|
boolean |
getShowTooltips()
Gets a value indicating whether to display tooltips.
|
java.lang.String |
getVisibleButtonTooltip()
Gets the tooltip for the 'Visible' button in each item.
|
void |
removeLayerListViewListener(LayerListViewListener listener)
Unregisters
listener so that it will no longer
receive LayerListView events. |
void |
setActiveButtonTooltip(java.lang.String value)
Sets the tooltip for the 'Active Layer' button in each item.
|
void |
setAddLayerButtonTooltip(java.lang.String value)
Sets the tooltip for the 'Add Layer' button.
|
void |
setAllowTitleEdit(boolean value)
Sets a value indicating whether layer titles can be
in-place edited.
|
void |
setDiagram(Diagram value)
Sets the diagram this control is associated with.
|
void |
setDisplayText(boolean value)
Sets a value indicating whether to paint the text
of items in the overview.
|
void |
setImages(java.util.List<java.awt.Image> value)
Gets the image list used to draw icons for visibility and lock status.
|
void |
setItemColor(java.awt.Color value)
Sets the color with which items' background is painted.
|
void |
setItemHeight(int value)
Sets the height of the items.
|
void |
setLockedButtonTooltip(java.lang.String value)
Sets the tooltip for the 'Locked' button in each item.
|
void |
setOverviewWidth(int value)
Sets the width of the layer overview.
|
void |
setRemoveLayerButtonTooltip(java.lang.String value)
Sets the tooltip for the 'Remove Layer' button.
|
void |
setSelectedColor(java.awt.Color value)
Sets the color with which selected items' background is painted.
|
void |
setShowTooltips(boolean value)
Sets a value indicating whether to display tooltips.
|
void |
setVisibleButtonTooltip(java.lang.String value)
Gets the tooltip for the 'Visible' button in each item.
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, 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, removeNotify, 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, update
add, 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, validateTree
action, 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, transferFocusUpCycle
public LayerListView()
public Diagram getDiagram()
Diagram
instance.public void setDiagram(Diagram value)
value
- A Diagram
instance.public com.mindfusion.common.ExtendedArrayList<LayerListViewItem> getItems()
public int getItemHeight()
public void setItemHeight(int value)
value
- An integer value specifying the items height.public int getOverviewWidth()
public void setOverviewWidth(int value)
value
- An integer value specifying the width of the layers' overview area.public java.awt.Color getSelectedColor()
Color
of selected items.public void setSelectedColor(java.awt.Color value)
value
- The Color
of selected items.public java.awt.Color getItemColor()
Color
of items when not selected.public void setItemColor(java.awt.Color value)
value
- The Color
of items when not selected.public java.util.List<java.awt.Image> getImages()
public void setImages(java.util.List<java.awt.Image> value)
value
- A List of Image objects.public boolean getDisplayText()
public void setDisplayText(boolean value)
value
- true to display items' text, otherwise false.public boolean getAllowTitleEdit()
public void setAllowTitleEdit(boolean value)
value
- true to allow editing the layers titles, otherwise false.public boolean getShowTooltips()
public void setShowTooltips(boolean value)
value
- true to show tooltips, otherwise false.public java.lang.String getAddLayerButtonTooltip()
public void setAddLayerButtonTooltip(java.lang.String value)
value
- A String specifying the tooltip of the Add Layer button.public java.lang.String getRemoveLayerButtonTooltip()
public void setRemoveLayerButtonTooltip(java.lang.String value)
value
- A String specifying the tooltip of the Remove Layer button.public java.lang.String getActiveButtonTooltip()
public void setActiveButtonTooltip(java.lang.String value)
value
- A String specifying the tooltip of the Active Layer button.public java.lang.String getVisibleButtonTooltip()
public void setVisibleButtonTooltip(java.lang.String value)
value
- A String specifying the tooltip of the Visible button.public java.lang.String getLockedButtonTooltip()
public void setLockedButtonTooltip(java.lang.String value)
value
- A String specifying the tooltip of the Locked button.public void addLayerListViewListener(LayerListViewListener listener)
listener
so that it will receive events when
users select, add or remove layers from the list.listener
- An object implementing the LayerListViewListener
interface.public void removeLayerListViewListener(LayerListViewListener listener)
listener
so that it will no longer
receive LayerListView events.listener
- An object implementing the LayerListViewListener
interface.