/**********************************************************************
- * Copyright (c) 2005, 2008 IBM Corporation and others.
- * Copyright (c) 2011, 2012 Ericsson.
- *
+ * Copyright (c) 2005, 2012 IBM Corporation, Ericsson
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM - Initial API and implementation
- * Bernd Hufmann - Updated for TMF
+ *
+ * Contributors:
+ * IBM - Initial API and implementation
+ * Bernd Hufmann - Updated for TMF
**********************************************************************/
+
package org.eclipse.linuxtools.tmf.ui.views.uml2sd.drawings.impl;
import org.eclipse.linuxtools.tmf.ui.views.uml2sd.drawings.IFont;
/**
* Default implementation of the IFont interface.
- *
+ *
* @version 1.0
* @author sveyrier
- *
+ *
*/
public class FontImpl implements IFont {
// ------------------------------------------------------------------------
// Attributes
// ------------------------------------------------------------------------
-
+
/**
* The font object
*/
- protected Font font = null;
+ protected Font fFont = null;
/**
* Flag to indicate that this object is managing the resource.
*/
- protected boolean manageFont = true;
+ protected boolean fManageFont = true;
// ------------------------------------------------------------------------
// Constructors
// ------------------------------------------------------------------------
/**
* Default constructor.
- *
+ *
* @param display The display to use
* @param data A font data
*/
public FontImpl(Display display, FontData data) {
- font = new Font(display, data);
+ fFont = new Font(display, data);
}
/**
* Copy constructor
- *
+ *
* @param value A font to copy.
*/
protected FontImpl(Font value) {
- font = value;
- manageFont = false;
+ fFont = value;
+ fManageFont = false;
}
// ------------------------------------------------------------------------
// ------------------------------------------------------------------------
/**
* Returns a font implementation based system font.
- *
+ *
* @return a font implementation based system font.
*/
public static FontImpl getSystemFont() {
*/
@Override
public Object getFont() {
- return font;
+ return fFont;
}
-
+
/*
* (non-Javadoc)
* @see org.eclipse.linuxtools.tmf.ui.views.uml2sd.drawings.IFont#dispose()
*/
@Override
public void dispose() {
- if (font != null) {
- font.dispose();
+ if (fFont != null) {
+ fFont.dispose();
}
}
}