Class DefaultExtendedCodeAreaLayoutProfile

  • All Implemented Interfaces:
    org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile

    @ParametersAreNonnullByDefault
    public class DefaultExtendedCodeAreaLayoutProfile
    extends java.lang.Object
    implements org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
    Layout profile for extended code area.
    • Constructor Detail

      • DefaultExtendedCodeAreaLayoutProfile

        public DefaultExtendedCodeAreaLayoutProfile()
    • Method Detail

      • createCopy

        @Nonnull
        public DefaultExtendedCodeAreaLayoutProfile createCopy()
        Copy constructor.
        Specified by:
        createCopy in interface org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
        Returns:
        copy of profile
      • computeHalfCharsPerRow

        public int computeHalfCharsPerRow​(org.exbin.bined.extended.ExtendedCodeAreaStructure structure)
        Specified by:
        computeHalfCharsPerRow in interface org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
      • computeBytesPerRow

        public int computeBytesPerRow​(int halfCharsPerPage,
                                      org.exbin.bined.extended.ExtendedCodeAreaStructure structure)
        Specified by:
        computeBytesPerRow in interface org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
      • computeRowsPerDocument

        public long computeRowsPerDocument​(org.exbin.bined.extended.ExtendedCodeAreaStructure structure)
        Specified by:
        computeRowsPerDocument in interface org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
      • computePositionByte

        public int computePositionByte​(int rowHalfCharPosition,
                                       org.exbin.bined.extended.ExtendedCodeAreaStructure structure)
        Specified by:
        computePositionByte in interface org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
      • computeFirstByteHalfCharPos

        public int computeFirstByteHalfCharPos​(int byteOffset,
                                               org.exbin.bined.CodeAreaSection section,
                                               org.exbin.bined.extended.ExtendedCodeAreaStructure structure)
        Specified by:
        computeFirstByteHalfCharPos in interface org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
      • computeLastByteHalfCharPos

        public int computeLastByteHalfCharPos​(int byteOffset,
                                              org.exbin.bined.CodeAreaSection section,
                                              org.exbin.bined.extended.ExtendedCodeAreaStructure structure)
        Specified by:
        computeLastByteHalfCharPos in interface org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
      • computeMovePosition

        @Nonnull
        public org.exbin.bined.CodeAreaCaretPosition computeMovePosition​(org.exbin.bined.CodeAreaCaretPosition position,
                                                                         org.exbin.bined.basic.MovementDirection direction,
                                                                         org.exbin.bined.extended.ExtendedCodeAreaStructure structure,
                                                                         int rowsPerPage)
        Specified by:
        computeMovePosition in interface org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
      • computeCodeCharacterPosition

        public int computeCodeCharacterPosition​(long positionX,
                                                int characterWidth,
                                                int bytesPerRow,
                                                org.exbin.bined.CodeType codeType)
      • computeClosestCharacterPosition

        public int computeClosestCharacterPosition​(long positionX,
                                                   int characterWidth,
                                                   int bytesPerRow,
                                                   org.exbin.bined.CodeType codeType)
      • createPositionIterator

        @Nonnull
        public org.exbin.bined.extended.layout.PositionIterator createPositionIterator​(org.exbin.bined.CodeType codeType,
                                                                                       org.exbin.bined.basic.CodeAreaViewMode viewMode,
                                                                                       int bytesPerRow)
        Specified by:
        createPositionIterator in interface org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
      • computePixelPosition

        public int computePixelPosition​(int codeCharPosition,
                                        int characterWidth,
                                        org.exbin.bined.basic.CodeAreaViewMode viewMode,
                                        org.exbin.bined.CodeType codeType,
                                        int bytesPerRow)
      • getSpaceSizeTypeBefore

        @Nonnull
        public org.exbin.bined.extended.layout.SpaceType getSpaceSizeTypeBefore​(int byteOffset,
                                                                                int characterWidth)
      • computePositionX

        public int computePositionX​(int halfCharPosition,
                                    int characterWidth,
                                    int halfSpaceWidth)
        Specified by:
        computePositionX in interface org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
      • isShowHeader

        public boolean isShowHeader()
        Specified by:
        isShowHeader in interface org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
      • setShowHeader

        public void setShowHeader​(boolean showHeader)
        Specified by:
        setShowHeader in interface org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
      • getBottomHeaderSpace

        public int getBottomHeaderSpace()
      • setBottomHeaderSpace

        public void setBottomHeaderSpace​(int bottomHeaderSpace)
      • getLeftRowPositionSpace

        public int getLeftRowPositionSpace()
      • setLeftRowPositionSpace

        public void setLeftRowPositionSpace​(int leftRowPositionSpace)
      • isShowRowPosition

        public boolean isShowRowPosition()
        Specified by:
        isShowRowPosition in interface org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
      • setShowRowPosition

        public void setShowRowPosition​(boolean showRowPosition)
        Specified by:
        setShowRowPosition in interface org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
      • getTopHeaderSpace

        public int getTopHeaderSpace()
      • setTopHeaderSpace

        public void setTopHeaderSpace​(int topHeaderSpace)
      • getRightRowPositionSpace

        public int getRightRowPositionSpace()
      • setRightRowPositionSpace

        public void setRightRowPositionSpace​(int rightRowPositionSpace)
      • getHalfSpaceGroupSize

        public int getHalfSpaceGroupSize()
      • setHalfSpaceGroupSize

        public void setHalfSpaceGroupSize​(int halfSpaceGroupSize)
      • getSpaceGroupSize

        public int getSpaceGroupSize()
      • setSpaceGroupSize

        public void setSpaceGroupSize​(int spaceGroupSize)
      • getDoubleSpaceGroupSize

        public int getDoubleSpaceGroupSize()
      • setDoubleSpaceGroupSize

        public void setDoubleSpaceGroupSize​(int doubleSpaceGroupSize)
      • isHalfShiftedUsed

        public boolean isHalfShiftedUsed()
        Specified by:
        isHalfShiftedUsed in interface org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
      • computeRowPositionAreaWidth

        public int computeRowPositionAreaWidth​(int characterWidth,
                                               int rowPositionLength)
        Specified by:
        computeRowPositionAreaWidth in interface org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
      • computeHeaderAreaHeight

        public int computeHeaderAreaHeight​(int fontHeight)
        Specified by:
        computeHeaderAreaHeight in interface org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
      • computeHeaderOffsetPositionY

        public int computeHeaderOffsetPositionY()
        Specified by:
        computeHeaderOffsetPositionY in interface org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
      • computeRowPositionOffsetPositionX

        public int computeRowPositionOffsetPositionX()
        Specified by:
        computeRowPositionOffsetPositionX in interface org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile