Modifier and Type | Field and Description |
---|---|
private AttributeSet | |
private boolean |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public View | Returns: the fragment of the view that represents the given span.may be either axis, int View.X_AXIS or
View.Y_AXIS the location in the document model
that a broken fragment would occupy >= 0. This
would be the starting offset of the fragment
returned offset, float the position along the axis that the
broken view would occupy >= 0. This may be useful for
things like tab calculations pos, float specifies the distance along the axis
where a potential break is desired >= 0 len)Overrides javax. |
public void | changedUpdate(DocumentEvent
the change information from the associated document e, Shape the current allocation of the view a, ViewFactory the factory to use to rebuild if the view has children f)Overrides javax. |
public AttributeSet | getAttributes()
Overrides javax. |
public int | Returns: the weight, which should be a value between ForcedBreakWeight and BadBreakWeight.may be either View.X_AXIS or View.Y_AXIS axis, float the potential location of the start of the
broken view >= 0. This may be useful for calculating tab
positions. pos, float specifies the relative length from pos
where a potential break is desired >= 0. len)Overrides javax. |
protected StyleSheet | |
public void | insertUpdate(DocumentEvent
the change information from the associated document e, Shape the current allocation of the view a, ViewFactory the factory to use to rebuild if the view has children f)Overrides javax. |
public void | removeUpdate(DocumentEvent
the change information from the associated document e, Shape the current allocation of the view a, ViewFactory the factory to use to rebuild if the view has children f)Overrides javax. |
protected void | setPropertiesFromAttributes()
Overrides javax. |
attr | back to summary |
---|---|
private AttributeSet attr |
nowrap | back to summary |
---|---|
private boolean nowrap |
InlineView | back to summary |
---|---|
public InlineView(Element elem) Constructs a new view wrapped on an element.
|
breakView | back to summary |
---|---|
public View breakView(int axis, int offset, float pos, float len) Overrides javax. Tries to break this view on the given axis. Refer to
Behavior of this method is unspecified in case
|
changedUpdate | back to summary |
---|---|
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.
|
getAttributes | back to summary |
---|---|
public AttributeSet getAttributes() Overrides javax. Fetches the attributes to use when rendering. This is implemented to multiplex the attributes specified in the model with a StyleSheet.
|
getBreakWeight | back to summary |
---|---|
public int getBreakWeight(int axis, float pos, float len) Overrides javax. Determines how attractive a break opportunity in
this view is. This can be used for determining which
view is the most attractive to call
This is implemented to provide the default behavior
of returning
|
getStyleSheet | back to summary |
---|---|
protected StyleSheet getStyleSheet() Convenient method to get the StyleSheet.
|
insertUpdate | back to summary |
---|---|
public void insertUpdate(DocumentEvent e, Shape a, ViewFactory f) Overrides javax. Gives notification that something was inserted into
the document in a location that this view is responsible for.
If either parameter is
|
removeUpdate | back to summary |
---|---|
public void removeUpdate(DocumentEvent e, Shape a, ViewFactory f) Overrides javax. Gives notification that something was removed from the document
in a location that this view is responsible for.
If either parameter is
|
setPropertiesFromAttributes | back to summary |
---|---|
protected void setPropertiesFromAttributes() Overrides javax. Set the cached properties from the attributes. |