Class GeographicalSchemaView
java.lang.Object
org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
org.eclipse.swt.widgets.Canvas
com._1c.g5.v8.dt.geographicalschema.ui.internal.widgets.GeographicalSchemaView
- All Implemented Interfaces:
IGeographicalSchemaView
,org.eclipse.swt.graphics.Drawable
public class GeographicalSchemaView
extends org.eclipse.swt.widgets.Canvas
implements IGeographicalSchemaView
Main class for viewers draw.
-
Field Summary
Fields inherited from class org.eclipse.swt.widgets.Control
handle
-
Constructor Summary
ConstructorsConstructorDescriptionGeographicalSchemaView
(org.eclipse.swt.widgets.Composite parent, IGeographicalSchemaPresenter presenter) Creates new instance ofGeographicalSchemaView
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanUp()
Cleans up the legend, map and title.boolean
Checks if any of the components is disposedvoid
Redraws legend.void
Redraws map.void
Redraws title.void
setLegendVisible
(boolean isVisible) Sets legend visibilityvoid
setTitleVisible
(boolean isVisible) Sets title visibilityvoid
updateBounds
(Class<?> componentClass) Updates component's bounds for new valuesMethods inherited from class org.eclipse.swt.widgets.Canvas
drawBackground, getCaret, getIME, scroll, setCaret, setFont, setIME
Methods inherited from class org.eclipse.swt.widgets.Composite
changed, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList, toString
Methods inherited from class org.eclipse.swt.widgets.Scrollable
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar
Methods inherited from class org.eclipse.swt.widgets.Control
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, requestLayout, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update
Methods inherited from class org.eclipse.swt.widgets.Widget
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.swt.graphics.Drawable
isAutoScalable
-
Constructor Details
-
GeographicalSchemaView
public GeographicalSchemaView(org.eclipse.swt.widgets.Composite parent, IGeographicalSchemaPresenter presenter) Creates new instance ofGeographicalSchemaView
.- Parameters:
parent
- parent composite, cannot benull
presenter
- presenter for this view, cannot benull
-
-
Method Details
-
redrawLegend
public void redrawLegend()Description copied from interface:IGeographicalSchemaView
Redraws legend.- Specified by:
redrawLegend
in interfaceIGeographicalSchemaView
-
redrawMap
public void redrawMap()Description copied from interface:IGeographicalSchemaView
Redraws map.- Specified by:
redrawMap
in interfaceIGeographicalSchemaView
-
redrawTitle
public void redrawTitle()Description copied from interface:IGeographicalSchemaView
Redraws title.- Specified by:
redrawTitle
in interfaceIGeographicalSchemaView
-
setTitleVisible
public void setTitleVisible(boolean isVisible) Description copied from interface:IGeographicalSchemaView
Sets title visibility- Specified by:
setTitleVisible
in interfaceIGeographicalSchemaView
- Parameters:
isVisible
- is title visible
-
setLegendVisible
public void setLegendVisible(boolean isVisible) Description copied from interface:IGeographicalSchemaView
Sets legend visibility- Specified by:
setLegendVisible
in interfaceIGeographicalSchemaView
- Parameters:
isVisible
- is legend visible
-
updateBounds
Description copied from interface:IGeographicalSchemaView
Updates component's bounds for new values- Specified by:
updateBounds
in interfaceIGeographicalSchemaView
- Parameters:
componentClass
- class of the component to be updated, can benull
-
isComponentDisposed
public boolean isComponentDisposed()Description copied from interface:IGeographicalSchemaView
Checks if any of the components is disposed- Specified by:
isComponentDisposed
in interfaceIGeographicalSchemaView
- Returns:
- if any of the components is disposed
-
cleanUp
public void cleanUp()Description copied from interface:IGeographicalSchemaView
Cleans up the legend, map and title.- Specified by:
cleanUp
in interfaceIGeographicalSchemaView
-