1 /******************************************************************************* 2 * Copyright (c) 2004 IBM Corporation and others. 3 * All rights reserved. This program and the accompanying materials 4 * are made available under the terms of the Common Public License v1.0 5 * which accompanies this distribution, and is available at 6 * http://www.eclipse.org/legal/cpl-v10.html 7 * 8 * Contributors: 9 * IBM Corporation - initial API and implementation 10 *******************************************************************************/ 11 package org.eclipse.debug.internal.ui.views.memory; 12 13 /** 14 * This interface is for capturing functions that are only applicable 15 * for memory being displayed in table format. 16 * 17 * @since 3.0 18 */ 19 public interface ITableMemoryViewTab extends IMemoryViewTab { 20 21 /** 22 * View tab will be formatted based on the parameters provided. 23 * Possible value for bytesPerLine is: 16. 24 * Although bytesPerLine is limited to 16, this function should still take this argument 25 * for future extension when other values are to be supported. 26 * Possible values for columnSize: 1, 2, 4, 8, 16. 27 * @param bytesPerLine 28 * @param columnSize 29 * @return true if formatting is successful, false otherwise 30 */ 31 public boolean format (int bytesPerLine, int columnSize); 32 33 /** 34 * @return number of bytes per line from the view tab. 35 */ 36 public int getBytesPerLine(); 37 38 39 /** 40 * @return number of bytes per column from the view tab. 41 */ 42 public int getColumnSize(); 43 44 45 /** 46 * @return number of visible lines from the view tab. 47 */ 48 public int getNumberOfVisibleLines(); 49 50 } 51