Class DefaultExtendedCodeAreaLayoutProfile
- java.lang.Object
-
- org.exbin.bined.swing.extended.layout.DefaultExtendedCodeAreaLayoutProfile
-
- All Implemented Interfaces:
org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
@ParametersAreNonnullByDefault public class DefaultExtendedCodeAreaLayoutProfile extends java.lang.Object implements org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfileLayout profile for extended code area.
-
-
Constructor Summary
Constructors Constructor Description DefaultExtendedCodeAreaLayoutProfile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcomputeBytesPerRow(int halfCharsPerPage, org.exbin.bined.extended.ExtendedCodeAreaStructure structure)intcomputeClosestCharacterPosition(long positionX, int characterWidth, int bytesPerRow, org.exbin.bined.CodeType codeType)intcomputeCodeCharacterPosition(long positionX, int characterWidth, int bytesPerRow, org.exbin.bined.CodeType codeType)intcomputeFirstByteHalfCharPos(int byteOffset, org.exbin.bined.CodeAreaSection section, org.exbin.bined.extended.ExtendedCodeAreaStructure structure)intcomputeHalfCharsPerRow(org.exbin.bined.extended.ExtendedCodeAreaStructure structure)intcomputeHeaderAreaHeight(int fontHeight)intcomputeHeaderOffsetPositionY()intcomputeLastByteHalfCharPos(int byteOffset, org.exbin.bined.CodeAreaSection section, org.exbin.bined.extended.ExtendedCodeAreaStructure structure)org.exbin.bined.CodeAreaCaretPositioncomputeMovePosition(org.exbin.bined.CodeAreaCaretPosition position, org.exbin.bined.basic.MovementDirection direction, org.exbin.bined.extended.ExtendedCodeAreaStructure structure, int rowsPerPage)intcomputePixelPosition(int codeCharPosition, int characterWidth, org.exbin.bined.basic.CodeAreaViewMode viewMode, org.exbin.bined.CodeType codeType, int bytesPerRow)intcomputePositionByte(int rowHalfCharPosition, org.exbin.bined.extended.ExtendedCodeAreaStructure structure)intcomputePositionX(int halfCharPosition, int characterWidth, int halfSpaceWidth)intcomputeRowPositionAreaWidth(int characterWidth, int rowPositionLength)intcomputeRowPositionOffsetPositionX()longcomputeRowsPerDocument(org.exbin.bined.extended.ExtendedCodeAreaStructure structure)DefaultExtendedCodeAreaLayoutProfilecreateCopy()Copy constructor.org.exbin.bined.extended.layout.PositionIteratorcreatePositionIterator(org.exbin.bined.CodeType codeType, org.exbin.bined.basic.CodeAreaViewMode viewMode, int bytesPerRow)intgetBottomHeaderSpace()intgetDoubleSpaceGroupSize()intgetHalfSpaceGroupSize()intgetLeftRowPositionSpace()intgetRightRowPositionSpace()intgetSpaceGroupSize()org.exbin.bined.extended.layout.SpaceTypegetSpaceSizeTypeBefore(int byteOffset, int characterWidth)intgetTopHeaderSpace()booleanisHalfShiftedUsed()booleanisShowHeader()booleanisShowRowPosition()voidsetBottomHeaderSpace(int bottomHeaderSpace)voidsetDoubleSpaceGroupSize(int doubleSpaceGroupSize)voidsetHalfSpaceGroupSize(int halfSpaceGroupSize)voidsetLeftRowPositionSpace(int leftRowPositionSpace)voidsetRightRowPositionSpace(int rightRowPositionSpace)voidsetShowHeader(boolean showHeader)voidsetShowRowPosition(boolean showRowPosition)voidsetSpaceGroupSize(int spaceGroupSize)voidsetTopHeaderSpace(int topHeaderSpace)
-
-
-
Method Detail
-
createCopy
@Nonnull public DefaultExtendedCodeAreaLayoutProfile createCopy()
Copy constructor.- Specified by:
createCopyin interfaceorg.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile- Returns:
- copy of profile
-
computeHalfCharsPerRow
public int computeHalfCharsPerRow(org.exbin.bined.extended.ExtendedCodeAreaStructure structure)
- Specified by:
computeHalfCharsPerRowin interfaceorg.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
-
computeBytesPerRow
public int computeBytesPerRow(int halfCharsPerPage, org.exbin.bined.extended.ExtendedCodeAreaStructure structure)- Specified by:
computeBytesPerRowin interfaceorg.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
-
computeRowsPerDocument
public long computeRowsPerDocument(org.exbin.bined.extended.ExtendedCodeAreaStructure structure)
- Specified by:
computeRowsPerDocumentin interfaceorg.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
-
computePositionByte
public int computePositionByte(int rowHalfCharPosition, org.exbin.bined.extended.ExtendedCodeAreaStructure structure)- Specified by:
computePositionBytein interfaceorg.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
-
computeFirstByteHalfCharPos
public int computeFirstByteHalfCharPos(int byteOffset, org.exbin.bined.CodeAreaSection section, org.exbin.bined.extended.ExtendedCodeAreaStructure structure)- Specified by:
computeFirstByteHalfCharPosin interfaceorg.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
-
computeLastByteHalfCharPos
public int computeLastByteHalfCharPos(int byteOffset, org.exbin.bined.CodeAreaSection section, org.exbin.bined.extended.ExtendedCodeAreaStructure structure)- Specified by:
computeLastByteHalfCharPosin interfaceorg.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:
computeMovePositionin interfaceorg.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:
createPositionIteratorin interfaceorg.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:
computePositionXin interfaceorg.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
-
isShowHeader
public boolean isShowHeader()
- Specified by:
isShowHeaderin interfaceorg.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
-
setShowHeader
public void setShowHeader(boolean showHeader)
- Specified by:
setShowHeaderin interfaceorg.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:
isShowRowPositionin interfaceorg.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
-
setShowRowPosition
public void setShowRowPosition(boolean showRowPosition)
- Specified by:
setShowRowPositionin interfaceorg.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:
isHalfShiftedUsedin interfaceorg.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
-
computeRowPositionAreaWidth
public int computeRowPositionAreaWidth(int characterWidth, int rowPositionLength)- Specified by:
computeRowPositionAreaWidthin interfaceorg.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
-
computeHeaderAreaHeight
public int computeHeaderAreaHeight(int fontHeight)
- Specified by:
computeHeaderAreaHeightin interfaceorg.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
-
computeHeaderOffsetPositionY
public int computeHeaderOffsetPositionY()
- Specified by:
computeHeaderOffsetPositionYin interfaceorg.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
-
computeRowPositionOffsetPositionX
public int computeRowPositionOffsetPositionX()
- Specified by:
computeRowPositionOffsetPositionXin interfaceorg.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
-
-