SE401:Group19:Feature:Label font

From Marks Wiki
Jump to navigation Jump to search

◄ Back

Description

The label of the function block was labelled with the input and output variable names making it unclear to users. This implementation was done to let the user to see the name of the function block easily by changing the font style different to the input and output variable names.

Development

Implementation

The font style of the label changed by changing the mainLabel variable inside class FB. The style is sansserif, bold and italic, with font size bigger than default font size.

mainLabel.setFont(new Font("sansserif",Font.BOLD + Font.ITALIC, GraphView.DEFAULT_FONT.getSize() + 2));