ToolTipUtilities.java 文件源码

java
阅读 23 收藏 0 点赞 0 评论 0

项目:WhoWhatWhere 作者:
/**Any parameter can be null to keep its default value
 */
public static void setTooltipProperties(Tooltip tooltip, Boolean wrap, Double maxWidth, Double fontSize, AnchorLocation anchorLocation)
{
    if (wrap != null)
        tooltip.setWrapText(wrap);

    if (maxWidth != null)
        tooltip.setMaxWidth(maxWidth);

    if (fontSize != null)
        tooltip.setFont(new Font(fontSize));

    if (anchorLocation != null)
        tooltip.setAnchorLocation(anchorLocation);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号