public final void setFontStyle( final int font_style ) { if ( ( font_style == ( Font.BOLD + Font.ITALIC ) ) ) { setFontStyle( FontType.BOLD_ITALIC ); } else if ( font_style == Font.ITALIC ) { setFontStyle( FontType.ITALIC ); } else if ( font_style == Font.BOLD ) { setFontStyle( FontType.BOLD ); } else { setFontStyle( FontType.PLAIN ); } }
public final void setFontStyle( final String font_style ) { if ( font_style.equalsIgnoreCase( FONT_STYLE_BOLD ) ) { setFontStyle( FontType.BOLD ); } else if ( font_style.equalsIgnoreCase( FONT_STYLE_ITALIC ) ) { setFontStyle( FontType.ITALIC ); } else if ( font_style.equalsIgnoreCase( FONT_STYLE_BOLD_ITALIC ) ) { setFontStyle( FontType.BOLD_ITALIC ); } else { setFontStyle( FontType.PLAIN ); } }
setFontStyle( prop.getValue() );
private final void init() { setFontName( null ); setFontStyle( FontType.PLAIN ); setFontSize( DEFAULT_FONT_SIZE ); setFontColor( null ); setShape( NodeShape.DEFAULT ); setFillType( NodeFill.DEFAULT ); setNodeColor( null ); setSize( DEFAULT_SIZE ); setTransparency( DEFAULT_TRANSPARENCY ); _font = null; }
vd.setFontStyle( ff.getStyle() );
public NodeVisualData( final String font_name, final FontType font_style, final byte font_size, final Color font_color, final NodeShape shape, final NodeFill fill_type, final Color node_color, final float size, final float transparency ) { setFontName( font_name ); setFontStyle( font_style ); setFontSize( font_size ); setFontColor( font_color ); setShape( shape ); setFillType( fill_type ); setNodeColor( node_color ); setSize( size ); setTransparency( transparency ); }