Skip navigation links


com.essbase.eas.ui.editor.editpane
Class JPlainView

java.lang.Object
  extended by javax.swing.text.View
      extended by javax.swing.text.CompositeView
          extended by javax.swing.text.BoxView
              extended by javax.swing.text.WrappedPlainView
                  extended by com.essbase.eas.ui.editor.editpane.JPlainView

All Implemented Interfaces:
javax.swing.SwingConstants, javax.swing.text.TabExpander

public class JPlainView
extends javax.swing.text.WrappedPlainView

Title: Editor using the JEditPane Description: Copyright: Copyright (c) 2003 Company: Hyperion Solutions, Inc.

Version:
1.0
Author:
Sree Menon

Field Summary

 

Fields inherited from class javax.swing.text.View
BadBreakWeight, ExcellentBreakWeight, ForcedBreakWeight, GoodBreakWeight, X_AXIS, Y_AXIS

 

Fields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST

 

Constructor Summary
JPlainView(javax.swing.text.Element elem)
           

 

Method Summary
protected  void drawLine(int p0, int p1, java.awt.Graphics g, int x, int y)
           
protected  int drawSelectedText(java.awt.Graphics g, int x, int y, int p0, int p1, javax.swing.text.Element line, byte id)
           
protected  int drawTokens(TextComponentFrame pane, java.awt.Color clr, java.awt.Graphics graphics, int startX, int startY, int startPos, int endPos, javax.swing.text.Element elem, byte id)
           
protected  int drawUnselectedText(java.awt.Graphics g, int x, int y, int p0, int p1, javax.swing.text.Element line, byte id)
           
protected  TextComponentFrame getEditorPane(javax.swing.text.JTextComponent comp)
           
protected  javax.swing.text.JTextComponent getHost()
           
protected  java.awt.Color getSelectedColor()
           
 int getTabSize()
           
protected  int getTextLocation(java.awt.Graphics g, int p0)
           
protected  java.awt.Color getUnselectedColor()
           
 float nextTabStop(float x, int tabOffset)
           

 

Methods inherited from class javax.swing.text.WrappedPlainView
calculateBreakPosition, changedUpdate, drawSelectedText, drawUnselectedText, getLineBuffer, getMaximumSpan, getMinimumSpan, getPreferredSpan, insertUpdate, loadChildren, paint, removeUpdate, setSize

 

Methods inherited from class javax.swing.text.BoxView
baselineLayout, baselineRequirements, calculateMajorAxisRequirements, calculateMinorAxisRequirements, childAllocation, flipEastAndWestAtEnds, forwardUpdate, getAlignment, getAxis, getChildAllocation, getHeight, getOffset, getResizeWeight, getSpan, getViewAtPoint, getWidth, isAfter, isAllocationValid, isBefore, isLayoutValid, layout, layoutChanged, layoutMajorAxis, layoutMinorAxis, modelToView, paintChild, preferenceChanged, replace, setAxis, viewToModel

 

Methods inherited from class javax.swing.text.CompositeView
getBottomInset, getInsideAllocation, getLeftInset, getNextEastWestVisualPositionFrom, getNextNorthSouthVisualPositionFrom, getNextVisualPositionFrom, getRightInset, getTopInset, getView, getViewAtPosition, getViewCount, getViewIndex, getViewIndexAtPosition, modelToView, setInsets, setParagraphInsets, setParent

 

Methods inherited from class javax.swing.text.View
append, breakView, createFragment, forwardUpdateToView, getAttributes, getBreakWeight, getContainer, getDocument, getElement, getEndOffset, getGraphics, getParent, getStartOffset, getToolTipText, getViewFactory, getViewIndex, insert, isVisible, modelToView, remove, removeAll, updateChildren, updateLayout, viewToModel

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

JPlainView

public JPlainView(javax.swing.text.Element elem)

Method Detail

getEditorPane

protected TextComponentFrame getEditorPane(javax.swing.text.JTextComponent comp)

getHost

protected javax.swing.text.JTextComponent getHost()

getUnselectedColor

protected java.awt.Color getUnselectedColor()

getSelectedColor

protected java.awt.Color getSelectedColor()

drawSelectedText

protected int drawSelectedText(java.awt.Graphics g,
                               int x,
                               int y,
                               int p0,
                               int p1,
                               javax.swing.text.Element line,
                               byte id)
                        throws javax.swing.text.BadLocationException
Throws:
javax.swing.text.BadLocationException

getTextLocation

protected int getTextLocation(java.awt.Graphics g,
                              int p0)

drawUnselectedText

protected int drawUnselectedText(java.awt.Graphics g,
                                 int x,
                                 int y,
                                 int p0,
                                 int p1,
                                 javax.swing.text.Element line,
                                 byte id)
                          throws javax.swing.text.BadLocationException
Throws:
javax.swing.text.BadLocationException

drawTokens

protected int drawTokens(TextComponentFrame pane,
                         java.awt.Color clr,
                         java.awt.Graphics graphics,
                         int startX,
                         int startY,
                         int startPos,
                         int endPos,
                         javax.swing.text.Element elem,
                         byte id)
                  throws javax.swing.text.BadLocationException
Throws:
javax.swing.text.BadLocationException

drawLine

protected void drawLine(int p0,
                        int p1,
                        java.awt.Graphics g,
                        int x,
                        int y)
Overrides:
drawLine in class javax.swing.text.WrappedPlainView

getTabSize

public int getTabSize()
Overrides:
getTabSize in class javax.swing.text.WrappedPlainView

nextTabStop

public float nextTabStop(float x,
                         int tabOffset)
Specified by:
nextTabStop in interface javax.swing.text.TabExpander
Overrides:
nextTabStop in class javax.swing.text.WrappedPlainView

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.