Extension SDK 10.1.3.36.73

oracle.javatools.editor
Class BasicView.CollapsedBlocks

java.lang.Object
  extended byoracle.javatools.editor.BasicView.CollapsedBlocks
Enclosing class:
BasicView

protected static class BasicView.CollapsedBlocks
extends java.lang.Object

Data structure class for tracking current known outermost collapsed blocks for the view layout. We don't care about internal


Field Summary
protected  int[] _blockEnds
          The end offsets of the collapsed blocks.
protected  java.lang.Object[] _blocks
          The reference to the original blocks.
protected  int[] _blockStarts
          The start offsets of the collapsed blocks.
protected  java.lang.String[] _blockTexts
          The replacement text for the collapsed blocks.
protected  CodeFoldingModel _model
          The code folding data model.
protected  int _numBlocks
          The number of collapsed blocks.
protected  int[] TEMP_OFFSETS
          The shared temporary array for fetching block offsets.
 
Constructor Summary
protected BasicView.CollapsedBlocks(CodeFoldingModel model)
          Construct our list of collapsed blocks.
 
Method Summary
protected  void addBlock(CodeFoldingModel model, java.lang.Object collapsedBlock)
          Utility routine to add the block to our list.
protected  void buildList(CodeFoldingModel model)
          Recursively build the list of collapsed blocks given the root block.
protected  void ensureCapacity()
          Make sure we have space to add another block.
protected  boolean equals(int[] a1, int[] a2, int count)
          Compare two int arrays for equality.
 boolean equals(java.lang.Object object)
          Compare two collapsed lists for equality.
protected  boolean equals(java.lang.String[] s1, java.lang.String[] s2, int count)
          Compare two String arrays for equality.
protected  void initializeCapacity(int capacity)
          Initialize our space for the given capacity.
protected  boolean insertUpdate(javax.swing.event.DocumentEvent event)
          Update our collapsed block list based on the event.
protected  boolean removeUpdate(javax.swing.event.DocumentEvent event)
          Update our collapsed block list based on the event.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_blockStarts

protected int[] _blockStarts
The start offsets of the collapsed blocks.


_blockEnds

protected int[] _blockEnds
The end offsets of the collapsed blocks.


_blockTexts

protected java.lang.String[] _blockTexts
The replacement text for the collapsed blocks.


_blocks

protected java.lang.Object[] _blocks
The reference to the original blocks.


_numBlocks

protected int _numBlocks
The number of collapsed blocks.


_model

protected CodeFoldingModel _model
The code folding data model.


TEMP_OFFSETS

protected final int[] TEMP_OFFSETS
The shared temporary array for fetching block offsets.

Constructor Detail

BasicView.CollapsedBlocks

protected BasicView.CollapsedBlocks(CodeFoldingModel model)
Construct our list of collapsed blocks.

Method Detail

buildList

protected void buildList(CodeFoldingModel model)
Recursively build the list of collapsed blocks given the root block.


initializeCapacity

protected void initializeCapacity(int capacity)
Initialize our space for the given capacity.


ensureCapacity

protected void ensureCapacity()
Make sure we have space to add another block.


insertUpdate

protected boolean insertUpdate(javax.swing.event.DocumentEvent event)
Update our collapsed block list based on the event.

Returns:
true if our block list matches the current block references, false otherwise

removeUpdate

protected boolean removeUpdate(javax.swing.event.DocumentEvent event)
Update our collapsed block list based on the event.

Returns:
true if our block list matches the current block references, false otherwise

addBlock

protected void addBlock(CodeFoldingModel model,
                        java.lang.Object collapsedBlock)
Utility routine to add the block to our list.


equals

public boolean equals(java.lang.Object object)
Compare two collapsed lists for equality.


equals

protected boolean equals(int[] a1,
                         int[] a2,
                         int count)
Compare two int arrays for equality.


equals

protected boolean equals(java.lang.String[] s1,
                         java.lang.String[] s2,
                         int count)
Compare two String arrays for equality.


Extension SDK 10.1.3.36.73

 

Copyright © 1997, 2005, Oracle.All rights reserved.