protected class OHTMLEditorKit.ResizableView extends DelegateView
| Modifier and Type | Field and Description |
|---|---|
protected Rectangle |
curBounds |
static int |
E |
static int |
N |
static int |
NE |
static int |
NW |
static int |
S |
static int |
SE |
protected Rectangle |
selBounds |
static int |
SW |
static int |
W |
delegateBadBreakWeight, ExcellentBreakWeight, ForcedBreakWeight, GoodBreakWeight, X_AXIS, Y_AXISBOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST| Constructor and Description |
|---|
OHTMLEditorKit.ResizableView(View delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
changedUpdate(DocumentEvent e,
Shape a,
ViewFactory f) |
protected Rectangle[] |
computeHandles(Rectangle sel) |
protected void |
drawSelectionHandles(Graphics g) |
Rectangle |
getBounds()
Gets the current bounds of the view
|
int |
getHandleForPoint(Point p)
Gets the selection handle at the specified point.
|
Rectangle |
getSelectionBounds()
Gets the Rectangle from which the selection handles are drawn
|
void |
insertUpdate(DocumentEvent e,
Shape a,
ViewFactory f) |
boolean |
isSelectionEnabled() |
void |
paint(Graphics g,
Shape allocation) |
void |
removeUpdate(DocumentEvent e,
Shape a,
ViewFactory f) |
void |
setSelectionEnabled(boolean b)
Draw the selection if true
|
append, breakView, createFragment, equals, getAlignment, getAttributes, getBreakWeight, getChildAllocation, getContainer, getDocument, getElement, getEndOffset, getGraphics, getMaximumSpan, getMinimumSpan, getNextVisualPositionFrom, getParent, getPreferredSpan, getResizeWeight, getStartOffset, getToolTipText, getView, getViewCount, getViewFactory, getViewIndex, getViewIndex, hashCode, insert, isVisible, modelToView, modelToView, modelToView, preferenceChanged, remove, removeAll, replace, setParent, setSize, toString, viewToModel, viewToModelforwardUpdate, forwardUpdateToView, updateChildren, updateLayoutpublic static final int NW
public static final int NE
public static final int SW
public static final int SE
public static final int N
public static final int S
public static final int E
public static final int W
protected Rectangle curBounds
protected Rectangle selBounds
public OHTMLEditorKit.ResizableView(View delegate)
public void insertUpdate(DocumentEvent e, Shape a, ViewFactory f)
insertUpdate in class DelegateViewpublic void changedUpdate(DocumentEvent e, Shape a, ViewFactory f)
changedUpdate in class DelegateViewpublic void removeUpdate(DocumentEvent e, Shape a, ViewFactory f)
removeUpdate in class DelegateViewpublic Rectangle getBounds()
public Rectangle getSelectionBounds()
public void setSelectionEnabled(boolean b)
b - public boolean isSelectionEnabled()
public int getHandleForPoint(Point p)
p - protected void drawSelectionHandles(Graphics g)
Copyright © 2016 Imatia Innovation S.L.. All rights reserved.