public class RegionBoard extends java.lang.Object implements java.awt.event.FocusListener, RegionListener
Modifier and Type | Field and Description |
---|---|
protected DTextCanvas |
canvas |
(package private) ChangeNotifiable |
changeNotifiable |
private ClickableRegionStore |
crStore |
(package private) RegionDragSource |
dragSource |
(package private) RegionDropTarget |
dropTarget |
protected int |
fullTextHeight |
(package private) boolean |
inFocus |
Constructor and Description |
---|
RegionBoard(DTextCanvas c) |
Modifier and Type | Method and Description |
---|---|
protected void |
addClickRegion(int[] xywh,
java.lang.Object b,
java.lang.String s) |
protected void |
addDragOrDropRegion(int[] xywh,
java.lang.Object b,
java.lang.String s) |
protected void |
addDragRegion(int[] xywh,
java.lang.Object b,
java.lang.String s) |
protected void |
addDropRegion(int[] xywh,
java.lang.Object b,
java.lang.String s) |
protected void |
addLengthenedRegion(int[] cachedPosition,
java.lang.Object b) |
protected void |
addRegion(int x,
int y,
int w,
int h,
java.lang.Object obj,
java.lang.String s) |
protected void |
addRegion(int x,
int y,
int w,
int h,
java.lang.Object obj,
java.lang.String s,
int ity) |
void |
clearRegions() |
void |
dropGeneral(java.lang.Object dropee) |
void |
dropOn(java.lang.Object src,
Region target) |
void |
focusGained(java.awt.event.FocusEvent e) |
void |
focusLost(java.awt.event.FocusEvent e) |
DTextCanvas |
getCanvas() |
Region |
getDragOverRegion() |
Region |
getDragOverRegion(int x,
int y) |
int |
getFullTextHeight() |
int |
getHeight() |
Region |
getHoverRegion() |
int |
getWidth() |
(package private) boolean |
hasFocus() |
void |
notifyChange(java.lang.Object obj) |
void |
prePaintRegions(java.awt.Graphics2D g) |
void |
regionClicked(Region reg) |
void |
repaint() |
void |
requestFocus() |
void |
setAntialias(boolean b) |
void |
setChangeNotifiable(ChangeNotifiable cn) |
void |
unecho(Region reg) |
protected DTextCanvas canvas
ChangeNotifiable changeNotifiable
private ClickableRegionStore crStore
boolean inFocus
RegionDropTarget dropTarget
RegionDragSource dragSource
protected int fullTextHeight
public RegionBoard(DTextCanvas c)
public DTextCanvas getCanvas()
public void clearRegions()
public void requestFocus()
public void setAntialias(boolean b)
public void repaint()
public int getWidth()
public int getHeight()
public void setChangeNotifiable(ChangeNotifiable cn)
public void notifyChange(java.lang.Object obj)
public void prePaintRegions(java.awt.Graphics2D g)
protected void addLengthenedRegion(int[] cachedPosition, java.lang.Object b)
protected void addClickRegion(int[] xywh, java.lang.Object b, java.lang.String s)
protected void addDragRegion(int[] xywh, java.lang.Object b, java.lang.String s)
protected void addDropRegion(int[] xywh, java.lang.Object b, java.lang.String s)
protected void addDragOrDropRegion(int[] xywh, java.lang.Object b, java.lang.String s)
protected void addRegion(int x, int y, int w, int h, java.lang.Object obj, java.lang.String s)
protected void addRegion(int x, int y, int w, int h, java.lang.Object obj, java.lang.String s, int ity)
public Region getDragOverRegion(int x, int y)
public Region getDragOverRegion()
public void dropOn(java.lang.Object src, Region target)
public void regionClicked(Region reg)
regionClicked
in interface RegionListener
boolean hasFocus()
public void focusGained(java.awt.event.FocusEvent e)
focusGained
in interface java.awt.event.FocusListener
public void focusLost(java.awt.event.FocusEvent e)
focusLost
in interface java.awt.event.FocusListener
public Region getHoverRegion()
public void unecho(Region reg)
public void dropGeneral(java.lang.Object dropee)
public int getFullTextHeight()
Copyright © 2013. All Rights Reserved.