📄 classobj.java
字号:
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version: 1.3.21 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */package edu.umn.gis.mapscript;public class classObj { private long swigCPtr; protected boolean swigCMemOwn; protected classObj(long cPtr, boolean cMemoryOwn) { swigCMemOwn = cMemoryOwn; swigCPtr = cPtr; } protected classObj() { this(0, false); } protected void finalize() { delete(); } public void delete() { if(swigCPtr != 0 && swigCMemOwn) { swigCMemOwn = false; mapscriptJNI.delete_classObj(swigCPtr); } swigCPtr = 0; } protected static long getCPtr(classObj obj) { return (obj == null) ? 0 : obj.swigCPtr; } public void setStatus(int status) { mapscriptJNI.set_classObj_status(swigCPtr, status); } public int getStatus() { return mapscriptJNI.get_classObj_status(swigCPtr); } public void setNumstyles(int numstyles) { mapscriptJNI.set_classObj_numstyles(swigCPtr, numstyles); } public int getNumstyles() { return mapscriptJNI.get_classObj_numstyles(swigCPtr); } public void setLabel(labelObj label) { mapscriptJNI.set_classObj_label(swigCPtr, labelObj.getCPtr(label)); } public labelObj getLabel() { long cPtr = mapscriptJNI.get_classObj_label(swigCPtr); return (cPtr == 0) ? null : new labelObj(cPtr, false); } public void setName(String name) { mapscriptJNI.set_classObj_name(swigCPtr, name); } public String getName() { return mapscriptJNI.get_classObj_name(swigCPtr); } public void setTitle(String title) { mapscriptJNI.set_classObj_title(swigCPtr, title); } public String getTitle() { return mapscriptJNI.get_classObj_title(swigCPtr); } public void setTemplate(String template) { mapscriptJNI.set_classObj_template(swigCPtr, template); } public String getTemplate() { return mapscriptJNI.get_classObj_template(swigCPtr); } public void setType(int type) { mapscriptJNI.set_classObj_type(swigCPtr, type); } public int getType() { return mapscriptJNI.get_classObj_type(swigCPtr); } public void setMetadata(hashTableObj metadata) { mapscriptJNI.set_classObj_metadata(swigCPtr, hashTableObj.getCPtr(metadata)); } public hashTableObj getMetadata() { long cPtr = mapscriptJNI.get_classObj_metadata(swigCPtr); return (cPtr == 0) ? null : new hashTableObj(cPtr, false); } public void setMinscale(double minscale) { mapscriptJNI.set_classObj_minscale(swigCPtr, minscale); } public double getMinscale() { return mapscriptJNI.get_classObj_minscale(swigCPtr); } public void setMaxscale(double maxscale) { mapscriptJNI.set_classObj_maxscale(swigCPtr, maxscale); } public double getMaxscale() { return mapscriptJNI.get_classObj_maxscale(swigCPtr); } public void setLayer(layerObj layer) { mapscriptJNI.set_classObj_layer(swigCPtr, layerObj.getCPtr(layer)); } public layerObj getLayer() { long cPtr = mapscriptJNI.get_classObj_layer(swigCPtr); return (cPtr == 0) ? null : new layerObj(cPtr, false); } public void setDebug(int debug) { mapscriptJNI.set_classObj_debug(swigCPtr, debug); } public int getDebug() { return mapscriptJNI.get_classObj_debug(swigCPtr); } public void setKeyimage(String keyimage) { mapscriptJNI.set_classObj_keyimage(swigCPtr, keyimage); } public String getKeyimage() { return mapscriptJNI.get_classObj_keyimage(swigCPtr); } public classObj(layerObj layer) { this(mapscriptJNI.new_classObj(layerObj.getCPtr(layer)), true); } public classObj cloneClass() { long cPtr = mapscriptJNI.classObj_cloneClass(swigCPtr); return (cPtr == 0) ? null : new classObj(cPtr, true); } public int setExpression(String expression) { return mapscriptJNI.classObj_setExpression(swigCPtr, expression); } public String getExpressionString() { return mapscriptJNI.classObj_getExpressionString(swigCPtr); } public int setText(String text) { return mapscriptJNI.classObj_setText(swigCPtr, text); } public String getTextString() { return mapscriptJNI.classObj_getTextString(swigCPtr); } public String getMetaData(String name) { return mapscriptJNI.classObj_getMetaData(swigCPtr, name); } public int setMetaData(String name, String value) { return mapscriptJNI.classObj_setMetaData(swigCPtr, name, value); } public String getFirstMetaDataKey() { return mapscriptJNI.classObj_getFirstMetaDataKey(swigCPtr); } public String getNextMetaDataKey(String lastkey) { return mapscriptJNI.classObj_getNextMetaDataKey(swigCPtr, lastkey); } public int drawLegendIcon(mapObj map, layerObj layer, int width, int height, imageObj dstImage, int dstX, int dstY) { return mapscriptJNI.classObj_drawLegendIcon(swigCPtr, mapObj.getCPtr(map), layerObj.getCPtr(layer), width, height, imageObj.getCPtr(dstImage), dstX, dstY); } public imageObj createLegendIcon(mapObj map, layerObj layer, int width, int height) { long cPtr = mapscriptJNI.classObj_createLegendIcon(swigCPtr, mapObj.getCPtr(map), layerObj.getCPtr(layer), width, height); return (cPtr == 0) ? null : new imageObj(cPtr, true); } public styleObj getStyle(int i) { long cPtr = mapscriptJNI.classObj_getStyle(swigCPtr, i); return (cPtr == 0) ? null : new styleObj(cPtr, false); } public int insertStyle(styleObj style, int index) { return mapscriptJNI.classObj_insertStyle(swigCPtr, styleObj.getCPtr(style), index); } public styleObj removeStyle(int index) { long cPtr = mapscriptJNI.classObj_removeStyle(swigCPtr, index); return (cPtr == 0) ? null : new styleObj(cPtr, true); } public int moveStyleUp(int index) { return mapscriptJNI.classObj_moveStyleUp(swigCPtr, index); } public int moveStyleDown(int index) { return mapscriptJNI.classObj_moveStyleDown(swigCPtr, index); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -