Package net.xoetrope.xui.style

Examples of net.xoetrope.xui.style.XStyle


   * Set the style for the border
   * @param styleName the style name
   */
  public void setBorderStyle( String styleName )
  {
    XStyle style = XProjectManager.getStyleManager().getStyle( styleName );

    borderColor = style.getStyleAsColor( XStyle.COLOR_FORE );
    drawBorder = true;
  }
View Full Code Here


  private void applyStyle( Graphics g, String styleName )
  {
    if ( styleName == null )
      styleName = "base";

    XStyle style = XProjectManager.getStyleManager().getStyle( styleName );

    foreColor = style.getStyleAsColor( XStyle.COLOR_FORE );
    if ( foreColor == null )
      foreColor = getForeground();

    backColor = style.getStyleAsColor( XStyle.COLOR_BACK );
    if ( backColor == null )
      backColor = getBackground();

    if ( backColor != null ) {
      darkerColor = new Color(
View Full Code Here

  private void applySelectedStyle( Graphics g, String styleName )
  {
    if ( styleName == null )
      styleName = "base";

    XStyle style = XProjectManager.getStyleManager().getStyle( styleName );

    foreColor = style.getStyleAsColor( XStyle.COLOR_FORE );
    if ( foreColor == null )
      foreColor = getForeground();

    backColor = style.getStyleAsColor( XStyle.COLOR_BACK );
    if ( backColor == null )
      backColor = getBackground();
    darkerColor = backColor;
  }
View Full Code Here

      Graphics g = getGraphics();
      if ( g != null ) {
        if ( tableStyle != null ) {
          // This doesn't properly account for different font sizes in the header but
          // a little more or less height probably won't matter much.
          XStyle style = XProjectManager.getStyleManager().getStyle( tableStyle );
          font = XProjectManager.getStyleManager().getFont( style );
        }
        g.setFont( font );
        fontMetrics = g.getFontMetrics();
        fontHeight = fontMetrics.getHeight();
View Full Code Here

                                    JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED :
                                    attribValueLwr.equals( "always" ) ?
                                    JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS : JScrollPane.HORIZONTAL_SCROLLBAR_NEVER );
    }
    else if ( attribNameLwr.equals( "style" )) {
      XStyle style = XProjectManager.getStyleManager().getStyle( (String)attribValue );
      getViewport().setBackground( style.getStyleAsColor( XStyle.COLOR_BACK ) );     
    }
    else if ( attribNameLwr.equals( "opaque" )) {
      setOpaque( attribValue.equals("true"));
      getViewport().setOpaque( attribValue.equals( "true" ));
      this.setBorder( new EmptyBorder( 0, 0, 0, 0 ));
View Full Code Here

   * @param style
   *          XStyle
   */
  public void setSelectedStyle( String style )
  {
    XStyle xstyle = XProjectManager.getStyleManager().getStyle( style );
    java.awt.Color colorAWTFg = xstyle.getStyleAsColor( XStyle.COLOR_FORE );
    java.awt.Color colorAWTBg = xstyle.getStyleAsColor( XStyle.COLOR_BACK );
    colorSWTFg = new org.eclipse.swt.graphics.Color( getDisplay(), colorAWTFg.getRed(), colorAWTFg.getGreen(), colorAWTFg.getBlue() );
    colorSWTBg = new org.eclipse.swt.graphics.Color( getDisplay(), colorAWTBg.getRed(), colorAWTBg.getGreen(), colorAWTBg.getBlue() );
  }
View Full Code Here

TOP

Related Classes of net.xoetrope.xui.style.XStyle

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.