📄 dasharray.java
字号:
/************************************************************************************************** ** ** $Id: DashArray.java,v 1.3 2004/04/13 22:22:29 crossley Exp $ ** ** $Source: /cvsroot/geoapi/src/org/opengis/go/display/style/DashArray.java,v $ ** ** Copyright (C) 2003 Open GIS Consortium, Inc. All Rights Reserved. http://www.opengis.org/Legal/ ** *************************************************************************************************/package org.opengis.go.display.style;/** * Indicates the various enumerations of drawing a pattern line. * An implementor can create a <code>DashArray</code> by passing * a float array in the constructor that would indicate the dash * pattern to be drawn. * * @author <A HREF="http://www.opengis.org">OpenGIS® consortium</A> * @version $Revision: 1.3 $, $Date: 2004/04/13 22:22:29 $ */public class DashArray extends LinePattern { //************************************************************************* // Static Fields //************************************************************************* public static final DashArray NONE = new DashArray("NONE", "No Dash Array", new float[0]); //************************************************************************* // Fields //************************************************************************* /** * The pattern. */ private float[] dashPattern; //************************************************************************* // Constructor //************************************************************************* /** * Construct an enumeration using the specified pattern. */ public DashArray(String name, String description, float[] pattern) { super(name, description); dashPattern = pattern; } //************************************************************************* // accessor //************************************************************************* /** * Returns the dash pattern. * * @revisit Should clone the array in order to protect the enum from change. */ public float[] getDashPattern() { return dashPattern; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -