src/share/classes/java/awt/im/InputMethodHighlight.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 1997, 2004, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -155,10 +155,11 @@
this.style = style;
}
/**
* Returns whether the text range is selected.
+ * @return whether the text range is selected
*/
public boolean isSelected() {
return selected;
}
@@ -172,17 +173,19 @@
return state;
}
/**
* Returns the variation of the text range.
+ * @return the variation of the text range
*/
public int getVariation() {
return variation;
}
/**
* Returns the rendering style attributes for the text range, or null.
+ * @return the rendering style attributes for the text range, or null
* @since 1.3
*/
public Map<TextAttribute,?> getStyle() {
return style;
}