idx
int64
0
165k
question
stringlengths
73
5.81k
target
stringlengths
5
918
6,100
public NYTCorpusDocument parseNYTCorpusDocumentFromFile ( File file , boolean validating ) { Document document = null ; if ( validating ) { document = loadValidating ( file ) ; } else { document = loadNonValidating ( file ) ; } return parseNYTCorpusDocumentFromDOMDocument ( file , document ) ; }
Parse an New York Times Document from a file .
6,101
private Document loadNonValidating ( InputStream is ) { Document document ; StringBuffer sb = new StringBuffer ( ) ; BufferedReader in = null ; try { in = new BufferedReader ( new InputStreamReader ( is , "UTF8" ) ) ; String line = null ; while ( ( line = in . readLine ( ) ) != null ) { sb . append ( line + "\n" ) ; } String xmlData = sb . toString ( ) ; xmlData = xmlData . replace ( "<!DOCTYPE nitf " + "SYSTEM \"http://www.nitf.org/" + "IPTC/NITF/3.3/specification/dtd/nitf-3-3.dtd\">" , "" ) ; document = parseStringToDOM ( xmlData , "UTF-8" ) ; return document ; } catch ( UnsupportedEncodingException e ) { e . printStackTrace ( ) ; System . out . println ( "Error loading inputstream." ) ; } catch ( FileNotFoundException e ) { e . printStackTrace ( ) ; System . out . println ( "Error loading file inputstream." ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; System . out . println ( "Error loading file inputstream." ) ; } finally { if ( in != null ) try { in . close ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } } return null ; }
Load a document without validating it . Since instructing the java . xml libraries to do this does not actually disable validation this method disables validation by removing the doctype declaration from the XML document before it is parsed .
6,102
private Document parseStringToDOM ( String s , String encoding ) { try { DocumentBuilderFactory factory = DocumentBuilderFactory . newInstance ( ) ; factory . setValidating ( false ) ; InputStream is = new ByteArrayInputStream ( s . getBytes ( encoding ) ) ; Document doc = factory . newDocumentBuilder ( ) . parse ( is ) ; return doc ; } catch ( SAXException e ) { e . printStackTrace ( ) ; System . out . println ( "Exception processing string." ) ; } catch ( ParserConfigurationException e ) { e . printStackTrace ( ) ; System . out . println ( "Exception processing string." ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; System . out . println ( "Exception processing string." ) ; } return null ; }
Parse a string to a DOM document .
6,103
private Document getDOMObject ( String filename , boolean validating ) throws SAXException , IOException , ParserConfigurationException { DocumentBuilderFactory factory = DocumentBuilderFactory . newInstance ( ) ; if ( ! validating ) { factory . setValidating ( validating ) ; factory . setSchema ( null ) ; factory . setNamespaceAware ( false ) ; } DocumentBuilder builder = factory . newDocumentBuilder ( ) ; Document doc = builder . parse ( new File ( filename ) ) ; return doc ; }
Parse a file containing an XML document into a DOM object .
6,104
@ SuppressWarnings ( "unchecked" ) public Class < ? extends T > getValueType ( ) { if ( this . object == null ) { return null ; } return ( Class < ? extends T > ) this . object . getClass ( ) ; }
Replies the type of the value .
6,105
public void add ( T newValue ) { if ( this . isSet ) { if ( ! this . isMultiple && newValue != this . object && ( newValue == null || ! newValue . equals ( this . object ) ) ) { this . isMultiple = true ; this . object = null ; } } else { this . object = newValue ; this . isSet = true ; this . isMultiple = false ; } }
Add the given value to the styored value .
6,106
public String commandsWritingDataTo ( File dataDirectory ) throws IOException { final Map < DatafileReference , File > refsToFiles = Maps . newHashMap ( ) ; for ( final DatafileReference datafileReference : datafileReferences ) { final File randomFile = File . createTempFile ( "plotBundle" , ".dat" , dataDirectory ) ; randomFile . deleteOnExit ( ) ; refsToFiles . put ( datafileReference , randomFile ) ; Files . asCharSink ( randomFile , Charsets . UTF_8 ) . write ( datafileReference . data ) ; } final StringBuilder ret = new StringBuilder ( ) ; for ( final Object commandComponent : commandComponents ) { if ( commandComponent instanceof String ) { ret . append ( commandComponent ) ; } else if ( commandComponent instanceof DatafileReference ) { final File file = refsToFiles . get ( commandComponent ) ; if ( file != null ) { ret . append ( file . getAbsolutePath ( ) ) ; } else { throw new RuntimeException ( "PlotBundle references an unknown data source" ) ; } } else { throw new RuntimeException ( "Unknown command component " + commandComponent ) ; } } return ret . toString ( ) ; }
Writes the plot data to the indicated directory and returns the GnuPlot commands for the plot as a string . These commands will reference the written data files .
6,107
public void setCodePage ( DBaseCodePage code ) { if ( this . columns != null ) { throw new IllegalStateException ( ) ; } if ( code != null ) { this . language = code ; } }
Replies the output language to use in the dBASE file .
6,108
@ SuppressWarnings ( "checkstyle:magicnumber" ) private void writeDBFDate ( Date date ) throws IOException { final SimpleDateFormat format = new SimpleDateFormat ( "yyyyMMdd" ) ; writeDBFString ( format . format ( date ) , 8 , ( byte ) ' ' ) ; }
Write a formated date according to the Dbase specifications .
6,109
private static int computeFieldSize ( AttributeValue value ) throws DBaseFileException , AttributeException { final DBaseFieldType dbftype = DBaseFieldType . fromAttributeType ( value . getType ( ) ) ; return dbftype . getFieldSize ( value . getString ( ) ) ; }
Replies the size of the DBase field which must contains the value of the given attribute value .
6,110
private static int computeDecimalSize ( AttributeValue value ) throws DBaseFileException , AttributeException { final DBaseFieldType dbftype = DBaseFieldType . fromAttributeType ( value . getType ( ) ) ; return dbftype . getDecimalPointPosition ( value . getString ( ) ) ; }
Replies the decimal size of the DBase field which must contains the value of the given attribute value .
6,111
public static boolean isSupportedType ( DBaseFieldType type ) { return ( type != DBaseFieldType . BINARY ) && ( type != DBaseFieldType . GENERAL ) && ( type != DBaseFieldType . MEMORY ) && ( type != DBaseFieldType . PICTURE ) && ( type != DBaseFieldType . VARIABLE ) ; }
Replies if the given dBASE type is supported by this writer .
6,112
@ SuppressWarnings ( "checkstyle:magicnumber" ) private List < DBaseFileField > extractColumns ( List < ? extends AttributeProvider > providers ) throws DBaseFileException , AttributeException { final Map < String , DBaseFileField > attributeColumns = new TreeMap < > ( ) ; DBaseFileField oldField ; String name ; String kname ; int fieldSize ; int decimalSize ; final Set < String > skippedColumns = new TreeSet < > ( ) ; for ( final AttributeProvider provider : providers ) { for ( final Attribute attr : provider . attributes ( ) ) { final DBaseFieldType dbftype = DBaseFieldType . fromAttributeType ( attr . getType ( ) ) ; if ( isSupportedType ( dbftype ) ) { name = attr . getName ( ) ; kname = name . toLowerCase ( ) ; oldField = attributeColumns . get ( kname ) ; fieldSize = computeFieldSize ( attr ) ; decimalSize = computeDecimalSize ( attr ) ; if ( oldField == null ) { oldField = new DBaseFileField ( name , dbftype , fieldSize , decimalSize ) ; attributeColumns . put ( kname , oldField ) ; } else { oldField . updateSizes ( fieldSize , decimalSize ) ; } } else { skippedColumns . add ( attr . getName ( ) . toUpperCase ( ) ) ; } } provider . freeMemory ( ) ; } if ( attributeColumns . size ( ) > 128 ) { throw new TooManyDBaseColumnException ( attributeColumns . size ( ) , 128 ) ; } final List < DBaseFileField > dbColumns = new ArrayList < > ( ) ; dbColumns . addAll ( attributeColumns . values ( ) ) ; attributeColumns . clear ( ) ; for ( int idx = 0 ; idx < dbColumns . size ( ) ; ++ idx ) { dbColumns . get ( idx ) . setColumnIndex ( idx ) ; } if ( ! skippedColumns . isEmpty ( ) ) { columnsSkipped ( skippedColumns ) ; } return dbColumns ; }
Extract the attribute s columns from the attributes providers .
6,113
public void writeHeader ( List < ? extends AttributeProvider > providers ) throws IOException , AttributeException { if ( this . columns == null ) { this . columns = extractColumns ( providers ) ; writeDescriptionHeader ( providers . size ( ) ) ; writeColumns ( ) ; } }
Write the header of the dbf file .
6,114
@ SuppressWarnings ( { "checkstyle:cyclomaticcomplexity" , "checkstyle:magicnumber" } ) public void writeRecord ( AttributeProvider element ) throws IOException , AttributeException { if ( this . columns == null ) { throw new MustCallWriteHeaderFunctionException ( ) ; } this . stream . writeByte ( 0x20 ) ; for ( final DBaseFileField field : this . columns ) { final DBaseFieldType dbftype = field . getType ( ) ; final String fieldName = field . getName ( ) ; AttributeValue attr = element != null ? element . getAttribute ( fieldName ) : null ; if ( attr == null ) { attr = new AttributeValueImpl ( dbftype . toAttributeType ( ) ) ; attr . setToDefault ( ) ; } else { if ( attr . isAssigned ( ) ) { attr = new AttributeValueImpl ( attr ) ; attr . cast ( dbftype . toAttributeType ( ) ) ; } else { attr = new AttributeValueImpl ( attr ) ; attr . setToDefaultIfUninitialized ( ) ; } } switch ( dbftype ) { case BOOLEAN : writeDBFBoolean ( attr . getBoolean ( ) ) ; break ; case DATE : writeDBFDate ( attr . getDate ( ) ) ; break ; case STRING : writeDBFString ( attr . getString ( ) , field . getLength ( ) , ( byte ) ' ' ) ; break ; case INTEGER_2BYTES : writeDBFInteger ( ( short ) attr . getInteger ( ) ) ; break ; case INTEGER_4BYTES : writeDBFLong ( ( int ) attr . getInteger ( ) ) ; break ; case DOUBLE : writeDBFDouble ( attr . getReal ( ) ) ; break ; case FLOATING_NUMBER : case NUMBER : if ( attr . getType ( ) == AttributeType . REAL ) { writeDBFNumber ( attr . getReal ( ) , field . getLength ( ) , field . getDecimalPointPosition ( ) ) ; } else { writeDBFNumber ( attr . getInteger ( ) , field . getLength ( ) , field . getDecimalPointPosition ( ) ) ; } break ; case BINARY : case GENERAL : case MEMORY : case PICTURE : case VARIABLE : writeDBFString ( ( String ) null , 10 , ( byte ) 0 ) ; break ; default : throw new IllegalStateException ( ) ; } } if ( element != null ) { element . freeMemory ( ) ; } }
Write a record for attribute provider .
6,115
public void write ( AttributeProvider ... providers ) throws IOException , AttributeException { writeHeader ( providers ) ; for ( final AttributeProvider provider : providers ) { writeRecord ( provider ) ; } close ( ) ; }
Write the DBase file .
6,116
@ SuppressWarnings ( "checkstyle:magicnumber" ) public void close ( ) throws IOException { if ( this . stream != null ) { this . stream . write ( 0x1A ) ; this . stream . close ( ) ; this . stream = null ; } if ( this . columns != null ) { this . columns . clear ( ) ; this . columns = null ; } }
Close the dBASE file .
6,117
public final N getChildAt ( BinaryTreeZone index ) { switch ( index ) { case LEFT : return this . left ; case RIGHT : return this . right ; default : throw new IndexOutOfBoundsException ( ) ; } }
Replies the child node at the specified position .
6,118
public boolean setRightChild ( N newChild ) { final N oldChild = this . right ; if ( oldChild == newChild ) { return false ; } if ( oldChild != null ) { oldChild . setParentNodeReference ( null , true ) ; -- this . notNullChildCount ; firePropertyChildRemoved ( 1 , oldChild ) ; } if ( newChild != null ) { final N oldParent = newChild . getParentNode ( ) ; if ( oldParent != this ) { newChild . removeFromParent ( ) ; } } this . right = newChild ; if ( newChild != null ) { newChild . setParentNodeReference ( toN ( ) , true ) ; ++ this . notNullChildCount ; firePropertyChildAdded ( 1 , newChild ) ; } return true ; }
Set the right child of this node .
6,119
public final boolean setChildAt ( BinaryTreeZone zone , N newChild ) { switch ( zone ) { case LEFT : return setLeftChild ( newChild ) ; case RIGHT : return setRightChild ( newChild ) ; default : throw new IndexOutOfBoundsException ( ) ; } }
Set the child for the specified zone .
6,120
public void add ( final String key , final String value ) { data . setProperty ( key , value ) ; fireTableDataChanged ( ) ; }
Adds the row from the given key and value .
6,121
protected HashMap readFile ( HashMap brMap ) throws IOException { HashMap ret = new HashMap ( ) ; ArrayList < HashMap > files = readDailyData ( brMap , new HashMap ( ) ) ; ret . put ( "weathers" , files ) ; return ret ; }
DSSAT Weather Data input method for only inputing weather file
6,122
public void getTranslationVector ( Tuple2D < ? > translation ) { assert translation != null : AssertMessages . notNullParameter ( ) ; translation . set ( this . m02 , this . m12 ) ; }
Replies the translation .
6,123
@ SuppressWarnings ( "checkstyle:magicnumber" ) protected void getScaleRotate2x2 ( double [ ] scales , double [ ] rots ) { final double [ ] tmp = new double [ 9 ] ; tmp [ 0 ] = this . m00 ; tmp [ 1 ] = this . m01 ; tmp [ 2 ] = 0 ; tmp [ 3 ] = this . m10 ; tmp [ 4 ] = this . m11 ; tmp [ 5 ] = 0 ; tmp [ 6 ] = 0 ; tmp [ 7 ] = 0 ; tmp [ 8 ] = 0 ; computeSVD ( tmp , scales , rots ) ; }
Perform SVD on the 2x2 matrix containing the rotation and scaling factors .
6,124
@ SuppressWarnings ( "checkstyle:magicnumber" ) public double getRotation ( ) { final double [ ] tmpScale = new double [ 3 ] ; final double [ ] tmpRot = new double [ 9 ] ; getScaleRotate2x2 ( tmpScale , tmpRot ) ; if ( Math . signum ( tmpRot [ 0 ] ) != Math . signum ( tmpRot [ 4 ] ) ) { return Math . atan2 ( tmpRot [ 4 ] , tmpRot [ 3 ] ) ; } return Math . atan2 ( tmpRot [ 3 ] , tmpRot [ 0 ] ) ; }
Performs an SVD normalization of this matrix to calculate and return the rotation angle .
6,125
@ SuppressWarnings ( "checkstyle:magicnumber" ) public void setRotation ( double angle ) { final double [ ] tmpScale = new double [ 3 ] ; final double [ ] tmpRot = new double [ 9 ] ; getScaleRotate2x2 ( tmpScale , tmpRot ) ; final double cos = Math . cos ( angle ) ; final double sin = Math . sin ( angle ) ; this . m00 = tmpScale [ 0 ] * cos ; this . m01 = tmpScale [ 1 ] * - sin ; this . m10 = tmpScale [ 0 ] * sin ; this . m11 = tmpScale [ 1 ] * cos ; }
Change the rotation of this matrix . Performs an SVD normalization of this matrix for determining and preserving the scaling .
6,126
@ SuppressWarnings ( "checkstyle:magicnumber" ) public double getScale ( ) { final double [ ] tmpScale = new double [ 3 ] ; final double [ ] tmpRot = new double [ 9 ] ; getScaleRotate2x2 ( tmpScale , tmpRot ) ; return MathUtil . max ( tmpScale ) ; }
Performs an SVD normalization of this matrix to calculate and return the uniform scale factor . If the matrix has non - uniform scale factors the largest of the x y scale factors will be returned .
6,127
@ SuppressWarnings ( "checkstyle:magicnumber" ) public void getScaleVector ( Tuple2D < ? > scale ) { assert scale != null : AssertMessages . notNullParameter ( ) ; final double [ ] tmpScale = new double [ 3 ] ; final double [ ] tmpRot = new double [ 9 ] ; getScaleRotate2x2 ( tmpScale , tmpRot ) ; scale . set ( tmpScale [ 0 ] , tmpScale [ 1 ] ) ; }
Performs an SVD normalization of this matrix to calculate and return the scale factors for X and Y axess .
6,128
@ SuppressWarnings ( "checkstyle:magicnumber" ) public void setScale ( double scaleX , double scaleY ) { final double [ ] tmpScale = new double [ 3 ] ; final double [ ] tmpRot = new double [ 9 ] ; getScaleRotate2x2 ( tmpScale , tmpRot ) ; this . m00 = tmpRot [ 0 ] * scaleX ; this . m01 = tmpRot [ 1 ] * scaleY ; this . m10 = tmpRot [ 3 ] * scaleX ; this . m11 = tmpRot [ 4 ] * scaleY ; }
Change the scale of this matrix . Performs an SVD normalization of this matrix for determining and preserving the rotation .
6,129
public void setScale ( Tuple2D < ? > tuple ) { assert tuple != null : AssertMessages . notNullParameter ( ) ; setScale ( tuple . getX ( ) , tuple . getY ( ) ) ; }
Set the scale .
6,130
public void makeRotationMatrix ( double angle ) { final double sinAngle = Math . sin ( angle ) ; final double cosAngle = Math . cos ( angle ) ; this . m00 = cosAngle ; this . m01 = - sinAngle ; this . m02 = 0. ; this . m11 = cosAngle ; this . m10 = sinAngle ; this . m12 = 0. ; this . m20 = 0. ; this . m21 = 0. ; this . m22 = 1. ; }
Sets the value of this matrix to a counter clockwise rotation about the x axis and no translation
6,131
public void makeTranslationMatrix ( double dx , double dy ) { this . m00 = 1. ; this . m01 = 0. ; this . m02 = dx ; this . m10 = 0. ; this . m11 = 1. ; this . m12 = dy ; this . m20 = 0. ; this . m21 = 0. ; this . m22 = 1. ; }
Sets the value of this matrix to the given translation without rotation .
6,132
public void makeScaleMatrix ( double scaleX , double scaleY ) { this . m00 = scaleX ; this . m01 = 0. ; this . m02 = 0. ; this . m10 = 0. ; this . m11 = scaleY ; this . m12 = 0. ; this . m20 = 0. ; this . m21 = 0. ; this . m22 = 1. ; }
Sets the value of this matrix to the given scaling without rotation .
6,133
public void transform ( Tuple2D < ? > tuple , Tuple2D < ? > result ) { assert tuple != null : AssertMessages . notNullParameter ( 0 ) ; assert result != null : AssertMessages . notNullParameter ( 1 ) ; result . set ( this . m00 * tuple . getX ( ) + this . m01 * tuple . getY ( ) + this . m02 , this . m10 * tuple . getX ( ) + this . m11 * tuple . getY ( ) + this . m12 ) ; }
Multiply this matrix by the tuple t and and place the result into the tuple result .
6,134
protected void initializeButton ( final Button button , final Color foreground , final Color background ) { button . setForeground ( foreground ) ; button . setBackground ( background ) ; }
Initialize a button .
6,135
private void initializeButtons ( ) { initializeButton ( button1 = new Button ( "1" ) , Color . black , Color . lightGray ) ; initializeButton ( button2 = new Button ( "2" ) , Color . black , Color . lightGray ) ; initializeButton ( button3 = new Button ( "3" ) , Color . black , Color . lightGray ) ; initializeButton ( button4 = new Button ( "4" ) , Color . black , Color . lightGray ) ; initializeButton ( button5 = new Button ( "5" ) , Color . black , Color . lightGray ) ; initializeButton ( button6 = new Button ( "6" ) , Color . black , Color . lightGray ) ; initializeButton ( button7 = new Button ( "7" ) , Color . black , Color . lightGray ) ; initializeButton ( button8 = new Button ( "8" ) , Color . black , Color . lightGray ) ; initializeButton ( button9 = new Button ( "9" ) , Color . black , Color . lightGray ) ; initializeButton ( button0 = new Button ( "0" ) , Color . black , Color . lightGray ) ; initializeButton ( buttonCancel = new Button ( "A" ) , Color . black , Color . lightGray ) ; initializeButton ( buttonTable = new Button ( "T" ) , Color . black , Color . lightGray ) ; initializeButton ( buttonEnter = new Button ( "E" ) , Color . black , Color . lightGray ) ; initializeButton ( buttonMinus = new Button ( "-" ) , Color . black , Color . lightGray ) ; initializeButton ( buttonPlus = new Button ( "+" ) , Color . black , Color . lightGray ) ; initializeButton ( buttonStorno = new Button ( "ST" ) , Color . black , Color . lightGray ) ; }
Initialize the buttons .
6,136
public void connectBeginToBegin ( SGraphSegment segment ) { if ( segment . getGraph ( ) != getGraph ( ) ) { throw new IllegalArgumentException ( ) ; } final SGraphPoint point = new SGraphPoint ( getGraph ( ) ) ; setBegin ( point ) ; segment . setBegin ( point ) ; final SGraph g = getGraph ( ) ; assert g != null ; g . updatePointCount ( - 1 ) ; }
Connect the begin point of this segment to the begin point of the given segment . This function change the connection points of the two segments .
6,137
public void connectBeginToEnd ( SGraphSegment segment ) { if ( segment . getGraph ( ) != getGraph ( ) ) { throw new IllegalArgumentException ( ) ; } final SGraphPoint point = new SGraphPoint ( getGraph ( ) ) ; setBegin ( point ) ; segment . setEnd ( point ) ; final SGraph g = getGraph ( ) ; assert g != null ; g . updatePointCount ( - 1 ) ; }
Connect the begin point of this segment to the end point of the given segment . This function change the connection points of the two segments .
6,138
public void connectEndToEnd ( SGraphSegment segment ) { if ( segment . getGraph ( ) != getGraph ( ) ) { throw new IllegalArgumentException ( ) ; } final SGraphPoint point = new SGraphPoint ( getGraph ( ) ) ; setEnd ( point ) ; segment . setEnd ( point ) ; final SGraph g = getGraph ( ) ; assert g != null ; g . updatePointCount ( - 1 ) ; }
Connect the end point of this segment to the end point of the given segment . This function change the connection points of the two segments .
6,139
public void disconnectBegin ( ) { if ( this . startPoint != null ) { this . startPoint . remove ( this ) ; } this . startPoint = new SGraphPoint ( getGraph ( ) ) ; this . startPoint . add ( this ) ; }
Disconnect the begin point of this segment .
6,140
public void disconnectEnd ( ) { if ( this . endPoint != null ) { this . endPoint . remove ( this ) ; } this . endPoint = new SGraphPoint ( getGraph ( ) ) ; this . endPoint . add ( this ) ; }
Disconnect the end point of this segment .
6,141
public boolean addUserData ( Object userData ) { if ( this . userData == null ) { this . userData = new ArrayList < > ( ) ; } return this . userData . add ( userData ) ; }
Add a user data in the data associated to this point .
6,142
public Object getUserDataAt ( int index ) { if ( this . userData == null ) { throw new IndexOutOfBoundsException ( ) ; } return this . userData . get ( index ) ; }
Replies the user data at the given index .
6,143
public void setUserDataAt ( int index , Object data ) { if ( this . userData == null ) { throw new IndexOutOfBoundsException ( ) ; } this . userData . set ( index , data ) ; }
Set the user data at the given index .
6,144
public Collection < Object > getAllUserData ( ) { if ( this . userData == null ) { return Collections . emptyList ( ) ; } return Collections . unmodifiableCollection ( this . userData ) ; }
Replies all the user data .
6,145
public static void displayUsage ( String cmdLineSyntax , Options options ) { HelpFormatter helpFormatter = new HelpFormatter ( ) ; helpFormatter . printHelp ( cmdLineSyntax , options ) ; }
Displays usage .
6,146
private Graphics2D initGraphics2D ( final Graphics g ) { Graphics2D g2 ; g2 = ( Graphics2D ) g ; g2 . setRenderingHint ( RenderingHints . KEY_ANTIALIASING , RenderingHints . VALUE_ANTIALIAS_ON ) ; g2 . setRenderingHint ( RenderingHints . KEY_RENDERING , RenderingHints . VALUE_RENDER_QUALITY ) ; g2 . setColor ( this . color ) ; return g2 ; }
Inits the graphics2D object .
6,147
public T decode ( final String s ) { checkNotNull ( s ) ; try { return Enum . valueOf ( type , s ) ; } catch ( final IllegalArgumentException ignored ) { } try { return Enum . valueOf ( type , s . toUpperCase ( ) ) ; } catch ( final IllegalArgumentException ignored ) { } try { return Enum . valueOf ( type , s . toLowerCase ( ) ) ; } catch ( final IllegalArgumentException ignored ) { } throw new ConversionException ( "Unable to instantiate a " + type + " from value " + s + ". Valid values: " + Joiner . on ( ", " ) . join ( EnumSet . allOf ( type ) ) ) ; }
Converts a string to a value of the enum type . If the string cannot be converted to an enum value as - is conversion is attempted on the string in uppercase and then in lowercase as a fallback .
6,148
protected int compareConnections ( PT p1 , PT p2 ) { assert p1 != null && p2 != null ; return p1 . hashCode ( ) - p2 . hashCode ( ) ; }
Compare the two given entry points .
6,149
public void addAllLeftRowsToRightTable ( ) { rightTable . getGenericTableModel ( ) . addList ( leftTable . getGenericTableModel ( ) . getData ( ) ) ; leftTable . getGenericTableModel ( ) . clear ( ) ; }
Adds the all left rows to right table .
6,150
public void addAllRightRowsToLeftTable ( ) { leftTable . getGenericTableModel ( ) . addList ( rightTable . getGenericTableModel ( ) . getData ( ) ) ; rightTable . getGenericTableModel ( ) . clear ( ) ; }
Adds the all right rows to left table .
6,151
public void shuffleSelectedLeftRowsToRightTable ( ) { final int [ ] selectedRows = leftTable . getSelectedRows ( ) ; final int lastIndex = selectedRows . length - 1 ; for ( int i = lastIndex ; - 1 < i ; i -- ) { final int selectedRow = selectedRows [ i ] ; final T row = leftTable . getGenericTableModel ( ) . removeAt ( selectedRow ) ; rightTable . getGenericTableModel ( ) . add ( row ) ; } }
Shuffle selected left rows to right table .
6,152
public static List < String > loadOptions ( String optionFileName ) { List < String > args = new ArrayList < String > ( ) ; File optionFile = new File ( optionFileName ) ; StringWriter stringWriter = new StringWriter ( ) ; try { InputStream inputStream = new FileInputStream ( optionFile ) ; IOUtils . copy ( inputStream , stringWriter ) ; } catch ( FileNotFoundException e ) { System . err . println ( "Error reading options file: " + e . getMessage ( ) ) ; System . exit ( 1 ) ; } catch ( IOException e ) { System . err . println ( "Error reading options file: " + e . getMessage ( ) ) ; System . exit ( 1 ) ; } String string = stringWriter . toString ( ) ; StringTokenizer stringTokenizer = new StringTokenizer ( string ) ; while ( stringTokenizer . hasMoreTokens ( ) ) { args . add ( stringTokenizer . nextToken ( ) ) ; } return args ; }
Load options from a file
6,153
public static boolean isShapeFile ( URL file ) { return FileType . isContentType ( file , MimeName . MIME_SHAPE_FILE . getMimeConstant ( ) ) ; }
Replies if the specified file content is a ESRI shape file .
6,154
@ SuppressWarnings ( "static-method" ) public HelpGenerator provideHelpGenerator ( ApplicationMetadata metadata , Injector injector , Terminal terminal ) { int maxColumns = terminal . getColumns ( ) ; if ( maxColumns < TTY_MIN_COLUMNS ) { maxColumns = TTY_DEFAULT_COLUMNS ; } String argumentSynopsis ; try { argumentSynopsis = injector . getInstance ( Key . get ( String . class , ApplicationArgumentSynopsis . class ) ) ; } catch ( Exception exception ) { argumentSynopsis = null ; } String detailedDescription ; try { detailedDescription = injector . getInstance ( Key . get ( String . class , ApplicationDetailedDescription . class ) ) ; } catch ( Exception exception ) { detailedDescription = null ; } return new SynopsisHelpGenerator ( metadata , argumentSynopsis , detailedDescription , maxColumns ) ; }
Provide the help generator with synopsis .
6,155
public ZoomableGraphicsContext getDocumentGraphicsContext2D ( ) { if ( this . documentGraphicsContext == null ) { final CenteringTransform transform = new CenteringTransform ( invertedAxisXProperty ( ) , invertedAxisYProperty ( ) , viewportBoundsProperty ( ) ) ; this . documentGraphicsContext = new ZoomableGraphicsContext ( getGraphicsContext2D ( ) , scaleValueProperty ( ) , documentBoundsProperty ( ) , viewportBoundsProperty ( ) , widthProperty ( ) , heightProperty ( ) , drawableElementBudgetProperty ( ) , transform ) ; } return this . documentGraphicsContext ; }
Replies the document graphics context .
6,156
protected void fireDrawingStart ( ) { final ListenerCollection < EventListener > list = this . listeners ; if ( list != null ) { for ( final DrawingListener listener : list . getListeners ( DrawingListener . class ) ) { listener . onDrawingStart ( ) ; } } }
Notifies listeners on drawing start .
6,157
protected void fireDrawingEnd ( ) { final ListenerCollection < EventListener > list = this . listeners ; if ( list != null ) { for ( final DrawingListener listener : list . getListeners ( DrawingListener . class ) ) { listener . onDrawingEnd ( ) ; } } }
Notifies listeners on drawing finishing .
6,158
public static BusLayerDrawerType getPreferredLineDrawAlgorithm ( ) { final Preferences prefs = Preferences . userNodeForPackage ( BusLayerConstants . class ) ; if ( prefs != null ) { final String algo = prefs . get ( "DRAWING_ALGORITHM" , null ) ; if ( algo != null && algo . length ( ) > 0 ) { try { return BusLayerDrawerType . valueOf ( algo ) ; } catch ( Throwable exception ) { } } } return BusLayerDrawerType . OVERLAP ; }
Replies if the bus network should be drawn with the algorithm .
6,159
public static void setPreferredLineDrawingAlgorithm ( BusLayerDrawerType algorithm ) { final Preferences prefs = Preferences . userNodeForPackage ( BusLayerConstants . class ) ; if ( prefs != null ) { if ( algorithm == null ) { prefs . remove ( "DRAWING_ALGORITHM" ) ; } else { prefs . put ( "DRAWING_ALGORITHM" , algorithm . name ( ) ) ; } } }
Set if the bus network should be drawn with the algorithm .
6,160
public static int getSelectionColor ( ) { final Preferences prefs = Preferences . userNodeForPackage ( BusLayerConstants . class ) ; if ( prefs != null ) { final String str = prefs . get ( "SELECTION_COLOR" , null ) ; if ( str != null ) { try { return Integer . valueOf ( str ) ; } catch ( Throwable exception ) { } } } return DEFAULT_SELECTION_COLOR ; }
Replies if the preferred color for bus stops selection .
6,161
public static void setSelectionColor ( Integer color ) { final Preferences prefs = Preferences . userNodeForPackage ( BusLayerConstants . class ) ; if ( prefs != null ) { if ( color == null || color == DEFAULT_SELECTION_COLOR ) { prefs . remove ( "SELECTION_COLOR" ) ; } else { prefs . put ( "SELECTION_COLOR" , color . toString ( ) ) ; } try { prefs . flush ( ) ; } catch ( BackingStoreException exception ) { } } }
Set the default color selection .
6,162
public static boolean isBusStopDrawable ( ) { final Preferences prefs = Preferences . userNodeForPackage ( BusLayerConstants . class ) ; if ( prefs != null ) { return prefs . getBoolean ( "DRAW_BUS_STOPS" , DEFAULT_BUS_STOP_DRAWING ) ; } return DEFAULT_BUS_STOP_DRAWING ; }
Replies if the bus stops should be drawn or not .
6,163
public static boolean isBusStopNamesDrawable ( ) { final Preferences prefs = Preferences . userNodeForPackage ( BusLayerConstants . class ) ; if ( prefs != null ) { return prefs . getBoolean ( "DRAW_BUS_STOPS_NAMES" , DEFAULT_BUS_STOP_NAMES_DRAWING ) ; } return DEFAULT_BUS_STOP_NAMES_DRAWING ; }
Replies if the bus stops names should be drawn or not .
6,164
public static void setBusStopNamesDrawable ( Boolean isNamesDrawable ) { final Preferences prefs = Preferences . userNodeForPackage ( BusLayerConstants . class ) ; if ( prefs != null ) { if ( isNamesDrawable == null ) { prefs . remove ( "DRAW_BUS_STOPS_NAMES" ) ; } else { prefs . putBoolean ( "DRAW_BUS_STOPS_NAMES" , isNamesDrawable . booleanValue ( ) ) ; } try { prefs . sync ( ) ; } catch ( BackingStoreException exception ) { } } }
Set if the bus stops should be drawn or not .
6,165
public static boolean isBusStopNoHaltBindingDrawable ( ) { final Preferences prefs = Preferences . userNodeForPackage ( BusLayerConstants . class ) ; if ( prefs != null ) { return prefs . getBoolean ( "DRAW_NO_BUS_HALT_BIND" , DEFAULT_NO_BUS_HALT_BIND ) ; } return DEFAULT_NO_BUS_HALT_BIND ; }
Replies if the bus stops with no binding to bus halt should be drawn or not .
6,166
public static void setBusStopNoHaltBindingDrawable ( Boolean isDrawable ) { final Preferences prefs = Preferences . userNodeForPackage ( BusLayerConstants . class ) ; if ( prefs != null ) { if ( isDrawable == null ) { prefs . remove ( "DRAW_NO_BUS_HALT_BIND" ) ; } else { prefs . putBoolean ( "DRAW_NO_BUS_HALT_BIND" , isDrawable . booleanValue ( ) ) ; } try { prefs . sync ( ) ; } catch ( BackingStoreException exception ) { } } }
Set if the bus stops stops with no binding to bus halt should be drawn or not .
6,167
public static boolean isBusStopNoHaltBindingNamesDrawable ( ) { final Preferences prefs = Preferences . userNodeForPackage ( BusLayerConstants . class ) ; if ( prefs != null ) { return prefs . getBoolean ( "DRAW_NO_BUS_HALT_BIND_NAMES" , DEFAULT_NO_BUS_HALT_BIND_NAMES ) ; } return DEFAULT_NO_BUS_HALT_BIND_NAMES ; }
Replies if the bus stops with no binding to bus halt should have their names drawn or not .
6,168
public static boolean isAttributeExhibitable ( ) { final Preferences prefs = Preferences . userNodeForPackage ( BusLayerConstants . class ) ; if ( prefs != null ) { return prefs . getBoolean ( "EXHIBIT_ATTRIBUTES" , DEFAULT_ATTRIBUTE_EXHIBITION ) ; } return DEFAULT_ATTRIBUTE_EXHIBITION ; }
Replies if the attributes of the bus network elements should be exhibited by the layers that are displaying them . For example a BusLineLayer may exhibit the BusLine attributes .
6,169
public static void setAttributeExhibitable ( Boolean isExhibit ) { final Preferences prefs = Preferences . userNodeForPackage ( BusLayerConstants . class ) ; if ( prefs != null ) { if ( isExhibit == null ) { prefs . remove ( "EXHIBIT_ATTRIBUTES" ) ; } else { prefs . putBoolean ( "EXHIBIT_ATTRIBUTES" , isExhibit . booleanValue ( ) ) ; } try { prefs . sync ( ) ; } catch ( BackingStoreException exception ) { } } }
Set if the attributes of the bus network elements should be exhibited by the layers that are displaying them . For example a BusLineLayer may exhibit the BusLine attributes .
6,170
public JsonLdModule configure ( ConfigParam param , String value ) { Objects . requireNonNull ( param ) ; configuration . set ( param , value ) ; return this ; }
Configure this module with additional parameters .
6,171
public boolean setFirstChild ( N newChild ) { final N oldChild = this . nNorthWest ; if ( oldChild == newChild ) { return false ; } if ( oldChild != null ) { oldChild . setParentNodeReference ( null , true ) ; -- this . notNullChildCount ; firePropertyChildRemoved ( 0 , oldChild ) ; } if ( newChild != null ) { final N oldParent = newChild . getParentNode ( ) ; if ( oldParent != this ) { newChild . removeFromParent ( ) ; } } this . nNorthWest = newChild ; if ( newChild != null ) { newChild . setParentNodeReference ( toN ( ) , true ) ; ++ this . notNullChildCount ; firePropertyChildAdded ( 0 , newChild ) ; } return true ; }
Set the first child of this node .
6,172
public boolean setSecondChild ( N newChild ) { final N oldChild = this . nNorthEast ; if ( oldChild == newChild ) { return false ; } if ( oldChild != null ) { oldChild . setParentNodeReference ( null , true ) ; -- this . notNullChildCount ; firePropertyChildRemoved ( 1 , oldChild ) ; } if ( newChild != null ) { final N oldParent = newChild . getParentNode ( ) ; if ( oldParent != this ) { newChild . removeFromParent ( ) ; } } this . nNorthEast = newChild ; if ( newChild != null ) { newChild . setParentNodeReference ( toN ( ) , true ) ; ++ this . notNullChildCount ; firePropertyChildAdded ( 1 , newChild ) ; } return true ; }
Set the second child of this node .
6,173
public boolean setThirdChild ( N newChild ) { final N oldChild = this . nSouthWest ; if ( oldChild == newChild ) { return false ; } if ( oldChild != null ) { oldChild . setParentNodeReference ( null , true ) ; -- this . notNullChildCount ; firePropertyChildRemoved ( 2 , oldChild ) ; } if ( newChild != null ) { final N oldParent = newChild . getParentNode ( ) ; if ( oldParent != this ) { newChild . removeFromParent ( ) ; } } this . nSouthWest = newChild ; if ( newChild != null ) { newChild . setParentNodeReference ( toN ( ) , true ) ; ++ this . notNullChildCount ; firePropertyChildAdded ( 2 , newChild ) ; } return true ; }
Set the third child of this node .
6,174
public boolean setFourthChild ( N newChild ) { final N oldChild = this . nSouthEast ; if ( oldChild == newChild ) { return false ; } if ( oldChild != null ) { oldChild . setParentNodeReference ( null , true ) ; -- this . notNullChildCount ; firePropertyChildRemoved ( 3 , oldChild ) ; } if ( newChild != null ) { final N oldParent = newChild . getParentNode ( ) ; if ( oldParent != this ) { newChild . removeFromParent ( ) ; } } this . nSouthEast = newChild ; if ( newChild != null ) { newChild . setParentNodeReference ( toN ( ) , true ) ; ++ this . notNullChildCount ; firePropertyChildAdded ( 3 , newChild ) ; } return true ; }
Set the Fourth child of this node .
6,175
public boolean setChildAt ( QuadTreeZone zone , N newChild ) { switch ( zone ) { case NORTH_WEST : return setFirstChild ( newChild ) ; case NORTH_EAST : return setSecondChild ( newChild ) ; case SOUTH_WEST : return setThirdChild ( newChild ) ; case SOUTH_EAST : return setFourthChild ( newChild ) ; default : } return false ; }
Set the child at the specified zone .
6,176
@ SuppressWarnings ( { "checkstyle:magicnumber" , "checkstyle:cyclomaticcomplexity" } ) public boolean remove ( Point3D < ? , ? > point ) { if ( this . types != null && ! this . types . isEmpty ( ) && this . coords != null && ! this . coords . isEmpty ( ) ) { for ( int i = 0 , j = 0 ; i < this . coords . size ( ) && j < this . types . size ( ) ; j ++ ) { final Point3dfx currentPoint = this . coords . get ( i ) ; switch ( this . types . get ( j ) ) { case MOVE_TO : case LINE_TO : if ( point . equals ( currentPoint ) ) { this . coords . remove ( i ) ; this . types . remove ( j ) ; return true ; } i ++ ; break ; case CURVE_TO : final Point3dfx p2 = this . coords . get ( i + 1 ) ; final Point3dfx p3 = this . coords . get ( i + 2 ) ; if ( ( point . equals ( currentPoint ) ) || ( point . equals ( p2 ) ) || ( point . equals ( p3 ) ) ) { this . coords . remove ( i , i + 3 ) ; this . types . remove ( j ) ; return true ; } i += 3 ; break ; case QUAD_TO : final Point3dfx pt = this . coords . get ( i + 1 ) ; if ( ( point . equals ( currentPoint ) ) || ( point . equals ( pt ) ) ) { this . coords . remove ( i , i + 2 ) ; this . types . remove ( j ) ; return true ; } i += 2 ; break ; case ARC_TO : throw new IllegalStateException ( ) ; default : break ; } } } return false ; }
Remove the point from this path .
6,177
public ImmutableListMultimap < Symbol , EDLMention > loadEDLMentionsByDocFrom ( CharSource source ) throws IOException { final ImmutableList < EDLMention > edlMentions = loadEDLMentionsFrom ( source ) ; final ImmutableListMultimap . Builder < Symbol , EDLMention > byDocs = ImmutableListMultimap . < Symbol , EDLMention > builder ( ) . orderKeysBy ( SymbolUtils . byStringOrdering ( ) ) ; for ( final EDLMention edlMention : edlMentions ) { byDocs . put ( edlMention . documentID ( ) , edlMention ) ; } return byDocs . build ( ) ; }
Loads EDL mentions grouped by document . Multimap keys are in alphabetical order by document ID .
6,178
private void writeSingleExp ( String arg0 , Map result , DssatCommonOutput output , String file ) { futFiles . put ( file , executor . submit ( new DssatTranslateRunner ( output , result , arg0 ) ) ) ; }
Write files and add file objects in the array
6,179
public static Vector3i convert ( Tuple3D < ? > tuple ) { if ( tuple instanceof Vector3i ) { return ( Vector3i ) tuple ; } return new Vector3i ( tuple . getX ( ) , tuple . getY ( ) , tuple . getZ ( ) ) ; }
Convert the given tuple to a real Vector3i .
6,180
public static String getFirstFreeBusHubName ( BusNetwork busnetwork ) { int nb = busnetwork . getBusHubCount ( ) ; String name ; do { ++ nb ; name = Locale . getString ( "NAME_TEMPLATE" , Integer . toString ( nb ) ) ; } while ( busnetwork . getBusHub ( name ) != null ) ; return name ; }
Replies a bus hub name that was not exist in the specified bus network .
6,181
public GeoLocation getGeoLocation ( ) { final Rectangle2d b = getBoundingBox ( ) ; if ( b == null ) { return new GeoLocationNowhere ( getUUID ( ) ) ; } return new GeoLocationPoint ( b . getCenterX ( ) , b . getCenterY ( ) ) ; }
Replies the geo - location of this hub .
6,182
public double distance ( double x , double y ) { double dist = Double . POSITIVE_INFINITY ; if ( isValidPrimitive ( ) ) { for ( final BusStop stop : this . busStops ) { final double d = stop . distance ( x , y ) ; if ( ! Double . isNaN ( d ) && d < dist ) { dist = d ; } } } return Double . isInfinite ( dist ) ? Double . NaN : dist ; }
Replies the distance between the given point and this bus hub .
6,183
boolean addBusStop ( BusStop busStop , boolean fireEvents ) { if ( busStop == null ) { return false ; } if ( this . busStops . indexOf ( busStop ) != - 1 ) { return false ; } if ( ! this . busStops . add ( busStop ) ) { return false ; } busStop . addBusHub ( this ) ; resetBoundingBox ( ) ; if ( fireEvents ) { firePrimitiveChanged ( new BusChangeEvent ( this , BusChangeEventType . STOP_ADDED , busStop , this . busStops . size ( ) - 1 , null , null , null ) ) ; checkPrimitiveValidity ( ) ; } return true ; }
Add a bus stop inside the bus hub .
6,184
public void removeAllBusStops ( ) { for ( final BusStop busStop : this . busStops ) { busStop . removeBusHub ( this ) ; } this . busStops . clear ( ) ; resetBoundingBox ( ) ; firePrimitiveChanged ( new BusChangeEvent ( this , BusChangeEventType . ALL_STOPS_REMOVED , null , - 1 , null , null , null ) ) ; checkPrimitiveValidity ( ) ; }
Remove all the bus stops from the current hub .
6,185
public boolean removeBusStop ( BusStop busStop ) { final int index = this . busStops . indexOf ( busStop ) ; if ( index >= 0 ) { this . busStops . remove ( index ) ; busStop . removeBusHub ( this ) ; resetBoundingBox ( ) ; firePrimitiveChanged ( new BusChangeEvent ( this , BusChangeEventType . STOP_REMOVED , busStop , index , null , null , null ) ) ; checkPrimitiveValidity ( ) ; return true ; } return false ; }
Remove a bus stop from this hub .
6,186
public BusStop [ ] busStopsArray ( ) { return Collections . unmodifiableList ( this . busStops ) . toArray ( new BusStop [ this . busStops . size ( ) ] ) ; }
Replies the array of the bus stops . This function copies the bus stops in an array .
6,187
protected void defineSmallRectangle ( ZoomableGraphicsContext gc , T element ) { final double ptsSize = element . getPointSize ( ) / 2. ; final double x = element . getX ( ) - ptsSize ; final double y = element . getY ( ) - ptsSize ; final double mx = element . getX ( ) + ptsSize ; final double my = element . getY ( ) + ptsSize ; gc . moveTo ( x , y ) ; gc . lineTo ( mx , y ) ; gc . lineTo ( mx , my ) ; gc . lineTo ( x , my ) ; gc . closePath ( ) ; }
Define a path that corresponds to the small rectangle around a point .
6,188
public final void setUUID ( UUID id ) { final UUID oldId = getUUID ( ) ; if ( ( oldId != null && ! oldId . equals ( id ) ) || ( oldId == null && id != null ) ) { super . setUUID ( oldId ) ; fireElementChanged ( ) ; } }
Set the unique identifier for element .
6,189
public final void addLayerListener ( MapLayerListener listener ) { if ( this . listeners == null ) { this . listeners = new ListenerCollection < > ( ) ; } this . listeners . add ( MapLayerListener . class , listener ) ; }
Add a listener on the layer s events .
6,190
public final void removeLayerListener ( MapLayerListener listener ) { if ( this . listeners != null ) { this . listeners . remove ( MapLayerListener . class , listener ) ; if ( this . listeners . isEmpty ( ) ) { this . listeners = null ; } } }
Remove a listener on the layer s events .
6,191
public void onAttributeChangeEvent ( AttributeChangeEvent event ) { super . onAttributeChangeEvent ( event ) ; fireLayerAttributeChangedEvent ( new MapLayerAttributeChangeEvent ( this , event ) ) ; fireElementChanged ( ) ; if ( ATTR_VISIBLE . equals ( event . getName ( ) ) ) { final AttributeValue nValue = event . getValue ( ) ; boolean cvalue ; try { cvalue = nValue . getBoolean ( ) ; } catch ( Exception exception ) { cvalue = isVisible ( ) ; } if ( cvalue ) { final GISLayerContainer < ? > container = getContainer ( ) ; if ( container instanceof GISBrowsable ) { ( ( GISBrowsable ) container ) . setVisible ( cvalue , false ) ; } } } }
Invoked when the attribute s value changed .
6,192
public boolean isClickable ( ) { final AttributeValue val = getAttributeProvider ( ) . getAttribute ( ATTR_CLICKABLE ) ; if ( val != null ) { try { return val . getBoolean ( ) ; } catch ( AttributeException e ) { } } return true ; }
Replies if this layer accepts the user clicks .
6,193
public final boolean isTemporaryLayer ( ) { MapLayer layer = this ; GISLayerContainer < ? > container ; while ( layer != null ) { if ( layer . isTemp ) { return true ; } container = layer . getContainer ( ) ; layer = container instanceof MapLayer ? ( MapLayer ) container : null ; } return false ; }
Replies if this layer was mark as temporary lyer .
6,194
public boolean isRemovable ( ) { final AttributeValue val = getAttributeProvider ( ) . getAttribute ( ATTR_REMOVABLE ) ; if ( val != null ) { try { return val . getBoolean ( ) ; } catch ( AttributeException e ) { } } return true ; }
Replies if this layer is removable from this container . This removal value permits to the container to be informed about the desired removal state from its component . The usage of this state by the container depends only of its implementation .
6,195
public void setProperties ( Point3d center , DoubleProperty radius1 ) { setProperties ( center . xProperty , center . yProperty , center . zProperty , radius1 ) ; }
Bind the frame of the sphere with center and radisu properties .
6,196
public Point3f getCenterWithoutProperties ( ) { return new Point3f ( this . cxProperty . doubleValue ( ) , this . cyProperty . doubleValue ( ) , this . czProperty . doubleValue ( ) ) ; }
Replies the center .
6,197
public void setCenterProperties ( Point3d center ) { this . cxProperty = center . xProperty ; this . cyProperty = center . yProperty ; this . czProperty = center . zProperty ; }
Set the center properties with the properties of the Point3d in parameter .
6,198
public void setCenterProperties ( DoubleProperty x , DoubleProperty y , DoubleProperty z ) { this . cxProperty = x ; this . cyProperty = y ; this . czProperty = z ; }
Set the center properties with the properties in parameter .
6,199
public void setRadiusProperty ( DoubleProperty radius1 ) { this . radiusProperty = radius1 ; this . radiusProperty . set ( Math . abs ( this . radiusProperty . get ( ) ) ) ; }
Set the radius property with the property in parameter .