public class OverviewPane
extends javax.swing.JPanel
Overview
component.
This class is for internal use.javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
static int |
FILL_BOTH_SIDE
Indicate enlarge the overview to fill the overview window
in vertical direction and horizontal direction, when overview
window is resized.
|
static int |
FILL_NONE_SIDE
Indicate no change for overview when overview window is resized.
|
static int |
FILL_ONE_SIDE
Indicate enlarge the overview to fill the overview window
when the overview window is resized.
|
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
OverviewPane(TNetwork network)
Create overview pane with given network component.
|
OverviewPane(TNetwork network,
int width,
int height)
Create overview pane with given network and size.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
getFillColor()
Get overview background fill color.
|
int |
getFillMode()
Get overview fill mode when overview window is resized.
|
TNetwork |
getNetwork()
Get displayed network component for this overview.
|
PaintAttachmentFilter |
getPaintAttachmentFilter() |
protected javax.swing.JPopupMenu |
getPopupMenu()
Overrides to pop up custom menu
|
int |
getUpdateInterval()
Get overview repaint time interval.
|
java.awt.Color |
getViewBorderColor()
Return view border color.
|
java.awt.Color |
getViewMaskColor()
Get overview translucent mask color.
|
boolean |
hasViewBorder()
Whether overview has view border.
|
boolean |
hasViewMask()
Whether overview has a translucent color mask
|
void |
paintComponent(java.awt.Graphics g) |
void |
setFillColor(java.awt.Color fillColor)
Set overview background fill color.
|
void |
setFillMode(int fillMode)
Set overview fill mode when overview window is resized.
|
void |
setNetwork(TNetwork network)
Set displayed network for this overview
|
void |
setPaintAttachmentFilter(PaintAttachmentFilter paintAttachmentFilter) |
void |
setUpdateInterval(int updateInterval)
Set overview repaint time interval.
|
void |
setViewBorder(boolean viewBorder)
Determine whether display view border.
|
void |
setViewBorderColor(java.awt.Color viewBorderColor)
Set overview border color.
|
void |
setViewMask(boolean viewMask)
Determine whether overview has a translucent mask
|
void |
setViewMaskColor(java.awt.Color viewMaskColor)
Set overview translucent mask color.
|
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, 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 static final int FILL_NONE_SIDE
public static final int FILL_ONE_SIDE
public static final int FILL_BOTH_SIDE
public OverviewPane(TNetwork network)
network
- TNetwork network component of this overview panepublic OverviewPane(TNetwork network, int width, int height)
network
- TNetwork network component of this overview panewidth
- int the overview widthheight
- int the overview heightprotected javax.swing.JPopupMenu getPopupMenu()
public TNetwork getNetwork()
setNetwork(twaver.network.TNetwork)
public void setNetwork(TNetwork network)
network
- TNetwork the displayed network for this overview.getNetwork()
public void paintComponent(java.awt.Graphics g)
paintComponent
in class javax.swing.JComponent
g
- Graphicspublic boolean hasViewBorder()
setViewBorder(boolean)
public void setViewBorder(boolean viewBorder)
viewBorder
- boolean true if has view border,
false otherwise.hasViewBorder()
public java.awt.Color getViewBorderColor()
setViewBorderColor(java.awt.Color)
public void setViewBorderColor(java.awt.Color viewBorderColor)
viewBorderColor
- Color overview border colorgetViewBorderColor()
public boolean hasViewMask()
setViewMask(boolean)
public void setViewMask(boolean viewMask)
viewMask
- boolean true if overview has a translucent color mask,
false otherwise.hasViewMask()
public java.awt.Color getViewMaskColor()
setViewMaskColor(java.awt.Color)
public void setViewMaskColor(java.awt.Color viewMaskColor)
viewMaskColor
- Color the overview translucent mask colorgetViewMaskColor()
public int getUpdateInterval()
setUpdateInterval(int)
public void setUpdateInterval(int updateInterval)
updateInterval
- int overview repaint time interval.getUpdateInterval()
public int getFillMode()
setFillMode(int)
public void setFillMode(int fillMode)
fillMode
- int overview fill mode.
Legal values are:
getFillMode()
public PaintAttachmentFilter getPaintAttachmentFilter()
public void setPaintAttachmentFilter(PaintAttachmentFilter paintAttachmentFilter)
public java.awt.Color getFillColor()
setFillColor(java.awt.Color)
public void setFillColor(java.awt.Color fillColor)
fillColor
- Color the background fill colorgetFillColor()
Copyright © 2002 - 2010 Serva Software. All Rights Reserved.