javax.swing.text.StyledDocument.getBackground()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(130)

本文整理了Java中javax.swing.text.StyledDocument.getBackground()方法的一些代码示例,展示了StyledDocument.getBackground()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。StyledDocument.getBackground()方法的具体详情如下:
包路径:javax.swing.text.StyledDocument
类名称:StyledDocument
方法名:getBackground

StyledDocument.getBackground介绍

暂无

代码示例

代码示例来源:origin: org.swinglabs.swingx/swingx-all

  1. /**
  2. * {@inheritDoc}
  3. */
  4. @Override
  5. public Color getBackground(AttributeSet attr) {
  6. return ((StyledDocument) delegate).getBackground(attr);
  7. }

代码示例来源:origin: org.codehaus.jtstand/jtstand-desktop

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public Color getBackground(AttributeSet attr) {
  5. return ((StyledDocument) delegate).getBackground(attr);
  6. }

代码示例来源:origin: org.netbeans.api/org-openide-text

  1. public java.awt.Color getBackground(AttributeSet attr) {
  2. return ((StyledDocument) original).getBackground(attr);
  3. }

代码示例来源:origin: tmyroadctfig/swingx

  1. /**
  2. * {@inheritDoc}
  3. */
  4. @Override
  5. public Color getBackground(AttributeSet attr) {
  6. return ((StyledDocument) delegate).getBackground(attr);
  7. }

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide

  1. public java.awt.Color getBackground(AttributeSet attr) {
  2. return ((StyledDocument)original).getBackground (attr);
  3. }

代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide

  1. public java.awt.Color getBackground(AttributeSet attr) {
  2. return ((StyledDocument)original).getBackground (attr);
  3. }

代码示例来源:origin: net.sf.jt400/jt400

  1. /**
  2. Returns the background color based on a set of attributes.
  3. @param attributes The attributes.
  4. @return The background color.
  5. **/
  6. public synchronized Color getBackground (AttributeSet attributes)
  7. {
  8. // In Swing 1.0, the DefaultStyledDocument.getBackground()
  9. // throws an Error - not implemented. This will hang
  10. // testcases, so we should not pass this on. This is already
  11. // reported in Java's Bug Parade, Bug Id 4109225.
  12. try {
  13. return document_.getBackground (attributes);
  14. }
  15. catch (Error e) {
  16. return null;
  17. }
  18. }

相关文章