Example usage for javax.swing.text.html StyleSheet getViewAttributes

List of usage examples for javax.swing.text.html StyleSheet getViewAttributes

Introduction

In this page you can find the example usage for javax.swing.text.html StyleSheet getViewAttributes.

Prototype

public AttributeSet getViewAttributes(View v) 

Source Link

Document

Fetches a set of attributes to use in the view for displaying.

Usage

From source file:com.hexidec.ekit.component.RelativeImageView.java

/** Constructor
  * Creates a new view that represents an IMG element.
  * @param elem the element to create a view for
  *//*from  www. j av  a2 s  .co m*/
public RelativeImageView(Element elem) {
    super(elem);
    initialize(elem);
    StyleSheet sheet = getStyleSheet();
    attr = sheet.getViewAttributes(this);
}

From source file:org.pmedv.core.components.RelativeImageView.java

/**
 * Constructor Creates a new view that represents an IMG element.
 * //from  w  w  w .  j  a  v a  2  s .c  om
 * @param elem
 *            the element to create a view for
 */
public RelativeImageView(Element elem) {

    super(elem);
    initialize(elem);
    StyleSheet sheet = getStyleSheet();
    attr = sheet.getViewAttributes(this);
    log.debug("new RelativeImageView created.");
}