|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.border.AbstractBorder
gui.multisource.MultisourceBorder
public class MultisourceBorder
A MultisourceBorder is a border that displays a color code indicating the source of text in a MultisourceDocument. The border can be applied to a text pane that contains a multisource document. Its color codes appear to the left of the text.
| Constructor Summary | |
|---|---|
MultisourceBorder(javax.swing.JTextPane tp,
MultisourceDocument msd)
new MultisourceBorder(c, msd) returns a multisource border that reflects the sources for text in msd and can be installed in c. |
|
MultisourceBorder(javax.swing.JTextPane tp,
MultisourceDocument msd,
int w)
new MultisourceBorder(tp, msd, w) returns a new multisource border with width w that reflects the sources for text in msd and can be installed on tp. |
|
| Method Summary | |
|---|---|
java.awt.Insets |
getBorderInsets(java.awt.Component c)
msb.getBorderInsets(c) returns the insets for msb in c. |
java.awt.Insets |
getBorderInsets(java.awt.Component c,
java.awt.Insets ins)
msb.getBorderInsets(c, ins) copies the insets for msb in c into . |
void |
paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int w,
int h)
The paintBorder() method is invoked by the component in which this border is installed. |
void |
setSourceColor(java.lang.Object s,
java.awt.Color c)
msb.setSourceColor(s, c) sets the source color for sources whose identifier is s to c. |
| Methods inherited from class javax.swing.border.AbstractBorder |
|---|
getBaseline, getBaselineResizeBehavior, getInteriorRectangle, getInteriorRectangle, isBorderOpaque |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultisourceBorder(javax.swing.JTextPane tp,
MultisourceDocument msd)
tp - the text panemsd - the multisource document
public MultisourceBorder(javax.swing.JTextPane tp,
MultisourceDocument msd,
int w)
tp - the text panemsd - the multisource document| Method Detail |
|---|
public void setSourceColor(java.lang.Object s,
java.awt.Color c)
s - c - public java.awt.Insets getBorderInsets(java.awt.Component c)
getBorderInsets in interface javax.swing.border.BordergetBorderInsets in class javax.swing.border.AbstractBorderc - the component in which the border is installed
public java.awt.Insets getBorderInsets(java.awt.Component c,
java.awt.Insets ins)
getBorderInsets in class javax.swing.border.AbstractBorderc - the component in which the border is installedins - the insets object that receives the insets
public void paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int w,
int h)
paintBorder in interface javax.swing.border.BorderpaintBorder in class javax.swing.border.AbstractBorder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||