Java Swing - O Reilly public int getBreakWeight(int axis,
Java Swing - O Reilly public int getBreakWeight(int axis, float pos, float len) If the given axis is Y_AXIS, this method delegates to the superclass. For X_AXIS, the result will be BadBreakWeight, GoodBreakWeight, or ExcellentBreakWeight, according to Table 23.7. Table 23.7, LabelView Break Weights Result Description BadBreakWeight The requested end index is the same as the start index GoodBreakWeight There is no whitespace in the requested range ExcellentBreakWeight There is whitespace in the requested range public Shape modelToView(int pos, Shape a, int p0, int p1) throws BadLocationException Returns a Rectangle covering the position pos in the Document. The width is always 0, and the height is always the height of the font in use at this position. The p0 and p1 parameters restrict the range in which pos should be searched. public Shape modelToView(int pos, Shape a, Position.Bias b) throws BadLocationException This version returns modelToView(pos, a, getStartOffset(), getEndOffset()), currently ignoring b. public void paint(Graphics g, Shape a) Uses Utilities.drawTabbedText() to draw the text to the given Graphics, using the appropriate font and color (as specified in the Element’s attributes). It uses Graphics.drawLine() to underline the text if the underline attribute has been set. public int viewToModel( float x, float y, Shape a, int p0, int p1) Calculates the model offset closest to the given location (only the left edge of the given Shape is taken into account). The p0 and p1 parameters are document offsets used to restrict the search range. public int viewToModel(float x, float y, Shape a, Position.Bias[] biasReturn) This version returns viewToModel(x, y, a, getStartOffset(), getEndOffset()). Currently, biasReturn[0] is always set to Position. Bias.Forward. 23.2.9.5 Protected Methods protected void setPropertiesFromAttributes() - 769
Please visit Domain Name Hosting services for high quality webhost to host and run your jsp applications.