Package org.eclipse.draw2d
package org.eclipse.draw2d
Primary package containing general interfaces and implementation classes.
-
ClassDescriptionAbsoluteBendpoint is a Bendpoint that defines its location simply as its X and Y coordinates.A special border which can paint both underneath and on top of a Figure.Provides generic support for borders.Provides support for anchors which depend on a figure for thier location.The foundation for layout managers which are sensitive to width and/or height hints.Abstract implementation of the image figure.Provides support for a border with a label describing the contents of which it is surrounding.Provides generic support for LayoutManagers.Places a figure relative to a point determined by the subclass.Base superclass for all polylines/polygonsBase class for implementing a connection router.The base class for accessible objects which provides accesibilty clients with a unique ID.An event that occurs as a result of an action being performed.A Listener interface for receiving
ActionEvents
.Classes which implement this interface provide methods to respond to changes in the ancestor properties of a Figure.An empty implementation of AncestorListener for convenience.Classes which implement this interface provide a method to notify that an anchor has moved.A utility for coordinating figure animations.Animates some aspect of a figure.A Button which displays a triangle pointing in a specified direction.Locator used to place aRotatableDecoration
on aConnection
.An abstract router implementation which detects when multiple connections are overlapping.A helper used to calculate the point at which aConnection
should bend.Places a figure relative to a specified bend in aConnection
.A decoration on a Figure.A Button usually has a border and appears to move up and down in response to being pressed.Creates a border for a clickable type of figure, which works in conjunction with the Figure and its model.Provides for a scheme to represent the borders of clickable figures like buttons.Interface defining commonly used schemes for the ButtonBorder.A ButtonGroup holds a group ofClickable's
models and provides unique selection in them.A model for buttons containing several properties, including enabled, pressed, selected, rollover enabled and mouseover.An event for property changes.A generic state listenerA Checkbox is a toggle figure which toggles between the checked and unchecked figures to simulate a check box.The ChopboxAnchor's location is found by calculating the intersection of a line drawn from the center point of its owner's box to a reference point on that box.A Clickable responds to mouse clicks in some way (determined by a ClickBehavior) and fires action events.A collection of color-related constants.A collection of color-related constants.CompoundBorder allows for the nesting of two borders.A Connection is a figure that connects two objects.An object to which aConnection
will be anchored.Provides support for a ConnectionAnchor.Used to place IFigures along the endpoint or starting point of aConnection
.Layer designed specifically to handle the presence of connections.Repositions aFigure
attached to aConnection
when the Connection is moved.Routes aConnection
, possibly using a constraint.Routes Connections directly from the source anchor to the target anchor with no bendpoints in between.A collection of cursors.Generic implementation for a RangeModel.An UpdateManager that asynchronously updates the affected figures.Figures using a DelegatingLayout as their layout manager give location responsibilities to their children.An figure that draws an ellipse filling its bounds.Similar to aChopboxAnchor
, except this anchor is located on the ellipse defined by the owners bounding box.Listens to various SWT events and dispatches these events to interested Draw2d objects.CombinesAccessibleControlListener
andAccessibleListener
.This class is intended for internal use only.ATreeSearch
that excludes figures contained in aCollection
.Automatic router that spreads itsConnections
in a fan-like fashion upon collision.The base implementation for graphical figures.Deprecated.use ReverseFigureChildrenIterator insteadA search which does not filter any figures. since 3.0Figure children iterator which implements the java iterator interface for more convenient figure iteration.A listener interface for receiving notification that an IFigure has moved.Provides miscellaneous Figure operations.Lays out children in rows or columns, wrapping when the current row/column is filled.A Border that looks like the system's focus rectangle.An event that occurs when anIFigure
gains or loses focus.A listener interface for receivingFocusEvents
.An empty implementation of FocusListener for convenience.This class is a helper to theSWTEventDispatcher
.Provides for a frame-like border which contains a title bar for holding the title of a Figure.A figure that allows its children to extend into negative coordinates.A Layer that can extend in all 4 directions.A LayeredPane that containsFreeformLayers
.A layout forFreeformFigures
.Listens for extent changes inFreeformFigures
.A viewport forFreeformFigures
.A figure used to render a partly transparent copy of an original source figure.The Graphics class allows you to draw to a surface.Provides aGraphics
object for painting.GridData
is the layout data object associated withGridLayout
.Lays out children into a Grid arrangement in which overall aligment and spacing can be configured, as well as specific layout requirements for the each individual member of the GridLayout.A labeled border intended to house a Figure with a group of children.A clipping strategy used to specify the clipping region for child figures.A lightweight graphical object.Insets that are all 0.Interface for image figuresListener to the image figure to track changes to the containede SWT ImageA Figure that simply contains an Image.The base class for Draw2d events.Interface for scaleable panes which provides the default functionality for deciding if a scaled graphics or the given graphics should be used for drawing.Interface to stereotype those figures that contain a ScrollPane with a nested Viewport.An event caused by the user interacting with the keyboard.A listener interface for receivingKeyEvents
from the keyboard.An empty implementation of KeyListener for convenience.A figure that can display text and/or an image.LabelAnchors must have an owner of typeLabel
.LabeledBorders have a text message somewhere on them.A Container with a title bar describing the contents of the container.A transparent figure intended to be added exclusively to aLayeredPane
, who has the responsibilty of managing its layers.A figure capable of holding any number of layers.Animates the layout of a figure's children.Classes which implement this interface provide callback hooks for various layout related events.A stub implementation which implements all of the declared methods.A helper for positioning child figures and determining the ideal size for a figure with children.The LightweightSystem is the link between SWT and Draw2d.Provides for a line border with sides of equal widths.Controls the location of an IFigure.Provides aConnection
with an orthogonal route between the Connection's source and target anchors.A border that provides blank padding.A ConnectionLocator that is used to place figures at the midpoint between two points on aConnection
.An event caused by the user interacting with the mouse.A listener interface for receiving mouse button events.An empty implementation of MouseListener for convenience.A listener interface for receiving mouse motion events.An empty implementation of MouseMotionListener for convenience.A graphics source that posts a paint request to the control rather than constructing GC on it directly.Abstract superclass for layout managers that arrange their children in columns/rows.An interface for objects that can be either horizontally or vertically oriented.A General purpose Container.Renders aPointList
as a polygonal shape.A rotatable, polygon shaped decoration most commonly used for decorating the ends ofpolylines
.Renders aPointList
as a polygonal shape.Renders aPointList
as a series of line segments.An implementation ofConnection
based on Polyline.A decorative Figure intended to be placed on aPolyline
.Renders aPointList
as a series of line segments.Provides abstract support for classes that manage popups.Constants representing cardinal directions and relative positions.A scalable graphics object used to print to a printer.Class responsible for printing Figures.Implementation of draw2d's printing capabilities.AScrollPane
with transparentScrollBar
s.This interface represents a range of possible values as well as the current values.Draws a rectangle whose size is determined by the bounds set to it.RelativeBendpoint is a Bendpoint that calculates its location based on its distance from the start and end points of theConnection
, as well as its weight.Places a handle relative to a figure's bounds.An IFigure that can be rotated.Draws a Rectangle whose corners are rounded in appearance.Anchor for rounded rectangles which is always on a line between the center and the reference point.Animates the routing of a connection.Classes which implement this interface provide callback hooks for various routing related events.A stub implementation which implements all required methods.A figure that can be scaled.A non-freeform, scalable layered pane.Renders aPointList
as a polygonal shape scaled in accordance with bounds to fill whole figure.A Graphics object able to scale all operations based on the current scale factor.The internal state of the scaled graphics.SchemeBorder allows the creation of borders based onSchemes
.Holds a set of information about a border, which can be changed to create a wide range of schemes.Interface which defines some commonly used schemes for the border.Provides for the scrollbars used by theScrollPane
.Lays out the Figures that make up a ScrollBar.A class which implements automatic horizontal and/or vertical scrolling for a single IFigure child.This class handles the calculation of solving for the area of aScrollPane
's viewport and insets.Container class for the results of ScrollPaneSolver's solve methodProvides abstract support for a variety of shapes.Routes multiple connections around the children of a given container figure.Provides a two pixel wide constant sized border, having an etched look.Provides a lowered border.Provides a raised border.Figures using the StackLayout as their layout manager have their children placed on top of one another.Deprecated.this class is not usedThe SWTEventDispatcher provides draw2d with the ability to dispatch SWT Events.A concrete implementation ofGraphics
using an SWTGC
.Provides miscellaneous text operations.Border provides a title bar on the Figure for which this is the border of.Basic Rule for Toggle: Whoever creates the toggle is reponsible for response changes for it (selection, rollover, etc).A Toggle that appears like a 3-dimensional button.ButtonModel that supports toggle buttons.Arranges figures in a single row or column.This class is used by SWTEventDispatcher as support to display Figure tooltips on a mouse hover event.A helper used in depth-first searches of a figure subgraph.A triangular graphical figure.An interface used to notify listeners that the listened to object is updating.Update managers handle the job of laying out and repainting figures.A Viewport is a flexible window onto aScrollPane
and represents the visible portion of the ScrollPane.Clipping strategy for connection layer, which takes into account nested view ports and truncates those parts of connections which reach outside and are thus not visible.Layout for a viewport.Utility class to support working withViewport
s.Supports an anchor in the XY layout.This class implements theLayoutManager
interface using the XY Layout algorithm.