public class IlvPaletteSymbol extends IlvPaletteCategoryChild implements IlvPaletteObject
Modifier and Type | Field and Description |
---|---|
static int |
SMALLICON_SIZE
size of small icon representing the symbol
|
Constructor and Description |
---|
IlvPaletteSymbol(String id)
Creates a symbol and sets its ID.
|
Modifier and Type | Method and Description |
---|---|
void |
addParameter(IlvPaletteSymbolParameter parameter)
Adds a new additional parameter to the list.
|
void |
addResource(String resource)
Adds, in a list, an external resources used by the symbol and referenced
into its CSS file.
|
void |
addResource(URL resource)
Adds, in a list, an external resources used by the symbol and referenced
into its CSS file.
|
protected IlvPaletteBaseObject |
copy(IlvPaletteBaseObject owner)
Makes a copy of this object.
|
String |
createClassDeclarationValue()
Returns the string to create this symbol in CSS class declaration.
|
protected IlvPaletteBaseObject |
createNew()
Allocates a new object of the same type.
|
String |
getClassName()
Gets class name of the symbol as described into its css file
|
String |
getCSSResourceName()
Returns the resource access string to the symbol CSS.
|
URL |
getCSSURL()
Returns the URL to the CSS description file of this symbol.
|
static IlvPaletteSymbolParameter[] |
getGraphicParameters()
Returns an array of predefined graphic parameters available for any symbol
|
ImageIcon |
getIcon()
Returns the large size icon representing the symbol.
|
String |
getIconResourceName()
Returns the resource access string to the icon of the symbol.
|
URL |
getIconURL()
Gets the string representation of the URL to the icon
|
IlvPaletteSymbolParameter |
getParameter(int index)
Returns the parameter at the specified position in the parameter list.
|
IlvPaletteSymbolParameter |
getParameter(String id)
Returns the first parameter of the list having the specified id.
|
int |
getParameterCount()
Returns the number of additional parameters added to this symbol.
|
Object |
getPropertyDescriptors()
Returns an object describing the property descriptors of the symbol.
|
Enumeration |
getResources()
Gets enumeration of symbol's external resources.
|
URL |
getResourceURL(String resource)
Converts the resource to an URL.
|
ImageIcon |
getSmallIcon()
Returns the small size icon representing the symbol.
|
String |
getVersion()
Returns the version number of this symbol
|
void |
removeAllParameters()
Removes all additional parameters
|
void |
removeAllResources()
Clears the list of symbol's external resources.
|
void |
removeParameter(IlvPaletteSymbolParameter parameter)
Removes specified parameter from the list.
|
void |
setClassName(String className)
Set symbol's class name
|
void |
setCSSResourceName(String s)
Sets the resource access string of the CSS file of the symbol.
|
void |
setCSSURL(URL css)
Sets the URL to access to the CSSs description file, and updates resource
access string returned by
getCSSResourceName() |
void |
setIconResourceName(String s)
Set the resource access string of the symbol's icon.
|
void |
setIconURL(URL iconurl)
Sets the url to the icon file.
|
void |
setPropertyDescriptors(Object descriptors)
Sets an object describing the property descriptors of the symbol.
|
void |
setVersion(String version)
Sets the version number of this symbol.
|
copy, getPalette, getParent, toString
getBaseObjectOwner, getDefaultLocale, getFullID, getID, getLongDescription, getLongDescription, getName, getName, getOwner, getShortDescription, getShortDescription, setDefaultLocale, setID, setLongDescription, setLongDescription, setName, setName, setOwner, setShortDescription, setShortDescription
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
copy, getID, getPalette, getParent
public static final int SMALLICON_SIZE
public IlvPaletteSymbol(String id)
id
- The identifier of the symbol.public ImageIcon getIcon()
getSmallIcon()
public ImageIcon getSmallIcon()
getIcon()
public URL getCSSURL()
public void setCSSURL(URL css)
getCSSResourceName()
css
- The new URL to the CSS file.public void setCSSResourceName(String s)
getCSSURL()
)s
- The new resource access stringpublic String getCSSResourceName()
protected IlvPaletteBaseObject copy(IlvPaletteBaseObject owner)
copy
in class IlvPaletteCategoryChild
owner
- The desired owner of the copy.protected IlvPaletteBaseObject createNew()
createNew
in class IlvPaletteBaseObject
public String getClassName()
public void setClassName(String className)
className
- the new class namepublic String createClassDeclarationValue()
node { class: symbolspec; ... }the symbolspec is the string generated by this method.
public URL getIconURL()
public void setIconURL(URL iconurl)
getIconResourceName()
iconurl
- url of the iconpublic void setIconResourceName(String s)
getIconURL()
)s
- the new resource access stringpublic String getIconResourceName()
public void addParameter(IlvPaletteSymbolParameter parameter)
parameter
- the new parameterpublic void removeParameter(IlvPaletteSymbolParameter parameter)
parameter
- the parameter to be removedpublic int getParameterCount()
public IlvPaletteSymbolParameter getParameter(int index)
index
- index of the parameter to returnpublic IlvPaletteSymbolParameter getParameter(String id)
id
- the identifier of the parameter.IlvPaletteBaseObject.getID()
public void removeAllParameters()
public static IlvPaletteSymbolParameter[] getGraphicParameters()
public void addResource(URL resource)
resource
- the path of the resourcepublic void addResource(String resource)
resource
- the path of the resourcepublic Enumeration getResources()
getResourceURL(java.lang.String)
.public URL getResourceURL(String resource)
getResources()
public void removeAllResources()
public Object getPropertyDescriptors()
public void setPropertyDescriptors(Object descriptors)
public String getVersion()
public void setVersion(String version)
version
- The new version number© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.