code
stringlengths
10
174k
nl
stringlengths
3
129k
final public int lastIndexOf(final MutableString pattern){ return lastIndexOf(pattern,length()); }
Returns the index of the last occurrence of the specified mutable string.
public void addCreds(Credentials creds) throws IOException, Asn1Exception { creds.cname.writePrincipal(this); creds.sname.writePrincipal(this); creds.key.writeKey(this); write32((int)(creds.authtime.getTime() / 1000)); if (creds.starttime != null) write32((int)(creds.starttime.getTime() / 1000)); else wr...
Writes a credentials in FCC format to this cache output stream.
public void onBindViewHolder(PreferenceViewHolder holder){ if (!constraintsMet()) { final TextView summaryView=(TextView)holder.findViewById(android.R.id.summary); if (summaryView != null) { summaryView.setText(mConstraintViolationSummary); summaryView.setVisibility(View.VISIBLE); } } }
Override the summary with any constraint violation messages.
public VaultToken initializeVault(){ int createKeys=2; int requiredKeys=2; VaultInitializationResponse initialized=vaultOperations.opsForSys().initialize(VaultInitializationRequest.create(createKeys,requiredKeys)); for (int i=0; i < requiredKeys; i++) { VaultUnsealStatus unsealStatus=vaultOperations.opsForS...
Initialize Vault and unseal the vault.
public SoftValueHashMap(int initialCapacity,float loadFactor){ hash=new HashMap(initialCapacity,loadFactor); }
Constructs a new, empty <code>WeakHashMap</code> with the given initial capacity and the given load factor.
private boolean allowNotificationEmission(ObjectName name,TargetedNotification tn){ try { if (checkNotificationEmission) { checkMBeanPermission(name,"addNotificationListener"); } if (notificationAccessController != null) { notificationAccessController.fetchNotification(connectionId,name,tn.get...
Check if the caller has the right to get the following notifications.
public void start(final TraceList trace,final Set<BreakpointAddress> relocatedAddresses,final int maximumHits){ Preconditions.checkNotNull(relocatedAddresses,"IE00762: Address list can not be null"); Preconditions.checkArgument(!relocatedAddresses.isEmpty(),"IE00787: Address list can not be empty"); for ( final ...
Starts an event trace.
protected static Object object(int element){ return new Integer(element); }
Transforms an element of a primitive data type to an object.
@NotNull public PsiQuery siblings(@NotNull final Class<? extends PsiNamedElement> clazz,@NotNull final String name){ final List<PsiElement> result=new ArrayList<PsiElement>(); for ( final PsiElement element : myPsiElements) { final PsiElement parent=element.getParent(); for ( final PsiNamedElement named...
Filter siblings by name and class
public String pref(){ if (chars[0] != 0) { return new String(chars,1,chars[0] - 1); } return ""; }
Creates a prefix string from qualified name.
public static void playSoundBuffer(byte[] wavData){ float sampleRate=11200.0f; int sampleSizeInBits=8; int channels=1; boolean signed=(sampleSizeInBits > 8); boolean bigEndian=true; AudioFormat format=new AudioFormat(sampleRate,sampleSizeInBits,channels,signed,bigEndian); SourceDataLine line; DataLine.I...
Play a sound from a buffer
public Array createArray(){ ArrayImpl array=new ArrayImpl(); return array; }
<!-- begin-user-doc --> <!-- end-user-doc -->
public ToStringBuilder append(final String fieldName,final short[] array){ style.append(buffer,fieldName,array,null); return this; }
<p>Append to the <code>toString</code> a <code>short</code> array.</p>
public static void sendChatPacket(Player player,String json) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException, ClassNotFoundException, InstantiationException, NoSuchFieldException { Object craftPlayer=Class.forName(PackageType.CRAFTBUKKIT + ".entity.CraftPlayer").cast(player); Object ...
Send the chat packet (hover and clickable messages).
public void test_ConstructorLjava_io_FileI() throws IOException { zfile.close(); File file=new File(tempFileName); ZipFile zip=new ZipFile(file,ZipFile.OPEN_DELETE | ZipFile.OPEN_READ); zip.close(); assertTrue("Zip should not exist",!file.exists()); file=new File(tempFileName); file.delete(); try { ...
java.util.zip.ZipFile#ZipFile(java.io.File, int)
static boolean isFlagSet(short flags,short flag){ return (flags & flag) == flag; }
Check whether particular flag is set.
public void alignItemsVertically(){ alignItemsVertically(kDefaultPadding); }
align items vertically
public void showResultsDialog(final boolean visible){ if (m_dialog != null) { m_dialog.setVisible(visible); } }
Shows or hides the results dialog.
public JScrollPane(){ this(null,VERTICAL_SCROLLBAR_AS_NEEDED,HORIZONTAL_SCROLLBAR_AS_NEEDED); }
Creates an empty (no viewport view) <code>JScrollPane</code> where both horizontal and vertical scrollbars appear when needed.
static int difference(StringEncoder encoder,String s1,String s2) throws EncoderException { return differenceEncoded(encoder.encode(s1),encoder.encode(s2)); }
Encodes the Strings and returns the number of characters in the two encoded Strings that are the same. <ul> <li>For Soundex, this return value ranges from 0 through 4: 0 indicates little or no similarity, and 4 indicates strong similarity or identical values.</li> <li>For refined Soundex, the return value can be greate...
public PTBLexer(Reader r,boolean invertable,boolean tokenizeCRs){ this(r); tokenFactory=new FeatureLabelTokenFactory(); this.invertable=invertable; this.tokenizeCRs=tokenizeCRs; }
Constructs a new PTBLexer which produces FeatureLabels.
public boolean addAll(int index,Collection<? extends E> c){ Object[] cs=c.toArray(); final ReentrantLock lock=this.lock; lock.lock(); try { Object[] elements=getArray(); int len=elements.length; if (index > len || index < 0) throw new IndexOutOfBoundsException("Index: " + index + ", Size: "+ len...
Inserts all of the elements in the specified collection into this list, starting at the specified position. Shifts the element currently at that position (if any) and any subsequent elements to the right (increases their indices). The new elements will appear in this list in the order that they are returned by the sp...
public static boolean isEmpty(String s){ return (s == null) || s.length() == 0; }
Check whether string s is empty.
public RequestHandle head(Context context,String url,ResponseHandlerInterface responseHandler){ return head(context,url,null,responseHandler); }
Perform a HTTP HEAD request without any parameters and track the Android Context which initiated the request.
@Override public String toString(){ if (eIsProxy()) return super.toString(); StringBuffer result=new StringBuffer(super.toString()); result.append(" (inlineComment_1: "); result.append(inlineComment_1); result.append(')'); return result.toString(); }
<!-- begin-user-doc --> <!-- end-user-doc -->
@Override public Vertex parseVariable(TextStream stream,Map<String,Map<String,Vertex>> elements,boolean debug,Network network){ stream.nextWord(); Vertex variable=parseElementName(Primitive.VARIABLE,stream,elements,debug,network); stream.skipWhitespace(); ensureNext('{',stream); stream.skipWhitespace(); whi...
Parse the variable.
public RestApiClient(String url,int port,AuthenticationToken authenticationToken){ if (!url.startsWith("http")) { url="http://" + url; } restClient=new RestClientBuilder(url + ":" + port).authenticationToken(authenticationToken).connectionTimeout(5000).build(); }
Instantiates a new rest api client.
@Override public int compareTo(Vertex o){ if (this.x > o.x) return 1; if (this.x < o.x) return -1; if (this.y > o.y) return 1; if (this.y < o.y) return -1; if (this.z > o.z) return 1; if (this.z < o.z) return -1; return 0; }
Comparator that sorts vertices first along the X, then Y and finally Z axis.
public ScheduledExecutorService eventLoop(){ return eventLoop; }
Returns the (singlethreaded) EventLoop on which this router is running.<br> This is required by other Netty ChannelHandlers that want to forward messages to the router.
private void checkConfiguration(){ if (configuration == null) { throw new IllegalStateException(ERROR_NOT_INIT); } }
Checks if ImageLoader's configuration was initialized
protected void drawCubic(Canvas c,LineDataSet dataSet,List<Entry> entries){ Transformer trans=mChart.getTransformer(dataSet.getAxisDependency()); Entry entryFrom=dataSet.getEntryForXIndex(mMinX); Entry entryTo=dataSet.getEntryForXIndex(mMaxX); int diff=(entryFrom == entryTo) ? 1 : 0; int minx=Math.max(dataSet...
Draws a cubic line.
public Editor edit() throws IOException { return DiskLruCache.this.edit(key,sequenceNumber); }
Returns an editor for this snapshot's entry, or null if either the entry has changed since this snapshot was created or if another edit is in progress.
public static int hashCode(float[] field){ return field == null || field.length == 0 ? 0 : Arrays.hashCode(field); }
Computes the hash code of a repeated float field. Null-value and 0-length fields have the same hash code.
@Override public boolean isActive(){ return amIActive; }
Used by the Whitebox GUI to tell if this plugin is still running.
public List fetchRowsByIdRelacion(String idRelacion){ return fetchRowsByIdRelacion(idRelacion,TipoUInstalacion.ALL.getIdentificador()); }
Obtiene las unidades de instalacion pertenecientes a una relacion de entrega
@Override public synchronized boolean add(E object){ if (elementCount == elementData.length) { growByOne(); } elementData[elementCount++]=object; modCount++; return true; }
Adds the specified object at the end of this vector.
public Builder<I,O> asBuilder(){ return new Builder<>(name,typeIn,typeOut,converter); }
Returns a builder of this object, which can be used to further restrict validation.
public GuildDeleteHandler(ImplDiscordAPI api){ super(api,true,"GUILD_DELETE"); }
Creates a new instance of this class.
public static <T>T notNull(final T argument,final String name){ if (argument == null) { throw new IllegalArgumentException(name + " should not be null!"); } return argument; }
Will throw IllegalArgumentException if provided object is null on runtime
public static double CalorieBurned(double activity,double timeHour){ return CalorieBurned(activity,weightKg,timeHour); }
weightKg = 77.0
private void updateContentDescription(Time time){ int flags=DateUtils.FORMAT_SHOW_TIME | DateUtils.FORMAT_24HOUR; String contentDescription=DateUtils.formatDateTime(this.getContext(),time.toMillis(false),flags); setContentDescription(contentDescription); }
Update content description.
private int findEndOfLabel(String literal){ return literal.lastIndexOf("\""); }
Finds the end of the label in a literal string.
private void handle302MovedTemporarily(SipTransactionContext ctx) throws PayloadException, NetworkException { if (sLogger.isActivated()) { sLogger.info("302 Moved Temporarily response received"); } SipResponse resp=ctx.getSipResponse(); ContactHeader contactHeader=(ContactHeader)resp.getStackMessage().getHe...
Handle 302 response
public SQLSyntaxErrorException(String reason,String sqlState){ super(reason,sqlState,0); }
Creates an SQLSyntaxErrorException object. The Reason string is set to the given reason string, the SQLState string is set to the given SQLState string and the Error Code is set to 0.
public final Graph search(){ return search(independenceTest.getVariables()); }
Runs PC starting with a fully connected graph over all of the variables in the domain of the independence test. See PC for caveats. The number of possible cycles and bidirected edges is far less with CPC than with PC.
@Override public void testFailure(Failure failure){ LoggingUtils.getEvoLogger().info("* Failure: " + failure.getMessage()); for ( StackTraceElement s : failure.getException().getStackTrace()) { LoggingUtils.getEvoLogger().info(" " + s.toString()); } this.testResult.setSuccessful(false); this.testResult...
Called when an atomic test fails
public void bindEntity(Class<?> cls){ Annotation annotation=getFirstAnnotation(cls,Arrays.asList(Include.class,Exclude.class)); Include include=annotation instanceof Include ? (Include)annotation : null; Exclude exclude=annotation instanceof Exclude ? (Exclude)annotation : null; if (exclude != null) { log.t...
Add given Entity bean to dictionary.
private void checkForModuleOrApplication(StandardDefs standardDefs,TypeAnalyzer typeAnalyzer,ClassInfo info,QName qName,Configuration configuration){ if (info != null) { if (info.implementsInterface(standardDefs.getModulesPackage(),StandardDefs.INTERFACE_IMODULE_NO_PACKAGE) || info.extendsClass(StandardDefs.CLASS...
Determine if the class is a module or an application.
private void initialize(){ this.setLayout(new BorderLayout()); this.setSize(645,321); this.add(getJSplitPane(),java.awt.BorderLayout.CENTER); }
This method initializes this
public double eulerMacheroniTerm(int N){ try { return -MathsUtils.digamma(1) + MathsUtils.digamma(N); } catch ( Exception e) { return 0; } }
Returns the value of the Euler-Mascheroni term. Public for debugging purposes
public static boolean matchesRange(ByteBuffer buffer,int start,byte[] pattern){ for (int i=0; i < pattern.length; ++i) { if (pattern[i] != buffer.get(start + i)) { return false; } } return true; }
Matches a pattern of bytes against the given buffer starting at the given offset.
private int nextChar() throws java.io.IOException { int zzInput; int zzAction; int zzCurrentPosL; int zzMarkedPosL; int zzEndReadL=zzEndRead; char[] zzBufferL=zzBuffer; char[] zzCMapL=ZZ_CMAP; int[] zzTransL=ZZ_TRANS; int[] zzRowMapL=ZZ_ROWMAP; int[] zzAttrL=ZZ_ATTRIBUTE; while (true) { zzMark...
Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.
public void drawBytes(byte data[],int offset,int length,int x,int y){ g.drawBytes(data,offset,length,x,y); }
Draws the text given by the specified byte array, using this graphics context's current font and color. The baseline of the first character is at position (<i>x</i>,&nbsp;<i>y</i>) in this graphics context's coordinate system.
public void append(PathIterator pi,boolean connect){ double[] vals=new double[6]; while (!pi.isDone()) { Arrays.fill(vals,0); int type=pi.currentSegment(vals); pi.next(); if (connect && (numVals != 0)) { if (type == PathIterator.SEG_MOVETO) { double x=vals[0]; double y=vals[1];...
Delegates to the enclosed <code>GeneralPath</code>.
public StringOwnTokenizer(String text,String nontokenDelims,String tokenDelims){ this(text,nontokenDelims,tokenDelims,false); }
Constructs a string tokenizer for the specified string. Both token and nontoken delimiters are specified. <p> The current position is set at the beginning of the string.
public static Matcher<Method> returns(final Matcher<? super Class<?>> returnType){ return new Returns(returnType); }
Returns a matcher which matches methods with matching return types.
public static void main(final String[] args){ DOMTestCase.doMain(setNamedItemNS02.class,args); }
Runs this test from the command line.
public Relationship mostConsciousRelationship(Primitive type){ return mostConsciousRelationship(this.network.createVertex(type)); }
Return the relationship related by the type, with the high consciousness level.
public HaltCommand(final int packetId){ super(DebugCommandType.CMD_HALT,packetId); }
Creates a halt command.
public static RegExpExpression notRegexp(String property,String regExExpression){ return new RegExpExpression(getPropExpr(property),new ConstantExpression(regExExpression),true); }
Regular expression negated (not regexp).
public void actionPerformed(AnActionEvent event){ triggerAction(null,SearchContext.buildFromDataContext(event.getDataContext())); }
Handles IDEA action event
public Switch(Context context,AttributeSet attrs,int defStyle){ super(context,attrs,defStyle); mTextPaint=new TextPaint(Paint.ANTI_ALIAS_FLAG); Resources res=getResources(); DisplayMetrics dm=res.getDisplayMetrics(); mTextPaint.density=dm.density; mThumbDrawable=res.getDrawable(R.drawable.switch_inner_holo_...
Construct a new Switch with a default style determined by the given theme attribute, overriding specific style attributes as requested.
public Set<IonValue> generateValues(){ switch (valueType) { case DECIMAL: return generateIonDecimals(); case FLOAT: return generateIonFloats(); case INT: return generateIonInts(); case SYMBOL: return generateIonSymbols(); case TIMESTAMP: return generateIonTimestamps(); default : fail("not supported: " + valueType...
Generate a Set of IonValues from the configuration properties that were set.
public void layoutGraph(ArrayList<Integer> nPosX,ArrayList<Integer> nPosY){ if (m_bNeedsUndoAction) { addUndoAction(new LayoutGraphAction(nPosX,nPosY)); } m_nPositionX=nPosX; m_nPositionY=nPosY; }
set positions of all nodes
public void loadArg(final int arg){ loadInsn(argumentTypes[arg],getArgIndex(arg)); }
Generates the instruction to load the given method argument on the stack.
@Override public void repaintUI(){ Frame[] frames=Frame.getFrames(); for ( Frame frame : frames) { repaintUI(frame); } }
Repaints all displayable window.
public boolean match(CharacterLiteral node,Object other){ if (!(other instanceof CharacterLiteral)) { return false; } CharacterLiteral o=(CharacterLiteral)other; return safeEquals(node.getEscapedValue(),o.getEscapedValue()); }
Returns whether the given node and the other object match. <p> The default implementation provided by this class tests whether the other object is a node of the same type with structurally isomorphic child subtrees. Subclasses may override this method as needed. </p>
public void removeDocumentFromCache(int n){ if (DTM.NULL == n) return; for (int i=m_sourceTree.size() - 1; i >= 0; --i) { SourceTree st=(SourceTree)m_sourceTree.elementAt(i); if (st != null && st.m_root == n) { m_sourceTree.removeElementAt(i); return; } } }
JJK: Support <?xalan:doc_cache_off?> kluge in ElemForEach. TODO: This function is highly dangerous. Cache management must be improved.
public void run(){ if (sLogger.isActivated()) { sLogger.debug("RTP Receiver processing is started"); } try { while (mDatagramConnection != null) { byte[] data=mDatagramConnection.receive(); if (data.length >= 12) { int payloadType=(byte)((data[1] & 0xff) & 0x7f); if (payloadTyp...
Background processing
public static void copy(InputStream in,boolean closeIn,OutputStream out,boolean closeOut) throws IOException { try { try { IOUtils.copy(in,out); } finally { if (closeIn) IOUtils.closeQuietly(in); } } finally { if (closeOut) IOUtils.closeQuietly(out); } }
Copy an InputStream to an OutputStream, optionally closing either the input or the output.
public InterruptedIOException(java.lang.String s){ super(s); }
Constructs an InterruptedIOException with the specified detail message. The string s can be retrieved later by the method of class java.lang.Throwable. s - the detail message.
public BinaryProperty(File file) throws IOException { this.data=new Gobble(file).asByteArray(); }
Creates a new binary property.
@Override public void ready(){ rerollInitiativeB.setEnabled(false); butDone.setEnabled(false); clientgui.getClient().sendDone(true); }
Sets you as ready and disables the ready button.
protected void onOffline(){ if (offlineMenuItem != null) { offlineMenuItem.setVisible(true); } logger.debug("You are now offline"); }
Sub-classes may override this method to handle disconnected state.
@Override public String toString(){ JSONObject jsonResult=new JSONObject(); try { jsonResult.put(PATH,"__path"); jsonResult.put(METHOD,this.mMethod); if (!mHeaderParams.isEmpty()) { JSONObject metaJson=new JSONObject(); for ( String headerKey : mHeaderParams.keySet()) { metaJson...
{ "nonce": 10086, "path": "/v1/device/", "method": "GET", "meta": { "Authorization": "token 000..." }, "get": {"a"=1,"b"=2}, "post": {"commandKey":"commandValue"}, }\r\n
@Override public boolean isActive(){ return amIActive; }
Used by the Whitebox GUI to tell if this plugin is still running.
public Status acknowledgeMessageArrival(String clientHandle,String id){ if (messageStore.discardArrived(clientHandle,id)) { return Status.OK; } else { return Status.ERROR; } }
Called by the Activity when a message has been passed back to the application
private void writeAttribute(java.lang.String namespace,java.lang.String attName,java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException { if (namespace.equals("")) { xmlWriter.writeAttribute(attName,attValue); } else { registerPrefix(xmlWriter,namesp...
Util method to write an attribute without the ns prefix
private static double calculateFallingDamage(double odds,Entity ent){ double dmg=odds; dmg*=1.0 - (Compute.oddsAbove(ent.getBasePilotingRoll().getValue(),ent.getCrew().getOptions().booleanOption(OptionsConstants.PILOT_APTITUDE_PILOTING)) / 100.0); dmg*=ent.getWeight() * 0.1; return dmg; }
Calculates the Falling damage after a successful To-Hit.
public final RowSet merge(final RowSet c) throws SpaceExceededException { assert c != null; return mergeEnum(this,c); }
merge this row collection with another row collection. The resulting collection is sorted and does not contain any doubles, which are also removed during the merge. The new collection may be a copy of one of the old one, or can be an alteration of one of the input collections After this merge, none of the input collect...
public Object clone(){ IVector clone=null; try { clone=(IVector)super.clone(); } catch ( Exception e) { System.err.println("Error cloning " + getClass().getName() + ":"); e.printStackTrace(); System.exit(1); } clone.vector=(int[])vector.clone(); return clone; }
Returns a deep clone of this vector.
public static int dpToPx(float dp,Resources resources){ float px=TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,dp,resources.getDisplayMetrics()); return (int)px; }
Convert Dp to Pixel
private boolean isNameValid(ProjectTypeDef type){ boolean valid=true; if (type.getId() == null || type.getId().isEmpty() || NAME_PATTERN.matcher(type.getId()).find()) { LOG.error("Could not register Project Type ID is null or invalid (only Alphanumeric, dash, point and underscore allowed): " + type.getClass().g...
Checks if incoming Project Type definition has valid ID (Pattern.compile("[^a-zA-Z0-9-_.]") and display name (should not be null or empty)
@Override public void run(){ amIActive=true; boolean image1Bool=false; boolean image2Bool=false; double constant1=0; double constant2=0; if (args.length < 3) { showFeedback("Plugin parameters have not been set properly."); return; } String inputHeader1=args[0]; File file=new File(inputHeader1)...
Used to execute this plugin tool.
public static double P_PrecisionMicro(int Y[][],int Ypred[][]){ return P_Precision(MatrixUtils.flatten(Y),MatrixUtils.flatten(Ypred)); }
P_Precision - (retrieved AND relevant) / retrieved
public static double distance(double x1,double y1,double x2,double y2){ return Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)); }
Compute the distance between two points (x1, y1) and (x2, y2)
public AnnotationVisitor visitTypeAnnotation(int typeRef,TypePath typePath,String desc,boolean visible){ if (api < Opcodes.ASM5) { throw new RuntimeException(); } if (mv != null) { return mv.visitTypeAnnotation(typeRef,typePath,desc,visible); } return null; }
Visits an annotation on a type in the method signature.
private void updateProgress(int progress){ if (myHost != null && progress != previousProgress) { myHost.updateProgress(progress); } previousProgress=progress; }
Used to communicate a progress update between a plugin tool and the main Whitebox user interface.
public Builder config(Bitmap.Config config){ this.config=config; return this; }
Decode the image using the specified config.
public boolean isFirstNameOnly(){ Object oo=get_Value(COLUMNNAME_IsFirstNameOnly); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; }
Get First name only.
protected GenericPermsImpl(){ _perms=new PermsImpl(); }
Construye un objeto de la clase.
public final boolean sendEmptyMessage(int what){ return mExec.sendEmptyMessage(what); }
Sends a Message containing only the what value.
private void loadProperties(Class c,String parsersFile,boolean verbose,boolean parserWarning,boolean canReplace) throws IOException { if (verbose) { if (parsersFile.equalsIgnoreCase(RELEASE + PARSER_PROPERTIES_SUFFIX)) { System.out.println("\nAlways loading " + parsersFile + ":"); } else { System...
Load the parser for *.properties file
public T peek(int depth){ if (depth >= size) throw new NoSuchElementException(); else { Node<T> curr=top; while (depth-- > 0) curr=curr.next; return curr.data; } }
<p> Take a look at the element <code>depth</code> levels deep beneath the top element (which is at depth 0). This requires O(depth) steps. </p>
public void destroy(){ super.destroy(); }
Destruction of the servlet. <br>
private static void createImage(final Shell shell,final Image image){ final Label labelImage=new Label(shell,SWT.NONE); final GridData gdImage=new GridData(GridData.CENTER,GridData.BEGINNING,false,true); gdImage.horizontalIndent=10; labelImage.setLayoutData(gdImage); if (image == null) { final Image temp=...
Creates the image part of the window
public State(PlotRenderingInfo info){ super(info); }
Creates a new state instance.
public static Integer appendGlobalEdgeComment(final AbstractSQLProvider provider,final INaviEdge edge,final String commentText,final Integer userId) throws CouldntSaveDataException { Preconditions.checkNotNull(provider,"IE00482: provider argument can not be null"); Preconditions.checkNotNull(edge,"IE00483: edge arg...
Appends a global edge comment to the list of global edge comments associated with this edge.
private JSONWriter append(String string) throws JSONException { if (string == null) { throw new JSONException("Null pointer"); } if (this.mode == 'o' || this.mode == 'a') { try { if (this.comma && this.mode == 'a') { this.writer.write(','); } this.writer.write(string); } cat...
Append a value.
public static float[] RGBtoHSL(int r,int g,int b){ return RGBtoHSL(r,g,b,null); }
<p>Returns the HSL (Hue/Saturation/Luminance) equivalent of a given RGB color. All three HSL components are between 0.0 and 1.0.</p>