Class DataTypeTransformation
java.lang.Object
org.eclipse.graphiti.ui.internal.util.DataTypeTransformation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
syncToDraw2dPoint
(Point pictogramsPoint, org.eclipse.draw2d.geometry.Point draw2dPoint) static org.eclipse.swt.graphics.Font
syncToSwtFont
(Font pictogramFont, org.eclipse.swt.graphics.Font swtFont) Checks if the given SWTFont
defines the same font as the given GraphitiFont
.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
(Collection<Point> points) static org.eclipse.swt.graphics.FontData
toFontData
(Font pictogramFont) static Color
toPictogramsColor
(org.eclipse.swt.graphics.Color swtColor, Diagram diagram) static Font
toPictogramsFont
(Diagram diagram, org.eclipse.swt.graphics.Font swtFont) static Font
toPictogramsFont
(Diagram diagram, org.eclipse.swt.graphics.FontData fontData) static org.eclipse.swt.graphics.Color
toSwtColor
(IResourceRegistry rr, Color pictogramsColor) static org.eclipse.swt.graphics.Color
toSwtColor
(IResourceRegistry rr, IColorConstant color) static org.eclipse.swt.graphics.Font
Returns a new SWTFont
for the given GraphitiFont
.
-
Constructor Details
-
DataTypeTransformation
public DataTypeTransformation()
-
-
Method Details
-
toDraw2dPoint
-
toDraw2dBendPoint
-
syncToDraw2dPoint
public static void syncToDraw2dPoint(Point pictogramsPoint, org.eclipse.draw2d.geometry.Point draw2dPoint) -
toSwtColor
public static org.eclipse.swt.graphics.Color toSwtColor(IResourceRegistry rr, Color pictogramsColor) -
toSwtColor
-
toPictogramsColor
-
toDraw2dPointList
-
syncToSwtFont
public static org.eclipse.swt.graphics.Font syncToSwtFont(Font pictogramFont, org.eclipse.swt.graphics.Font swtFont) Checks if the given SWTFont
defines the same font as the given GraphitiFont
. If yes, the given SWT Font is simply returned, otherwise a new SWT Font is created usingtoSwtFont(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.- Parameters:
pictogramFont
-swtFont
-- Returns:
-
toPictogramsFont
- Parameters:
swtFont
-- Returns:
-
toPictogramsFont
- Parameters:
fontData
-- Returns:
-
toSwtFont
Returns a new SWTFont
for the given GraphitiFont
. Users of this method are responsible for disposing the font again!- Parameters:
pictogramFont
-- Returns:
-
toFontData
- Parameters:
pictogramFont
-- Returns:
-
toDraw2dLineStyle
-