Class DataTypeTransformation
java.lang.Object
org.eclipse.graphiti.ui.internal.util.DataTypeTransformation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidsyncToDraw2dPoint(Point pictogramsPoint, org.eclipse.draw2d.geometry.Point draw2dPoint) static org.eclipse.swt.graphics.FontsyncToSwtFont(Font pictogramFont, org.eclipse.swt.graphics.Font swtFont) Checks if the given SWTFontdefines the same font as the given GraphitiFont.static org.eclipse.draw2d.BendpointtoDraw2dBendPoint(Point pictogramsPoint) static inttoDraw2dLineStyle(LineStyle lineStyle) static org.eclipse.draw2d.geometry.PointtoDraw2dPoint(Point pictogramsPoint) static org.eclipse.draw2d.geometry.PointListtoDraw2dPointList(Collection<Point> points) static org.eclipse.swt.graphics.FontDatatoFontData(Font pictogramFont) static ColortoPictogramsColor(org.eclipse.swt.graphics.Color swtColor, Diagram diagram) static FonttoPictogramsFont(Diagram diagram, org.eclipse.swt.graphics.Font swtFont) static FonttoPictogramsFont(Diagram diagram, org.eclipse.swt.graphics.FontData fontData) static org.eclipse.swt.graphics.ColortoSwtColor(IResourceRegistry rr, Color pictogramsColor) static org.eclipse.swt.graphics.ColortoSwtColor(IResourceRegistry rr, IColorConstant color) static org.eclipse.swt.graphics.FontReturns a new SWTFontfor 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 SWTFontdefines 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 SWTFontfor the given GraphitiFont. Users of this method are responsible for disposing the font again!- Parameters:
pictogramFont-- Returns:
-
toFontData
- Parameters:
pictogramFont-- Returns:
-
toDraw2dLineStyle
-