Class DataTypeTransformation
- java.lang.Object
-
- org.eclipse.graphiti.ui.internal.util.DataTypeTransformation
-
public class DataTypeTransformation extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DataTypeTransformation()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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(java.util.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.FonttoSwtFont(Font pictogramFont)Returns a new SWTFontfor the given GraphitiFont.
-
-
-
Method Detail
-
toDraw2dPoint
public static org.eclipse.draw2d.geometry.Point toDraw2dPoint(Point pictogramsPoint)
-
toDraw2dBendPoint
public static org.eclipse.draw2d.Bendpoint toDraw2dBendPoint(Point pictogramsPoint)
-
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
public static org.eclipse.swt.graphics.Color toSwtColor(IResourceRegistry rr, IColorConstant color)
-
toPictogramsColor
public static Color toPictogramsColor(org.eclipse.swt.graphics.Color swtColor, Diagram diagram)
-
toDraw2dPointList
public static org.eclipse.draw2d.geometry.PointList toDraw2dPointList(java.util.Collection<Point> points)
-
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
public static Font toPictogramsFont(Diagram diagram, org.eclipse.swt.graphics.Font swtFont)
- Parameters:
swtFont-- Returns:
-
toPictogramsFont
public static Font toPictogramsFont(Diagram diagram, org.eclipse.swt.graphics.FontData fontData)
- Parameters:
fontData-- Returns:
-
toSwtFont
public static org.eclipse.swt.graphics.Font toSwtFont(Font pictogramFont)
Returns a new SWTFontfor the given GraphitiFont. Users of this method are responsible for disposing the font again!- Parameters:
pictogramFont-- Returns:
-
toFontData
public static org.eclipse.swt.graphics.FontData toFontData(Font pictogramFont)
- Parameters:
pictogramFont-- Returns:
-
toDraw2dLineStyle
public static int toDraw2dLineStyle(LineStyle lineStyle)
-
-