1 package com.tapina.robe.swi.wimp; 2 3 import java.awt.*; 4 5 /*** 6 * This class represents the record of the position of the caret. 7 */ 8 public class CaretPosition { 9 public static final int VDU5_CARET = (1<<24); 10 public static final int INVISIBLE = (1<<25); 11 public static final int USE_COLOUR = (1<<26); 12 public static final int USE_WIMP_COLOUR = (1<<27); 13 14 Window window; 15 int iconHandle; 16 Point offset = new Point(); 17 int height; 18 int colour = 11; 19 int flags; 20 int index = -1; 21 22 public CaretPosition(Window window, int iconHandle) { 23 this.window = window; 24 this.iconHandle = iconHandle; 25 } 26 27 public Window getWindow() { 28 return window; 29 } 30 31 public void setWindow(Window window) { 32 this.window = window; 33 } 34 35 public int getIconHandle() { 36 return iconHandle; 37 } 38 39 public void setIconHandle(int iconHandle) { 40 this.iconHandle = iconHandle; 41 } 42 43 public Point getOffset() { 44 return offset; 45 } 46 47 public void setOffset(Point offset) { 48 this.offset = offset; 49 } 50 51 public int getHeight() { 52 return height; 53 } 54 55 public void setHeight(int height) { 56 this.height = height; 57 } 58 59 public int getColour() { 60 return colour; 61 } 62 63 public void setColour(int colour) { 64 this.colour = colour; 65 } 66 67 public int getFlags() { 68 return flags; 69 } 70 71 public void setFlags(int flags) { 72 this.flags = flags; 73 } 74 75 public int getIndex() { 76 return index; 77 } 78 79 public void setIndex(int index) { 80 this.index = index; 81 } 82 }