public class DataTypeTransformation
extends java.lang.Object
Constructor and Description |
---|
DataTypeTransformation() |
Modifier and Type | Method and Description |
---|---|
static void |
syncToDraw2dPoint(Point pictogramsPoint,
org.eclipse.draw2d.geometry.Point draw2dPoint) |
static Font |
syncToSwtFont(Font pictogramFont,
Font swtFont)
|
static org.eclipse.draw2d.Bendpoint |
toDraw2dBendPoint(Point pictogramsPoint) |
static int |
toDraw2dLineStyle(LineStyle lineStyle) |
static org.eclipse.draw2d.geometry.Point |
toDraw2dPoint(Point pictogramsPoint) |
static org.eclipse.draw2d.geometry.PointList |
toDraw2dPointList(java.util.Collection<Point> points) |
static FontData |
toFontData(Font pictogramFont) |
static Color |
toPictogramsColor(Color swtColor,
Diagram diagram) |
static Font |
toPictogramsFont(Diagram diagram,
Font swtFont) |
static Font |
toPictogramsFont(Diagram diagram,
FontData fontData) |
static Color |
toSwtColor(IResourceRegistry rr,
Color pictogramsColor) |
static Color |
toSwtColor(IResourceRegistry rr,
IColorConstant color) |
static Font |
toSwtFont(Font pictogramFont)
|
public static org.eclipse.draw2d.geometry.Point toDraw2dPoint(Point pictogramsPoint)
public static org.eclipse.draw2d.Bendpoint toDraw2dBendPoint(Point pictogramsPoint)
public static void syncToDraw2dPoint(Point pictogramsPoint, org.eclipse.draw2d.geometry.Point draw2dPoint)
public static Color toSwtColor(IResourceRegistry rr, Color pictogramsColor)
public static Color toSwtColor(IResourceRegistry rr, IColorConstant color)
public static org.eclipse.draw2d.geometry.PointList toDraw2dPointList(java.util.Collection<Point> points)
public static Font syncToSwtFont(Font pictogramFont, Font swtFont)
Font
defines the
same font as the given Graphiti Font
. If yes, the given SWT Font
is simply returned, otherwise a new SWT Font is created using
toSwtFont(Font)
. In case the returned SWT Font is not -
instance-wise - the same as the given one, users of this method are
responsible for disposing the returned font again.pictogramFont
- swtFont
- public static Font toPictogramsFont(Diagram diagram, Font swtFont)
swtFont
- public static Font toPictogramsFont(Diagram diagram, FontData fontData)
fontData
- public static Font toSwtFont(Font pictogramFont)
Font
for the
given Graphiti Font
. Users of this method are responsible for
disposing the font again!pictogramFont
- public static FontData toFontData(Font pictogramFont)
pictogramFont
- public static int toDraw2dLineStyle(LineStyle lineStyle)