|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.das2.graph.DasDevicePosition
public abstract class DasDevicePosition
Field Summary | |
---|---|
protected DasCanvas |
canvas
|
protected javax.swing.event.EventListenerList |
listenerList
|
protected DasDevicePosition |
parent
|
Constructor Summary | |
---|---|
protected |
DasDevicePosition(DasCanvas canvas,
boolean isWidth,
DasDevicePosition parent,
double minimum,
double maximum,
double emMinimum,
double emMaximum,
int ptMinimum,
int ptMaximum)
|
|
DasDevicePosition(DasCanvas parent,
double minimum,
double maximum,
boolean width)
|
Method Summary | |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
|
void |
addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
|
void |
addpwUpdateListener(DasUpdateListener l)
|
boolean |
contains(int x)
returns true if ( getDMinimum() <= x ) && ( x <= getDMaximum() ); |
protected void |
firePropertyChange(java.lang.String propertyName,
boolean oldValue,
boolean newValue)
|
protected void |
firePropertyChange(java.lang.String propertyName,
double oldValue,
double newValue)
|
protected void |
firePropertyChange(java.lang.String propertyName,
float oldValue,
float newValue)
|
protected void |
firePropertyChange(java.lang.String propertyName,
int oldValue,
int newValue)
|
protected void |
firePropertyChange(java.lang.String propertyName,
long oldValue,
long newValue)
|
protected void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
|
protected void |
fireUpdate()
|
static java.lang.String |
formatLayoutStr(DasDevicePosition pos,
boolean min)
|
protected DasCanvas |
getCanvas()
|
java.lang.String |
getDasName()
|
protected int |
getDeviceSize()
|
int |
getDMaximum()
returns the pixel position of the maximum of the Row/Column. |
int |
getDMiddle()
returns pixel position (device position) of the the middle of the row or column |
int |
getDMinimum()
returns the pixel position of the minimum of the Row/Column. |
double |
getEmMaximum()
|
double |
getEmMinimum()
return the em offset that controls the position of the top/left boundry. |
int |
getEmSize()
returns the em size for the canvas. |
double |
getMaximum()
|
double |
getMinimum()
return the normal position control of the top/left. |
DasCanvas |
getParent()
|
DasDevicePosition |
getParentDevicePosition()
|
int |
getPtMaximum()
return the points offset that controls the position of the bottom/right boundry. |
int |
getPtMinimum()
return the points offset that controls the position of the top/left boundry. |
boolean |
isValueIsAdjusting()
|
protected MutatorLock |
mutatorLock()
|
static double[] |
parseFormatStr(java.lang.String s)
parse position strings like "100%-5em+4pt" into npos, emoffset, pt_offset. |
static void |
parseLayoutStr(DasDevicePosition pos,
java.lang.String spec)
|
void |
removePropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
|
void |
removepwUpdateListener(DasUpdateListener l)
|
void |
setDasName(java.lang.String name)
|
void |
setDMaximum(int maximum)
set the new pixel position of the bottom/right boundry. |
void |
setDMinimum(int minimum)
set the new pixel position of the top/left boundry. |
void |
setDPosition(int minimum,
int maximum)
|
void |
setEmMaximum(double emMaximum)
|
void |
setEmMinimum(double emMinimum)
|
void |
setMaximum(double maximum)
|
void |
setMinimum(double minimum)
|
void |
setParent(DasCanvas parent)
|
void |
setPtMaximum(int ptMaximum)
|
void |
setPtMinimum(int ptMinimum)
|
static java.awt.Rectangle |
toRectangle(DasRow row,
DasColumn column)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected transient DasCanvas canvas
protected transient DasDevicePosition parent
protected javax.swing.event.EventListenerList listenerList
Constructor Detail |
---|
protected DasDevicePosition(DasCanvas canvas, boolean isWidth, DasDevicePosition parent, double minimum, double maximum, double emMinimum, double emMaximum, int ptMinimum, int ptMaximum)
public DasDevicePosition(DasCanvas parent, double minimum, double maximum, boolean width)
Method Detail |
---|
public static double[] parseFormatStr(java.lang.String s) throws java.text.ParseException
java.text.ParseException
public static void parseLayoutStr(DasDevicePosition pos, java.lang.String spec) throws java.text.ParseException
java.text.ParseException
public static java.lang.String formatLayoutStr(DasDevicePosition pos, boolean min)
protected DasCanvas getCanvas()
public void setDasName(java.lang.String name) throws DasNameException
DasNameException
public java.lang.String getDasName()
public int getEmSize()
public int getDMinimum()
public int getDMaximum()
public double getMinimum()
public double getMaximum()
public void setDPosition(int minimum, int maximum)
public void setMaximum(double maximum)
public void setDMaximum(int maximum)
maximum
- public void setMinimum(double minimum)
public void setDMinimum(int minimum)
minimum
- public DasCanvas getParent()
public void setParent(DasCanvas parent)
protected MutatorLock mutatorLock()
public void addpwUpdateListener(DasUpdateListener l)
public void removepwUpdateListener(DasUpdateListener l)
protected void fireUpdate()
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
public void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
public void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
protected void firePropertyChange(java.lang.String propertyName, boolean oldValue, boolean newValue)
protected void firePropertyChange(java.lang.String propertyName, int oldValue, int newValue)
protected void firePropertyChange(java.lang.String propertyName, long oldValue, long newValue)
protected void firePropertyChange(java.lang.String propertyName, float oldValue, float newValue)
protected void firePropertyChange(java.lang.String propertyName, double oldValue, double newValue)
protected void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
protected int getDeviceSize()
public static java.awt.Rectangle toRectangle(DasRow row, DasColumn column)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean contains(int x)
x
- the pixel position
public int getDMiddle()
public double getEmMinimum()
public void setEmMinimum(double emMinimum)
public double getEmMaximum()
public void setEmMaximum(double emMaximum)
public int getPtMinimum()
public void setPtMinimum(int ptMinimum)
public int getPtMaximum()
public void setPtMaximum(int ptMaximum)
public DasDevicePosition getParentDevicePosition()
public boolean isValueIsAdjusting()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |