public abstract class ResourceDescription extends ObjectDescription
Modifier and Type | Field and Description |
---|---|
protected URL |
src
URL identifying this resource.
|
protected double |
vx |
protected double |
vy |
id, parentRegion, sensitive, takesTo, takesToType, zindex
Constructor and Description |
---|
ResourceDescription() |
Modifier and Type | Method and Description |
---|---|
boolean |
getFeedbackWhenFetching()
Get whether some visual feedback is given in the interface while loading the resource.
|
URL |
getURL()
Get the URL of this resource.
|
double |
getX()
Get x-coordinate of object in virtual space.
|
double |
getY()
Get y-coordinate of object in virtual space.
|
boolean |
isInJAR() |
boolean |
isLocal()
Returns true if the resource is on the computer running this application.
|
void |
moveTo(double x,
double y) |
static void |
setDefaultFeedbackWhenFetching(boolean b)
Set whether, by default, some visual feedback is given in the interface while loading the resource.
|
void |
setFeedbackWhenFetching(boolean b)
Set whether some visual feedback is given in the interface while loading the resource.
|
void |
setProgressBarBackgroundColor(Color c) |
void |
setProgressBarColor(Color c) |
static void |
setProgressBarDefaultColors(Color bkg,
Color bar) |
void |
setURL(URL url)
Set URL of this resource.
|
coordInside, createObject, destroyObject, getGlyph, getID, getParentRegion, getType, getZindex, isSensitive, setParentRegion, setSensitive, setTakesTo, setZindex, takesTo, takesToType
protected URL src
protected double vx
protected double vy
public double getX()
ObjectDescription
getX
in class ObjectDescription
public double getY()
ObjectDescription
getY
in class ObjectDescription
public void moveTo(double x, double y)
moveTo
in class ObjectDescription
public void setURL(URL url)
public URL getURL()
public boolean isLocal()
public boolean isInJAR()
public static void setDefaultFeedbackWhenFetching(boolean b)
public void setFeedbackWhenFetching(boolean b)
public boolean getFeedbackWhenFetching()
public void setProgressBarBackgroundColor(Color c)
public void setProgressBarColor(Color c)
Copyright © 2000-2002 Xerox Corporation. All Rights Reserved
Copyright © 2003 World Wide Web Consortium. All Rights Reserved
Copyright © 2004-2015 INRIA. All Rights Reserved
Licensed under the GNU LGPL. For full terms see the file COPYING.