Exemple #1
0
 /** Checks and answers if we should add a pseudo 3D effect. */
 private boolean is3D() {
   if (PlasticUtils.force3D(toolBar)) return true;
   if (PlasticUtils.forceFlat(toolBar)) return false;
   return PlasticUtils.is3D(PROPERTY_PREFIX)
       && (HeaderStyle.from(toolBar) != null)
       && (BorderStyle.from(toolBar, PlasticLookAndFeel.BORDER_STYLE_KEY) != BorderStyle.EMPTY);
 }