本文整理了Java中org.geotools.resources.Utilities.getShortClassName()
方法的一些代码示例,展示了Utilities.getShortClassName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Utilities.getShortClassName()
方法的具体详情如下:
包路径:org.geotools.resources.Utilities
类名称:Utilities
方法名:getShortClassName
[英]Returns a short class name for the specified object. This method will omit the package name. For example, it will return "String" instead of "java.lang.String" for a String object.
[中]返回指定对象的短类名。此方法将省略包名。例如,对于字符串对象,它将返回“String”而不是“java.lang.String”。
代码示例来源:origin: org.geotools/gt2-coverage
/**
* Returns a string representation of this dimension.
*/
//@Override
public String toString() {
return Utilities.getShortClassName(this) + "[width=" + width + ",height=" + height +
",numBands=" + numBands + ']';
}
}
代码示例来源:origin: org.geotools/gt2-widgets-swing
/**
* Returns a character string representing this object.
*/
public String toString() {
return Utilities.getShortClassName(this) + '[' + Utilities.getShortClassName(logicalShape) + ']';
}
代码示例来源:origin: org.geotools/gt2-render
/**
* Returns a string representation of this style.
*/
public String toString() {
return Utilities.getShortClassName(this) + '[' + shape + ']';
}
}
代码示例来源:origin: org.geotools/gt2-render
/**
* Returns a string representation of this style.
*/
public String toString() {
return Utilities.getShortClassName(this) + '[' + contour + ']';
}
}
代码示例来源:origin: org.geotools/gt2-render
/**
* Returns a string representation of this style.
*/
public String toString() {
return Utilities.getShortClassName(this) + '[' + fill + ']';
}
}
代码示例来源:origin: org.geotools/gt2-render
/**
* Returns a string representation of this style.
*/
public String toString() {
return Utilities.getShortClassName(this) + "[\"" + label + "\"]";
}
代码示例来源:origin: org.geotools/gt2-metadata
/**
* Returns a string representation of this entry.
*/
public String toString() {
return Utilities.getShortClassName(this) + "[key=" + key + ", value=" + value + ']';
}
}
代码示例来源:origin: org.geotools/gt2-metadata
/**
* Returns a string representation for debugging purpose.
*/
public String toString() {
final StringBuffer buffer = new StringBuffer(Utilities.getShortClassName(this))
.append('[').append(Utilities.getShortClassName(format));
if (logger != null) {
buffer.append(", logger=").append(logger);
}
return buffer.append(']').toString();
}
}
代码示例来源:origin: org.geotools/gt2-metadata
/**
* Returns a string representation for debugging purpose.
*/
public String toString() {
final StringBuffer buffer = new StringBuffer(Utilities.getShortClassName(this))
.append('[').append(Utilities.getShortClassName(format));
if (logger != null) {
buffer.append(", logger=").append(logger);
}
return buffer.append(']').toString();
}
}
代码示例来源:origin: org.geotools/gt2-coverage
/**
* Returns a string reprsentation of this operation. The returned string is
* implementation dependent. It is usually provided for debugging purposes only.
*/
public String toString() {
return Utilities.getShortClassName(this) + '[' + getName() + ']';
}
}
代码示例来源:origin: org.geotools/gt2-coverageio
/**
* Returns a string representation of this sample converter.
* This is mostly for debugging purpose and may change in any future version.
*/
public String toString() {
return Utilities.getShortClassName(this) + "[offset=" + getOffset() + ']';
}
代码示例来源:origin: org.geotools/gt2-widgets-swing
/**
* Returns a string representation of this axis.
*/
public String toString() {
final StringBuffer buffer = new StringBuffer(Utilities.getShortClassName(this));
buffer.append("[\"");
buffer.append(graduation.getTitle(true));
buffer.append("\"]");
return buffer.toString();
}
代码示例来源:origin: org.geotools/gt2-widgets-swing
/**
* Implementation of public {@link #show} methods.
*/
private void showFrame(final Object image) {
final JFrame frame = new JFrame(Utilities.getShortClassName(this) + " - " + getName(image));
frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
frame.getContentPane().add(this);
frame.pack();
frame.setVisible(true);
}
代码示例来源:origin: org.geotools/gt2-metadata
/**
* Checks the type of the specified object. The default implementation ensure
* that the object is assignable to the type specified at construction time.
*
* @param element the object to check, or {@code null}.
* @throws IllegalArgumentException if the specified element is not of the expected type.
*/
protected void ensureValidType(final Object element) throws IllegalArgumentException {
if (element!=null && !type.isInstance(element)) {
throw new IllegalArgumentException(Errors.format(ErrorKeys.ILLEGAL_CLASS_$2,
Utilities.getShortClassName(element), Utilities.getShortName(type)));
}
}
代码示例来源:origin: org.geotools/gt2-coverageio
/**
* Retourne une chane de caractres reprsentant cet objet.
* Cette chane indiquera le nombre de lignes et de colonnes
* mmorises.
*/
public String toString() {
return Utilities.getShortClassName(this) +
'[' + getLineCount() + "\u00A0\u00D7\u00A0" + getColumnCount() + ']';
}
}
代码示例来源:origin: org.geotools/gt2-coverageio
/**
* Returns a string representation of this color model.
*/
//@Override
public String toString() {
return Utilities.getShortClassName(this) +
'[' + getMinValue(visibleBand) + ", " + getMaxValue(visibleBand) + ']';
}
}
代码示例来源:origin: org.geotools/gt2-coverage
/**
* Returns a string representation of this color model.
*/
public String toString() {
return Utilities.getShortClassName(this)+'['+getMinValue(band)+", "+getMaxValue(band)+']';
}
}
代码示例来源:origin: org.geotools/gt2-metadata
/**
* Formats a name for the specified factory.
*/
private static String format(final Factory factory) {
String name = Utilities.getShortClassName(factory);
if (factory instanceof AuthorityFactory) {
name = name + "[\"" + ((AuthorityFactory) factory).getAuthority().getTitle() + "\"]";
}
return name;
}
代码示例来源:origin: org.geotools/gt2-widgets-swing
/**
* Show the dialog box. This method is provided only as an easy
* way to test the dialog appearance from the command line.
*/
public static void main(final String[] args) {
final GradientKernelEditor editor = new GradientKernelEditor();
editor.addDefaultKernels();
editor.showDialog(null, Utilities.getShortClassName(editor));
}
}
代码示例来源:origin: org.geotools/gt2-widgets-swing
/**
* Show the dialog box. This method is provided only as an easy
* way to test the dialog appearance from the command line.
*/
public static void main(final String[] args) {
final KernelEditor editor = new KernelEditor();
editor.addDefaultKernels();
editor.showDialog(null, Utilities.getShortClassName(editor));
}
}
内容来源于网络,如有侵权,请联系作者删除!