| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final Border | |
| pack-priv boolean | isSettingAttributes
Set to true when setting attributes. |
| pack-priv static final int | |
| pack-priv static final Border | |
| pack-priv static final int | |
| pack-priv static final Color | |
| pack-priv float | yAlign
Alignment along the y axis, based on the font of the textfield. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | _setTextFromModel()
This resets the text on the text component we created to match that of the AttributeSet for the Element we represent. |
| pack-priv void | _updateModelFromText()
This copies the text from the text component we've created to the Element's AttributeSet we represent. |
| public void | changedUpdate(DocumentEvent e)
Implements javax. Gives notification that an attribute or set of attributes changed. |
| public void | changedUpdate(DocumentEvent e, Shape a, ViewFactory f)
Overrides javax. Gives notification from the document that attributes were changed in a location that this view is responsible for. |
| protected Component | createComponent()
Overrides javax. Create the component that is associated with this view. |
| public float | getAlignment(int axis)
Overrides javax. Determines the desired alignment for this view along an axis. |
| public float | getMaximumSpan(int axis)
Overrides javax. Determines the maximum span for this view along an axis. |
| public float | getMinimumSpan(int axis)
Overrides javax. Determines the minimum span for this view along an axis. |
| public float | getPreferredSpan(int axis)
Overrides javax. Determines the preferred span for this view along an axis. |
| pack-priv String | |
| pack-priv JTextComponent | |
| public void | insertUpdate(DocumentEvent e)
Implements javax. Gives notification that there was an insert into the document. |
| pack-priv boolean | |
| public void | removeUpdate(DocumentEvent e)
Implements javax. Gives notification that a portion of the document has been removed. |
| pack-priv void | |
| pack-priv void | setTextFromModel()
This resets the text on the text component we created to match that of the AttributeSet for the Element we represent. |
| pack-priv void | updateModelFromText()
This copies the text from the text component we've created to the Element's AttributeSet we represent. |
| pack-priv void |
| circleD | back to summary |
|---|---|
| pack-priv static final int circleD | |
| circleR | back to summary |
|---|---|
| pack-priv static final int circleR | |
| EndBorder | back to summary |
|---|---|
| pack-priv static final Border EndBorder | |
| isSettingAttributes | back to summary |
|---|---|
| pack-priv boolean isSettingAttributes Set to true when setting attributes. | |
| padding | back to summary |
|---|---|
| pack-priv static final int padding | |
| StartBorder | back to summary |
|---|---|
| pack-priv static final Border StartBorder | |
| tagSize | back to summary |
|---|---|
| pack-priv static final int tagSize | |
| UnknownTagBorderColor | back to summary |
|---|---|
| pack-priv static final Color UnknownTagBorderColor | |
| yAlign | back to summary |
|---|---|
| pack-priv float yAlign Alignment along the y axis, based on the font of the textfield. | |
| HiddenTagView | back to summary |
|---|---|
| pack-priv HiddenTagView(Element e) | |
| _setTextFromModel | back to summary |
|---|---|
| pack-priv void _setTextFromModel() This resets the text on the text component we created to match that of the AttributeSet for the Element we represent. | |
| _updateModelFromText | back to summary |
|---|---|
| pack-priv void _updateModelFromText() This copies the text from the text component we've created to the Element's AttributeSet we represent. | |
| changedUpdate | back to summary |
|---|---|
| public void changedUpdate(DocumentEvent e) Implements javax. Doc from javax. Gives notification that an attribute or set of attributes changed. | |
| changedUpdate | back to summary |
|---|---|
| public void changedUpdate(DocumentEvent e, Shape a, ViewFactory f) Overrides javax. Doc from javax. Gives notification from the document that attributes were changed in a location that this view is responsible for. To reduce the burden to subclasses, this functionality is spread out into the following calls that subclasses can reimplement:
| |
| createComponent | back to summary |
|---|---|
| protected Component createComponent() Overrides javax. Doc from javax. Create the component that is associated with this view. This will be called when it has been determined that a new component is needed. This would result from a call to setParent or as a result of being notified that attributes have changed. | |
| getAlignment | back to summary |
|---|---|
| public float getAlignment(int axis) Overrides javax. Doc from javax. Determines the desired alignment for this view along an axis. This is implemented to give the alignment of the embedded component. | |
| getMaximumSpan | back to summary |
|---|---|
| public float getMaximumSpan(int axis) Overrides javax. Doc from javax. Determines the maximum span for this view along an axis. This is implemented to return the value returned by Component.getMaximumSize along the axis of interest. | |
| getMinimumSpan | back to summary |
|---|---|
| public float getMinimumSpan(int axis) Overrides javax. Doc from javax. Determines the minimum span for this view along an axis. This is implemented to return the value returned by Component.getMinimumSize along the axis of interest. | |
| getPreferredSpan | back to summary |
|---|---|
| public float getPreferredSpan(int axis) Overrides javax. Doc from javax. Determines the preferred span for this view along an axis. This is implemented to return the value returned by Component.getPreferredSize along the axis of interest. | |
| getRepresentedText | back to summary |
|---|---|
| pack-priv String getRepresentedText() | |
| getTextComponent | back to summary |
|---|---|
| pack-priv JTextComponent getTextComponent() | |
| insertUpdate | back to summary |
|---|---|
| public void insertUpdate(DocumentEvent e) Implements javax. Doc from javax. Gives notification that there was an insert into the document. The range given by the DocumentEvent bounds the freshly inserted region. | |
| isEndTag | back to summary |
|---|---|
| pack-priv boolean isEndTag() | |
| removeUpdate | back to summary |
|---|---|
| public void removeUpdate(DocumentEvent e) Implements javax. Doc from javax. Gives notification that a portion of the document has been removed. The range is given in terms of what the view last saw (that is, before updating sticky positions). | |
| resetBorder | back to summary |
|---|---|
| pack-priv void resetBorder() | |
| setTextFromModel | back to summary |
|---|---|
| pack-priv void setTextFromModel() This resets the text on the text component we created to match that of the AttributeSet for the Element we represent. If this is invoked on the event dispatching thread, this
directly invokes | |
| updateModelFromText | back to summary |
|---|---|
| pack-priv void updateModelFromText() This copies the text from the text component we've created to the Element's AttributeSet we represent. If this is invoked on the event dispatching thread, this
directly invokes | |
| updateYAlign | back to summary |
|---|---|
pack-priv void updateYAlign(Font font)
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Insets | getBorderInsets(Component c)
Implements javax. Returns the insets of the border. |
| public boolean | isBorderOpaque()
Implements javax. Returns whether or not the border is opaque. |
| public void | paintBorder(Component c, Graphics g, int x, int y, int width, int height)
Implements javax. Paints the border for the specified component with the specified position and size. |
| EndTagBorder | back to summary |
|---|---|
| pack-priv EndTagBorder() | |
| getBorderInsets | back to summary |
|---|---|
| public Insets getBorderInsets(Component c) Implements javax. Doc from javax. Returns the insets of the border. | |
| isBorderOpaque | back to summary |
|---|---|
| public boolean isBorderOpaque() Implements javax. Doc from javax. Returns whether or not the border is opaque. If the border is opaque, it is responsible for filling in it's own background when painting. | |
| paintBorder | back to summary |
|---|---|
| public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) Implements javax. Doc from javax. Paints the border for the specified component with the specified position and size. | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Insets | getBorderInsets(Component c)
Implements javax. Returns the insets of the border. |
| public boolean | isBorderOpaque()
Implements javax. Returns whether or not the border is opaque. |
| public void | paintBorder(Component c, Graphics g, int x, int y, int width, int height)
Implements javax. Paints the border for the specified component with the specified position and size. |
| StartTagBorder | back to summary |
|---|---|
| pack-priv StartTagBorder() | |
| getBorderInsets | back to summary |
|---|---|
| public Insets getBorderInsets(Component c) Implements javax. Doc from javax. Returns the insets of the border. | |
| isBorderOpaque | back to summary |
|---|---|
| public boolean isBorderOpaque() Implements javax. Doc from javax. Returns whether or not the border is opaque. If the border is opaque, it is responsible for filling in it's own background when painting. | |
| paintBorder | back to summary |
|---|---|
| public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) Implements javax. Doc from javax. Paints the border for the specified component with the specified position and size. | |