Elexis API documentation
Version 2.1.6 as of December 11 2011

ch.elexis.text
Class DecoratedStyleRange

java.lang.Object
  extended by ch.rgw.tools.GenericRange
      extended by ch.elexis.text.DecoratedStyleRange

public class DecoratedStyleRange
extends GenericRange


Field Summary
 
Fields inherited from class ch.rgw.tools.GenericRange
IS_AFTER_OTHER, IS_AT_BEGIN_OF_OTHER, IS_AT_END_OF_OTHER, IS_BEFORE_OTHER, IS_INSIDE_OTHER, IS_OVER_OTHER, IS_ZERO_LENGTH
 
Constructor Summary
DecoratedStyleRange(StyleRange sr)
           
 
Method Summary
 SSDRange getSSDRange()
           
 StyleRange getStyleRange()
           
 void intersectOverlay(TextPresentation tp, DecoratedStyleRange over)
          The other Range overlaps us at the beginning (i.e. begins befor or at our start and ends within us)
 void splitOverlay(TextPresentation tp, DecoratedStyleRange inner)
          If this GenericRange ist larger and on bottom, another shorter GenericRange is laid on top.
 
Methods inherited from class ch.rgw.tools.GenericRange
getEnd, getLength, getPos, overlap, positionTo, setEnd, setLen, setPos
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DecoratedStyleRange

public DecoratedStyleRange(StyleRange sr)
Method Detail

getSSDRange

public SSDRange getSSDRange()

getStyleRange

public StyleRange getStyleRange()

splitOverlay

public void splitOverlay(TextPresentation tp,
                         DecoratedStyleRange inner)
If this GenericRange ist larger and on bottom, another shorter GenericRange is laid on top. Then we create three Ranges: Leading, Middle, Trailing, while leading and trailing are the splitted original range and middle is a the inner Range with overlaid styles

Parameters:
inner - th inner range

intersectOverlay

public void intersectOverlay(TextPresentation tp,
                             DecoratedStyleRange over)
The other Range overlaps us at the beginning (i.e. begins befor or at our start and ends within us)

Parameters:
tp -
over -

Elexis API documentation
Version 2.1.6 as of December 11 2011

Copyright 2005-2011 by Gerry Weirich, Elexis