|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.javatools.editor.gutter.LineGutterPlugin.Column
public class LineGutterPlugin.Column
This is our implementation of the GutterColumn interface that acts as a container for GutterMarks.
| Nested Class Summary | |
|---|---|
class |
LineGutterPlugin.Column.MarkThis is our implementation of the GutterMark interface. |
| Field Summary | |
|---|---|
protected GutterColumnListener |
_columnListenerThe listener for notifications. |
protected java.lang.String |
_columnNameThe name of the column. |
protected java.lang.String |
_layoutColumnThe name of the layout constraint column, or null if none. |
protected int |
_layoutConstraintThe layout constraint. |
protected java.util.List<LineGutterPlugin.Column.Mark> |
_marksListThe list of marks for this column. |
protected int |
_reservedWidthThe reserved width of this column. |
protected java.util.List<LineGutterPlugin.Column> |
groupThe columns with which this column merges reserved widths, bidirectionally and recursively. |
protected int |
groupIndexThe maximum reserved width of the columns with which this column merges reserved widths. |
| Fields inherited from interface oracle.javatools.editor.gutter.GutterColumn |
|---|
LAYOUT_MERGE_RESERVED_WIDTHS, LAYOUT_OVERLAY, LAYOUT_UNCONSTRAINED |
| Constructor Summary | |
|---|---|
protected |
LineGutterPlugin.Column(java.lang.String columnName, GutterColumnListener columnListener)Constructs a new Column. |
| Method Summary | |
|---|---|
GutterMark |
addGutterMark(int line, javax.swing.Icon icon, HighlightStyle highlightStyle, int markOrder, int markOptions)Adds a new GutterMark to this column for the given line. |
void |
attributeUpdate(int attribute)Provides notification regarding a change to one of the buffer attributes. |
void |
beginBlockAdd()Begins a block add. |
protected void |
discardAllGutterMarks()Utility routine which discards all of the gutter marks. |
void |
endBlockAdd()Ends a block add. |
protected void |
fireMarkClicked(java.awt.event.MouseEvent event, GutterMark mark, int line)Utility routine to fire the click notification for the given mark. |
protected void |
getAllMarks(java.util.Collection<LineGutterPlugin.Column.Mark> collection)Fetch all the marks in this column, adding it to the specified collection. |
java.lang.String |
getColumnName()Fetch the name of this column. |
Gutter |
getGutter()Fetch the Gutter instance that this column is associated with. |
protected java.lang.String |
getLayoutColumn()Gets the column referenced by the layout constraint on this column, or null if LAYOUT_UNCONSTRAINED. |
protected int |
getLayoutConstraint()Gets the layout constraint on this column, either GutterColumn.LAYOUT_UNCONSTRAINED, GutterColumn.LAYOUT_MERGE_RESERVED_WIDTHS, or GutterColumn.LAYOUT_OVERLAY. |
protected int |
getMarkCount()Fetch the number of marks in this column. |
protected void |
getMarks(java.util.Collection<LineGutterPlugin.Column.Mark> collection, int line)Fetch all the marks in this column that are on the given line, adding it to the specified collection. |
protected boolean |
getMarkSupportsClicks(GutterMark gutterMark)Fetch whether the specified GutterMark supports click behavior. |
java.lang.String |
getMarkToolTip(GutterMark mark, java.awt.event.MouseEvent event)Fetch the tooltip associated with the given GutterMark. |
protected int |
getReservedWidth()Gets the width to reserve in the gutter for this column. |
protected void |
insertUpdate(javax.swing.event.DocumentEvent event)Gives notification that there was an insert into the document. |
GutterMark[] |
lookupGutterMarks(int line)Fetch the GutterMark instances contained within this column for the specified line (if any). |
void |
removeAllGutterMarks()Removes all marks from this column. |
protected int |
removeAllGutterMarksImpl()Removes all marks from this column without generating a repaint. |
void |
removeGutterMark(GutterMark mark)Removes the mark from this column. |
void |
removeUpdate(javax.swing.event.DocumentEvent event)Gives notification that a portion of the document has been removed. |
void |
setLayoutConstraint(java.lang.String columnName, int constraint)Sets a layout constraint on this column. |
void |
setReservedWidth(int width)Sets the width reserved in the gutter for this column when no icon is displayed. |
java.lang.String |
toString() |
protected void |
updateAllMarkHighlights()Utility routine to update all of the highlights for all of the marks for our column. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String _columnName
protected GutterColumnListener _columnListener
protected int _reservedWidth
protected java.lang.String _layoutColumn
protected int _layoutConstraint
protected java.util.List<LineGutterPlugin.Column.Mark> _marksList
protected java.util.List<LineGutterPlugin.Column> group
protected int groupIndex
| Constructor Detail |
|---|
protected LineGutterPlugin.Column(java.lang.String columnName,
GutterColumnListener columnListener)
| Method Detail |
|---|
public void setReservedWidth(int width)
setReservedWidth in interface GutterColumnwidth - the width to reserve when no icon is displayed.protected int getReservedWidth()
public void setLayoutConstraint(java.lang.String columnName,
int constraint)
GutterColumn.LAYOUT_UNCONSTRAINED.setLayoutConstraint in interface GutterColumncolumnName - the name of the column referenced by the constraint.constraint - the constraint to establish, either GutterColumn.LAYOUT_UNCONSTRAINED, GutterColumn.LAYOUT_MERGE_RESERVED_WIDTHS, or GutterColumn.LAYOUT_OVERLAY.protected java.lang.String getLayoutColumn()
LAYOUT_UNCONSTRAINED.protected int getLayoutConstraint()
GutterColumn.LAYOUT_UNCONSTRAINED, GutterColumn.LAYOUT_MERGE_RESERVED_WIDTHS, or GutterColumn.LAYOUT_OVERLAY.protected void updateAllMarkHighlights()
protected void discardAllGutterMarks()
protected int getMarkCount()
protected void getAllMarks(java.util.Collection<LineGutterPlugin.Column.Mark> collection)
collection - the collection to add our marks to
protected void getMarks(java.util.Collection<LineGutterPlugin.Column.Mark> collection,
int line)
collection - the collection to add our marks toline - the line that we are interested inprotected int removeAllGutterMarksImpl()
protected boolean getMarkSupportsClicks(GutterMark gutterMark)
GutterMark supports click behavior.
public java.lang.String getMarkToolTip(GutterMark mark,
java.awt.event.MouseEvent event)
GutterMark.
protected void fireMarkClicked(java.awt.event.MouseEvent event,
GutterMark mark,
int line)
protected void insertUpdate(javax.swing.event.DocumentEvent event)
event - the document eventpublic void removeUpdate(javax.swing.event.DocumentEvent event)
event - the document eventpublic void attributeUpdate(int attribute)
attribute - the attribute that changedpublic Gutter getGutter()
Gutter instance that this column is associated with.getGutter in interface GutterColumnpublic java.lang.String getColumnName()
getColumnName in interface GutterColumnpublic void beginBlockAdd()
GutterColumnbeginBlockAdd in interface GutterColumnpublic void endBlockAdd()
GutterColumnendBlockAdd in interface GutterColumn
public GutterMark addGutterMark(int line,
javax.swing.Icon icon,
HighlightStyle highlightStyle,
int markOrder,
int markOptions)
GutterMark to this column for the given line. The provided icon will be displayed visually, and the highlight used to highlight the entire line. If there is a GutterColumnListener associated with this column, then it will receive notifications when the mark is moved, removed, or clicked upon.addGutterMark in interface GutterColumnline - the line (1-based) on which to create the GutterMarkicon - the icon to display visually on the given line of the gutterhighlightStyle - the highlight style to use for highlighting the line, or null for no highlightmarkOrder - the ordering to use for this mark (in relation to other marks on the same line) for left-to-right positioningmarkOptions - to affect user interaction with the mark, such as GutterMark.MARK_OPTION_SUPPORTS_CLICKSGutterMark or null if the line is invalidpublic GutterMark[] lookupGutterMarks(int line)
GutterMark instances contained within this column for the specified line (if any).lookupGutterMarks in interface GutterColumnline - the line to lookup gutter marks forpublic void removeGutterMark(GutterMark mark)
removeGutterMark in interface GutterColumnmark - the gutter mark to removepublic void removeAllGutterMarks()
removeAllGutterMarks in interface GutterColumnpublic java.lang.String toString()
toString in class java.lang.Object
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||