/** Returns the foreground color based on a set of attributes. @param attributes The attributes. @return The foreground color. **/ public synchronized Color getForeground (AttributeSet attributes) { return document_.getForeground (attributes); }
/** * {@inheritDoc} */ @Override public Color getForeground(AttributeSet attr) { return ((StyledDocument) delegate).getForeground(attr); }
public java.awt.Color getForeground(AttributeSet attr) { return ((StyledDocument) original).getForeground(attr); }
/** * {@inheritDoc} */ public Color getForeground(AttributeSet attr) { return ((StyledDocument) delegate).getForeground(attr); }
public java.awt.Color getForeground(AttributeSet attr) { return ((StyledDocument)original).getForeground (attr); }
/** * {@inheritDoc} */ @Override public Color getForeground(AttributeSet attr) { return ((StyledDocument) delegate).getForeground(attr); }
public java.awt.Color getForeground(AttributeSet attr) { return ((StyledDocument)original).getForeground (attr); }
/** Method returns the border's color, or null if this is not a link */ Color getBorderColor() { StyledDocument doc = (StyledDocument)getDocument(); return doc.getForeground(getAttributes()); }
@Override public Color getForeground() { View parent; if (fg == null && (parent = getParent()) != null) { Document doc = getDocument(); AttributeSet attr = parent.getAttributes(); if (attr != null && (doc instanceof StyledDocument)) { fg = ((StyledDocument) doc).getForeground(attr); } } return fg; } }
do { Element element = doc.getCharacterElement(startIndex); color = doc.getForeground(element.getAttributes()); startIndex++; } while (!color.equals(Color.RED)); do { Element element = doc.getCharacterElement(endIndex); color = doc.getForeground(element.getAttributes()); endIndex++; } while (color.equals(Color.RED));
g.setColor(_doc.getForeground(attributes)); g.setFont (BuLib.deriveFont(_doc.getFont(attributes),-2)); g.drawString(t,x,y);
topInset = bottomInset = (short) (getIntAttr(HTML.Attribute.VSPACE, 0) + borderSize); borderColor = ((StyledDocument) getDocument()).getForeground(getAttributes());